/* ===========================================
   Noder - Stylesheet
   =========================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --sidebar-width: 250px;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #22c55e;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

html { font-size: 15px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
    text-decoration: none;
}

.nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
}

.nav-icon { font-size: 1.1rem; }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Storage widget */
.storage-widget {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
}

.storage-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.storage-bar {
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.storage-bar-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.storage-bar-warn { background: #f59e0b; }
.storage-bar-danger { background: #ef4444; }

.storage-details {
    font-size: 0.78rem;
    color: #94a3b8;
}

.storage-breakdown {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.sidebar-identity {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.sidebar-pill {
    display: block;
    padding: 0.4rem 0.7rem;
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
}

.sidebar-pill--logout {
    color: #f87171;
    transition: background 0.15s;
}

.sidebar-pill--logout:hover {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
}

.sidebar-user {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.logout-link { font-size: 0.9rem; }

/* Content */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 2.5rem;
    max-width: 1200px;
}

/* Page header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-light);
    margin-top: 0.25rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.stat-link {
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.75rem;
}

/* Action grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s;
}

.action-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.action-icon { font-size: 2rem; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    text-align: left;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.table tr:last-child td { border-bottom: none; }

.table .actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group select {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group input[type="file"] {
    padding: 0.45rem;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-row .form-group { flex: 1; min-width: 180px; }

.upload-form { margin-bottom: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--bg);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover);
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.btn-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.inline { display: inline; }

/* Flash messages */
.flash-message {
    background: #ecfdf5;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Empty states */
.empty-state {
    color: var(--text-light);
    font-style: italic;
    padding: 0.5rem 0;
}

.empty-state-large {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Password display */
.password-display {
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
    background: #f8fafc;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Song grid (user dashboard) */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.song-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s;
}

.song-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    text-decoration: none;
}

.song-card-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.song-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.song-composer {
    font-size: 0.85rem;
    color: var(--text-light);
}

.song-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* File list */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    flex-wrap: wrap;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon { font-size: 1.3rem; }
.file-name { font-weight: 500; }
.file-part { color: var(--text-light); font-size: 0.85rem; }
.file-original { color: var(--text-light); font-size: 0.8rem; }

.file-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.audio-item {
    flex-direction: column;
    align-items: stretch;
}

.audio-player-wrapper {
    width: 100%;
    margin: 0.5rem 0;
}

.audio-player-wrapper audio {
    width: 100%;
}

.audio-item .file-actions {
    justify-content: flex-end;
}

/* PDF viewer */
.pdf-section { margin-bottom: 1.5rem; }
.pdf-section:last-child { margin-bottom: 0; }

.pdf-viewer {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #525659;
}

.pdf-viewer iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

/* PDF Tabs */

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.tab-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg);
    text-decoration: none;
}

.tab-btn--active {
    background: var(--card-bg);
    color: var(--primary);
    border-color: var(--border);
    border-bottom-color: var(--card-bg);
    font-weight: 600;
}

.tab-panel { display: none; padding-top: 1rem; }
.tab-panel--active { display: block; }

.pdf-actions-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0 0.25rem;
    flex-wrap: wrap;
}

.pdf-edit-form {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

/* Audio cards (user view) */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audio-card {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.audio-icon { font-size: 1.3rem; }

.audio-title {
    font-weight: 600;
    font-size: 1rem;
}

.audio-full {
    width: 100%;
    margin-bottom: 0.5rem;
}

.audio-footer {
    display: flex;
    justify-content: flex-end;
}

/* Login page */
.login-body {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #fecaca;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }

/* Highlight badge */
.highlight-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Highlight card */
.highlight-card {
    border-left: 4px solid #f59e0b;
}

/* Song card highlight variant */
.song-card--highlight {
    border-color: #f59e0b;
    background: #fffbeb;
}

.song-card--highlight:hover {
    border-color: #d97706;
}

/* Highlight form in table */
.highlight-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.highlight-form input[type="date"] {
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    width: 130px;
}

/* Setlist cards (admin management) */
.setlist-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.setlist-card:last-child { margin-bottom: 0; }

.setlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.setlist-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.setlist-add-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

/* Draggable item cards */
.setlist-drag-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.setlist-item-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    cursor: default;
    transition: box-shadow 0.15s;
}

.setlist-item-card:hover {
    box-shadow: var(--shadow-md);
}

.drag-handle {
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: grab;
    user-select: none;
    padding: 0 0.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.drag-handle:active { cursor: grabbing; }

.setlist-item-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.placeholder-icon { color: var(--text-light); }

.setlist-item-label {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.setlist-placeholder-label {
    color: var(--text-light);
    font-style: italic;
    font-weight: 400;
}

.setlist-item-composer {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

.setlist-item-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Setlist songs list (old style, can clean up) */
.setlist-songs {
    list-style: decimal;
    padding-left: 1.5rem;
}

.setlist-songs li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setlist-songs li a { flex: 1; }

/* User setlist detail page */
.setlist-ordered-list {
    display: flex;
    flex-direction: column;
}

.setlist-song-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    border-radius: 4px;
    transition: background 0.1s;
}

.setlist-song-row:last-child { border-bottom: none; }

.setlist-song-row:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.setlist-num {
    width: 1.8rem;
    height: 1.8rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.setlist-song-info { flex: 1; }

.setlist-song-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.setlist-song-composer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.setlist-arrow {
    font-size: 1.3rem;
    color: var(--text-light);
}

.setlist-placeholder-row {
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.setlist-placeholder-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Tags */
.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0.15rem 0.1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Links */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.link-item:last-child {
    border-bottom: none;
}

.link-url {
    color: var(--primary);
    word-break: break-all;
    flex: 1;
}

/* Song description */
.song-description {
    white-space: pre-line;
    line-height: 1.6;
    color: var(--text);
}

/* Choir checkbox list */
.choir-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.choir-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    background: var(--bg);
    transition: border-color 0.15s, background 0.15s;
}

.choir-checkbox-label:hover {
    border-color: var(--primary);
    background: var(--primary-light, #e8f0fe);
}

.choir-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Helper spacing */
.mb-1 { margin-bottom: 0.75rem; }
.mt-1 { margin-top: 0.75rem; }

.field-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 400;
}

textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text);
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Sortable table headers */
.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.sort-link:hover { color: var(--primary); }
.sort-link.sort-active { color: var(--primary); }
.sort-icon-idle { opacity: 0.35; font-size: 0.8em; }

.table-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.btn-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.btn-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-ellipsis {
    padding: 0 0.2rem;
    color: var(--text-light);
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        flex-direction: row;
        align-items: center;
    }

    .sidebar-nav {
        display: flex;
        padding: 0;
        overflow-x: auto;
    }

    .sidebar-header { padding: 0.75rem 1rem; }
    .sidebar-footer {
        margin-left: auto;
        padding: 0.75rem 1rem;
        border: none;
    }

    .sidebar-user { display: none; }

    .nav-link { padding: 0.75rem 1rem; white-space: nowrap; }

    .content {
        margin-left: 0;
        padding: 1.25rem;
    }

    .layout { flex-direction: column; }

    .inline-form { flex-direction: column; align-items: stretch; }
    .form-row { flex-direction: column; }
    .toolbar { flex-direction: column; }
    .search-input { min-width: 100%; }

    .stats-grid { grid-template-columns: 1fr; }
    .song-grid { grid-template-columns: 1fr; }
}
