/* MusicPanel panels — dependency-free stylesheet (no Vite/Tailwind build). */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    line-height: 1.5;
}

h1 { font-size: 1.35rem; margin: 0 0 1rem; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: #6b7280; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Guest (sign-in) layout */
.guest-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
}

.guest-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.guest-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

/* Top navigation */
.topbar { background: #0f172a; color: #e2e8f0; }
.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.brand { font-weight: 700; color: #ffffff; }
.brand-tag {
    font-size: 0.7rem;
    font-weight: 600;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    vertical-align: middle;
}

.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { color: #cbd5e1; }
.nav a:hover { color: #ffffff; text-decoration: none; }

.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.topbar-user .muted { color: #94a3b8; }

/* Content */
.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.card h2 { margin-top: 0; font-size: 1.05rem; }

/* Stat cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.stat .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat .stat-label { color: #6b7280; font-size: 0.85rem; }

/* Tables */
.table-wrap { overflow-x: auto; }

table.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.table th, .table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: #6b7280; }
.table tr:last-child td { border-bottom: none; }

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Buttons */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    background: #e5e7eb;
}

.btn:hover { text-decoration: none; filter: brightness(0.96); }

.btn-primary { background: #2563eb; }
.btn-danger { background: #dc2626; }
.btn-secondary { background: #64748b; }
.btn-success { background: #16a34a; }
.btn-sm { padding: 0.2rem 0.5rem; font-size: 0.78rem; }
.btn-block { width: 100%; }

.btn-line { background: #ffffff; color: #334155; border-color: #cbd5e1; }

/* Alerts */
.alert {
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Forms */
.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.25rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
select, textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    background: #ffffff;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #93c5fd;
    border-color: #3b82f6;
}

.checkbox-inline { display: flex; align-items: center; gap: 0.4rem; }
.checkbox-inline input { width: auto; }

.form-actions { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; }

.form-inline { display: inline; }
/* Text-like action buttons inside inline forms stay unstyled; real .btn buttons
   keep their normal filled style (they must not lose their background/color). */
.form-inline button:not(.btn) { border: none; background: none; cursor: pointer; padding: 0; }

/* Filter bar */
.filters {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filters .form-group { margin-bottom: 0; }
.filters select, .filters input { width: auto; min-width: 180px; }

/* Action column keeps buttons close together */
.actions { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }

/* Pagination */
.pagination { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pagination li span, .pagination li a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-size: 0.85rem;
}
.pagination li.active span { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.pagination li.disabled span { color: #94a3b8; background: #f8fafc; }

.empty { color: #6b7280; font-style: italic; padding: 0.5rem 0; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-title h1 { margin: 0; }
