/**
 * CifrasPro - Estilos Principais
 * Sistema SaaS de Gerenciamento de Cifras Musicais
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Cores principais */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;

    /* Cores de feedback */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Tons neutros */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Tema claro (padrão - páginas públicas) */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border: #e5e7eb;

    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Tamanhos */
    --sidebar-width: 260px;
    --header-height: 60px;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transições */
    --transition: all 0.2s ease;
}

/* ============================================
   TEMA PREMIUM - Painel do Usuário
   Design elegante e sofisticado
   ============================================ */

/* Paleta Premium */
body.logged-in {
    /* Cores base - Tons profundos e elegantes */
    --bg-primary: #141416;
    --bg-secondary: #0c0c0e;
    --bg-tertiary: #1c1c20;
    --bg-elevated: #1e1e22;
    --bg-surface: #232328;

    /* Texto - Hierarquia clara */
    --text-primary: #fafafa;
    --text-secondary: #b8b8bf;
    --text-muted: #6e6e78;
    --text-accent: #d4af37;

    /* Bordas - Sutis e refinadas */
    --border-color: #2a2a30;
    --border: #2a2a30;
    --border-subtle: #222226;
    --border-accent: #3d3522;

    /* Cor de destaque - Dourado Champagne */
    --gold: #d4af37;
    --gold-light: #e8c547;
    --gold-dark: #b8942e;
    --gold-muted: #8b7355;

    /* Sombras premium */
    --shadow-premium: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.1);

    background-color: #0c0c0e;
}

/* ============================================
   Sidebar Premium
   ============================================ */
body.logged-in .sidebar {
    background: #0a0a0c;
    border-right: 1px solid #1a1a1e;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

body.logged-in .sidebar-header {
    border-bottom: 1px solid #1a1a1e;
    padding: 1.25rem;
}

body.logged-in .logo {
    color: #fafafa;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.logged-in .logo-icon {
    color: var(--gold);
}

body.logged-in .sidebar-nav a {
    color: #8a8a94;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

body.logged-in .sidebar-nav a:hover {
    background: #16161a;
    color: #fafafa;
}

body.logged-in .sidebar-nav a.active {
    background: var(--gold);
    color: #0a0a0c;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

body.logged-in .sidebar-nav a.active svg {
    stroke: #0a0a0c;
}

body.logged-in .sidebar-footer {
    border-top: 1px solid #1a1a1e;
    background: #08080a;
}

body.logged-in .user-menu {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 10px;
}

body.logged-in .user-info .user-name {
    color: #fafafa;
    font-weight: 600;
}

body.logged-in .user-info .user-plan {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Cards Premium
   ============================================ */
body.logged-in .dashboard-card,
body.logged-in .card {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

body.logged-in .card-header,
body.logged-in .dashboard-card .card-header {
    background: #111113;
    border-bottom: 1px solid #222226;
    padding: 1rem 1.25rem;
}

body.logged-in .card-header h2,
body.logged-in .card-header h3,
body.logged-in .dashboard-card .card-header h2,
body.logged-in .dashboard-card .card-header h3 {
    color: #fafafa;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Stat Cards Premium */
body.logged-in .stat-card {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

body.logged-in .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.logged-in .stat-card:hover::before {
    opacity: 1;
}

body.logged-in .stat-card .stat-icon {
    background: #1c1c20;
    border: 1px solid #2a2a30;
    color: var(--gold);
}

body.logged-in .stat-card .stat-value {
    color: #fafafa;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

body.logged-in .stat-card .stat-label {
    color: #6e6e78;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

body.logged-in .stat-progress {
    background: #1c1c20;
    border-radius: 4px;
    height: 6px;
}

body.logged-in .stat-progress-bar {
    background: var(--gold);
    border-radius: 4px;
}

/* ============================================
   Formulários Premium
   ============================================ */
body.logged-in .form-control,
body.logged-in input[type="text"],
body.logged-in input[type="email"],
body.logged-in input[type="password"],
body.logged-in input[type="number"],
body.logged-in input[type="search"],
body.logged-in textarea,
body.logged-in select {
    background: #0e0e10;
    border: 1px solid #2a2a30;
    color: #fafafa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

body.logged-in .form-control:focus,
body.logged-in input:focus,
body.logged-in textarea:focus,
body.logged-in select:focus {
    border-color: var(--gold);
    background: #111113;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

body.logged-in .form-control::placeholder,
body.logged-in input::placeholder,
body.logged-in textarea::placeholder {
    color: #4a4a54;
}

body.logged-in label {
    color: #b8b8bf;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   Botões Premium
   ============================================ */
body.logged-in .btn-primary {
    background: var(--gold);
    color: #0a0a0c;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transition: all 0.2s ease;
}

body.logged-in .btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

body.logged-in .btn-outline {
    border: 1px solid #3a3a42;
    color: #b8b8bf;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
}

body.logged-in .btn-outline:hover {
    background: #1c1c20;
    border-color: #4a4a52;
    color: #fafafa;
}

body.logged-in .btn-secondary {
    background: #1c1c20;
    color: #fafafa;
    border: 1px solid #2a2a30;
    font-weight: 500;
}

body.logged-in .btn-secondary:hover {
    background: #242428;
    border-color: #3a3a42;
    color: #fafafa;
}

body.logged-in .btn-danger {
    background: #dc2626;
    color: #fff;
}

body.logged-in .btn-danger:hover {
    background: #b91c1c;
}

/* Quick Actions Premium */
body.logged-in .quick-action-btn {
    background: #141416;
    border: 1px solid #222226;
    color: #b8b8bf;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.25s ease;
}

body.logged-in .quick-action-btn:hover {
    background: #1c1c20;
    border-color: var(--gold-muted);
    color: #fafafa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

body.logged-in .quick-action-btn svg {
    color: var(--gold);
}

/* ============================================
   Tabelas Premium
   ============================================ */
body.logged-in table {
    background: #141416;
    border-radius: 12px;
    overflow: hidden;
}

body.logged-in th {
    background: #111113;
    color: #6e6e78;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
}

body.logged-in td {
    border-color: #1c1c20;
    color: #b8b8bf;
    padding: 1rem 1.25rem;
}

body.logged-in tbody tr {
    transition: background 0.2s ease;
}

body.logged-in tbody tr:hover {
    background: #1a1a1e;
}

body.logged-in tbody tr:hover td {
    color: #fafafa;
}

/* ============================================
   Listas e Items Premium
   ============================================ */
body.logged-in .song-list li,
body.logged-in .playlist-list li {
    border-bottom: 1px solid #1c1c20;
}

body.logged-in .song-item,
body.logged-in .playlist-item {
    padding: 1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
}

body.logged-in .song-item:hover,
body.logged-in .playlist-item:hover {
    background: #1a1a1e;
}

body.logged-in .song-title,
body.logged-in .playlist-name {
    color: #fafafa;
    font-weight: 500;
}

body.logged-in .song-artist {
    color: #6e6e78;
}

/* Tom das músicas - Badge elegante */
body.logged-in .song-key {
    background: #1c1c20;
    color: var(--gold);
    border: 1px solid #2a2a30;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}

/* ============================================
   Player e Cifras Premium
   ============================================ */
body.logged-in .player-controls {
    background: #111113;
    border: 1px solid #1c1c20;
    border-radius: 12px;
}

body.logged-in .control-section {
    border-bottom: 1px solid #1c1c20;
    padding: 1.25rem;
}

body.logged-in .control-section h3 {
    color: #6e6e78;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

body.logged-in .info-item .label {
    color: #6e6e78;
}

body.logged-in .info-item .value {
    color: #fafafa;
    font-weight: 500;
}

/* Container da Cifra - Fundo escuro elegante */
body.logged-in .cifra-container,
body.logged-in .player-content {
    background: #0a0a0c;
    color: #e8e8ec;
    border: 1px solid #1a1a1e;
    border-radius: 12px;
    padding: 2rem;
    font-family: var(--font-mono);
    line-height: 1.8;
}

/* ACORDES - Cor dourada destacada */
body.logged-in .cifra-container .chord,
body.logged-in .player-content .chord {
    color: var(--gold);
    font-weight: 700;
}

body.logged-in .cifra-container .chord,
body.logged-in .player-content .chord {
    cursor: default;
    border-radius: 4px;
}

body.logged-in .cifra-container .section-title,
body.logged-in .player-content .section-title {
    color: #6e6e78;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8125rem;
    margin: 2rem 0 1rem;
}

/* Painel de Acordes */
body.logged-in .chords-panel {
    background: #111113;
    border: 1px solid #1c1c20;
    border-radius: 12px;
}

body.logged-in .chord-diagram {
    background: #0e0e10;
    border: 1px solid #1c1c20;
    border-radius: 8px;
    padding: 0.75rem;
}

body.logged-in .chord-diagram svg {
    color: #fafafa;
}

body.logged-in .chord-diagram svg text.chord-title {
    fill: var(--gold);
}

/* Números dos dedos - preto para contraste */
body.logged-in .chord-diagram svg text.finger-number,
body.logged-in .chord-diagram text[fill="black"],
.chord-diagram svg text.finger-number,
.chord-diagram text[fill="black"] {
    fill: #000000 !important;
}

/* Chord badges - Estilo premium */
body.logged-in .chord-badge {
    background: #0e0e10;
    color: var(--gold);
    border: 1px solid #2a2a30;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: default;
}

/* ============================================
   Badges e Tags Premium
   ============================================ */
body.logged-in .badge {
    background: #1c1c20;
    color: #b8b8bf;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}

body.logged-in .badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

body.logged-in .badge-warning {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

body.logged-in .badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

body.logged-in .tag {
    background: #1c1c20;
    color: #8a8a94;
    border: 1px solid #2a2a30;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
}

/* ============================================
   Modais Premium
   ============================================ */
body.logged-in .modal-content {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

body.logged-in .modal-header {
    border-bottom: 1px solid #222226;
    padding: 1.25rem 1.5rem;
}

body.logged-in .modal-header h2,
body.logged-in .modal-header h3 {
    color: #fafafa;
}

body.logged-in .modal-body {
    padding: 1.5rem;
}

body.logged-in .modal-footer {
    border-top: 1px solid #222226;
    padding: 1rem 1.5rem;
    background: #111113;
}

/* ============================================
   Dropdown Premium
   ============================================ */
body.logged-in .dropdown-menu {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
}

body.logged-in .dropdown-item {
    color: #b8b8bf;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

body.logged-in .dropdown-item:hover {
    background: #1c1c20;
    color: #fafafa;
}

/* ============================================
   Paginação Premium
   ============================================ */
body.logged-in .pagination {
    gap: 0.375rem;
}

body.logged-in .pagination a,
body.logged-in .pagination span {
    background: #141416;
    border: 1px solid #222226;
    color: #8a8a94;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.logged-in .pagination a:hover {
    background: #1c1c20;
    border-color: #2a2a30;
    color: #fafafa;
}

body.logged-in .pagination .active {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0c;
    font-weight: 600;
}

/* ============================================
   Alerts Premium
   ============================================ */
body.logged-in .alert {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--gold);
}

body.logged-in .alert-success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

body.logged-in .alert-danger {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

body.logged-in .alert-warning {
    border-left-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

/* ============================================
   Filtros e Busca Premium
   ============================================ */
body.logged-in .filters,
body.logged-in .search-box {
    background: #141416;
    border: 1px solid #222226;
    border-radius: 10px;
    padding: 1rem;
}

body.logged-in .filter-group label {
    color: #6e6e78;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Empty States Premium
   ============================================ */
body.logged-in .empty-state {
    color: #4a4a54;
    padding: 3rem;
}

body.logged-in .empty-state svg {
    color: #2a2a30;
    margin-bottom: 1rem;
}

body.logged-in .empty-state h3 {
    color: #6e6e78;
    margin-bottom: 0.5rem;
}

/* ============================================
   Mobile Header Premium
   ============================================ */
body.logged-in .mobile-header {
    background: #0a0a0c;
    border-bottom: 1px solid #1a1a1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Footer Premium
   ============================================ */
body.logged-in .app-footer {
    background: transparent;
    border-top: 1px solid #1a1a1e;
    color: #4a4a54;
}

/* ============================================
   Page Header Premium
   ============================================ */
body.logged-in .page-header {
    margin-bottom: 2rem;
}

body.logged-in .page-header h1 {
    color: #fafafa;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

body.logged-in .page-header p {
    color: #6e6e78;
}

/* ============================================
   Playlist Color Premium
   ============================================ */
body.logged-in .playlist-color {
    box-shadow: 0 0 0 2px #141416, 0 0 0 3px #2a2a30;
}

/* ============================================
   Textos de Ajuda Premium
   ============================================ */
body.logged-in .form-help,
body.logged-in .help-text,
body.logged-in small.form-text,
body.logged-in .input-hint {
    color: #6e6e78;
    font-size: 0.8125rem;
}

body.logged-in .content-help {
    background: #1c1c20;
    border: 1px solid #2a2a30;
    border-radius: 8px;
    padding: 1rem;
}

body.logged-in .content-help p {
    color: #8a8a94;
}

body.logged-in code {
    background: #0e0e10;
    color: var(--gold);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    border: 1px solid #222226;
}

body.logged-in .example-text,
body.logged-in .chord-example {
    color: #8a8a94;
}

/* ============================================
   Scrollbar Premium
   ============================================ */
body.logged-in ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.logged-in ::-webkit-scrollbar-track {
    background: #0c0c0e;
}

body.logged-in ::-webkit-scrollbar-thumb {
    background: #2a2a30;
    border-radius: 4px;
}

body.logged-in ::-webkit-scrollbar-thumb:hover {
    background: #3a3a42;
}

/* ============================================
   Transposição Premium
   ============================================ */
body.logged-in .transpose-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.logged-in .transpose-value {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.125rem;
    min-width: 3rem;
    text-align: center;
}

/* ============================================
   Range Input Premium
   ============================================ */
body.logged-in input[type="range"] {
    -webkit-appearance: none;
    background: #1c1c20;
    border-radius: 4px;
    height: 6px;
}

body.logged-in input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

body.logged-in input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--gold-light);
}

/* ============================================
   Toggle Buttons Premium
   ============================================ */
body.logged-in .toggle-btn {
    background: #141416;
    border: 1px solid #2a2a30;
    color: #8a8a94;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

body.logged-in .toggle-btn:hover {
    background: #1c1c20;
    color: #fafafa;
}

body.logged-in .toggle-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0c;
    font-weight: 600;
}

/* ============================================
   Favorite Button Premium
   ============================================ */
body.logged-in .favorite-btn {
    color: #4a4a54;
    transition: all 0.2s ease;
}

body.logged-in .favorite-btn:hover {
    color: #ef4444;
}

body.logged-in .favorite-btn.active {
    color: #ef4444;
}

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Layout Principal
   ============================================ */
body.logged-in {
    display: flex;
    min-height: 100vh;
}

body.logged-in .main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* App Footer */
.app-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.app-footer p {
    margin: 0;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav a.active svg {
    stroke: white;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-actions a {
    padding: 0.5rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
}

.user-actions a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--gray-300);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-danger-outline {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.625rem;
}

.btn-back {
    gap: 0.25rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-mono);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--gold, #d4a855);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-help {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.label-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.label-with-action label {
    margin-bottom: 0;
}

.label-with-action .btn {
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-sm svg {
    flex-shrink: 0;
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.form-help h4 {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-help code {
    background: var(--gray-200);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-section {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.form-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-actions-right {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert li {
    margin-bottom: 0.25rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2,
.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 1rem;
}

.empty-state-large {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.empty-icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.empty-state-large h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state-large p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-progress {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stat-limit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Song & Playlist Lists */
.song-list,
.playlist-list {
    list-style: none;
}

.song-item,
.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.song-item:hover,
.playlist-item:hover {
    background: var(--bg-secondary);
}

.song-info,
.playlist-info {
    flex: 1;
    min-width: 0;
}

.song-title,
.playlist-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist,
.playlist-count {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.song-key {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.playlist-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.favorite-icon {
    color: var(--danger);
    margin-right: 0.25rem;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #000;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=1920&q=80') center/cover no-repeat;
    opacity: 0.85;
}

.auth-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Remove padding quando tem auth-container */
.page-content:has(.auth-container) {
    padding: 0;
    max-width: none;
}

.main-content:has(.auth-container) {
    background: transparent;
}

body:has(.auth-container) {
    background: #000;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Filters Bar
   ============================================ */
.filters-bar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
}

.filter-form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    font-size: 0.9375rem;
    min-width: 150px;
}

/* ============================================
   Songs Grid
   ============================================ */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Songs Table */
.table-responsive {
    overflow-x: auto;
}

.songs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.songs-table thead {
    background: var(--bg-secondary);
}

.songs-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.songs-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.songs-table tbody tr:hover {
    background: var(--bg-secondary);
    cursor: pointer;
}

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

.th-checkbox {
    width: 40px;
    text-align: center;
}

.td-checkbox {
    text-align: center;
}

.th-favorite {
    width: 40px;
}

.th-actions {
    width: 180px;
    text-align: center;
}

/* Bulk Selection Checkbox */
.bulk-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.bulk-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bulk-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    transition: all 0.15s ease;
}

.bulk-checkbox:hover .checkmark {
    border-color: var(--primary);
}

.bulk-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.bulk-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bulk-checkbox input:indeterminate + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.bulk-checkbox input:indeterminate + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 7px;
    width: 10px;
    height: 2px;
    background: white;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    gap: 1rem;
}

.bulk-actions-info {
    font-weight: 500;
    font-size: 0.9rem;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
}

.bulk-actions-bar .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.bulk-actions-bar .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.bulk-actions-bar .btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.bulk-actions-bar .btn-danger:hover {
    background: #c53030;
    border-color: #c53030;
}

/* Row selected state */
.song-row.selected {
    background: rgba(59, 130, 246, 0.1);
}

.td-favorite {
    text-align: center;
}

.favorite-icon {
    color: var(--danger);
    font-size: 1.125rem;
}

.td-title a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.td-title a:hover {
    color: var(--primary);
}

.td-artist {
    color: var(--text-secondary);
}

.td-key,
.td-bpm {
    font-family: var(--font-mono);
    font-weight: 500;
}

.td-actions {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-buttons .btn {
    padding: 0.375rem 0.5rem;
}

/* Sortable Table Headers */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

th.sortable:hover {
    background: var(--bg-tertiary);
}

th.sortable::after {
    content: ' \2195';
    opacity: 0.4;
    font-size: 0.75rem;
}

th.sortable.sort-asc::after {
    content: ' \2191';
    opacity: 1;
    color: var(--primary);
}

th.sortable.sort-desc::after {
    content: ' \2193';
    opacity: 1;
    color: var(--primary);
}

.song-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.song-card-link {
    display: block;
    padding: 1.25rem;
    color: var(--text-primary);
}

.song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.song-card .song-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

.song-card .song-artist {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.song-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
}

.meta-item {
    color: var(--text-muted);
}

.meta-item strong {
    color: var(--text-secondary);
}

.favorite-badge {
    color: var(--danger);
    font-size: 1rem;
}

.song-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.favorite-btn {
    margin-left: auto;
}

/* ============================================
   Playlists Grid
   ============================================ */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Playlists Table */
.playlists-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.playlists-table thead {
    background: var(--bg-secondary);
}

.playlists-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.playlists-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.playlists-table tbody tr:hover {
    background: var(--bg-secondary);
    cursor: pointer;
}

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

.th-color {
    width: 50px;
}

.td-color {
    text-align: center;
}

.color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.td-name a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.td-name a:hover {
    color: var(--primary);
}

.td-count {
    font-family: var(--font-mono);
    font-weight: 500;
}

.td-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

.badge-public {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-private {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.playlist-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.playlist-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.playlist-card-link {
    display: block;
    color: var(--text-primary);
}

.playlist-cover {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.9;
}

.playlist-card .playlist-info {
    padding: 1rem 1.25rem;
}

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

.playlist-card .playlist-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.playlist-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.025em;
}

.badge-public {
    background: #dbeafe;
    color: #1e40af;
}

.badge-easy {
    background: #d1fae5;
    color: #065f46;
}

.badge-medium {
    background: #fef3c7;
    color: #92400e;
}

.badge-hard {
    background: #fee2e2;
    color: #991b1b;
}

.badge-barre {
    background: #e0e7ff;
    color: #3730a3;
}

/* ============================================
   Modals
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
}

/* Modal Grande (Adicionar Músicas) */
.modal-large {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
}

/* Modal Pequeno (Alertas e Confirmações) */
.modal-small {
    max-width: 400px;
    width: 90%;
}

.modal-small .modal-body p {
    margin: 0;
    line-height: 1.6;
}

/* Diagrama de Acorde no Modal */
.chord-modal-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--text-primary);
}

.chord-modal-diagram svg {
    max-width: 200px;
    height: auto;
    color: var(--gold);
}

.chord-modal-diagram svg .chord-title {
    fill: var(--gold);
}

.chord-modal-diagram svg text {
    fill: var(--text-primary);
}

.chord-modal-diagram svg line {
    stroke: var(--text-secondary);
}

.chord-modal-diagram svg rect.nut,
.chord-modal-diagram svg circle.finger,
.chord-modal-diagram svg rect.barre,
.chord-modal-diagram svg circle:not(.open-string) {
    fill: var(--gold);
}

.chord-modal-diagram svg circle.open-string {
    stroke: var(--text-primary);
    fill: none;
}

#chordModal .modal-content {
    max-width: 320px;
}

#chordModal .modal-body {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    font-size: 1rem;
    color: var(--text-primary);
}

.modal-search input:focus {
    outline: none;
    border-color: var(--primary);
}

#addSongsModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 200px;
    max-height: none;
}

#addSongsModal .modal-footer {
    justify-content: space-between;
    background: var(--bg-primary);
}

.selected-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.loading-songs,
.no-songs-message,
.error-message {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.songs-list {
    display: flex;
    flex-direction: column;
}

.song-select-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
}

.song-select-item:hover:not(.already-added) {
    background: var(--bg-secondary);
}

.song-select-item.selected {
    background: rgba(59, 130, 246, 0.1);
}

.song-select-item.already-added {
    opacity: 0.6;
    cursor: default;
}

.song-checkbox {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
}

.song-select-item.selected .song-checkbox,
.song-select-item.already-added .song-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

.check-icon {
    color: white;
    font-size: 14px;
    opacity: 0;
}

.check-icon.checked,
.check-icon.added {
    opacity: 1;
}

.song-select-info {
    flex: 1;
    min-width: 0;
}

.song-select-title {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-select-artist {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.song-select-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.already-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Botão Adicionar Músicas */
.add-song-section {
    margin-bottom: 1.5rem;
}

.btn-add-songs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Cifra / Player
   ============================================ */
.player-layout {
    display: grid;
    grid-template-columns: 280px 1fr 200px;
    gap: 1.5rem;
    min-height: calc(100vh - 200px);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.song-header-info h1 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.song-header-info .song-artist {
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.player-controls {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.control-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.control-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.control-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.info-item .label {
    color: var(--text-secondary);
}

.info-item .value {
    font-weight: 600;
}

/* Transpose Controls */
.transpose-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.transpose-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    min-width: 3rem;
    text-align: center;
}

/* Scroll Controls */
.scroll-controls {
    display: flex;
    justify-content: center;
}

.speed-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.speed-control label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.speed-control input[type="range"] {
    width: 100%;
}

/* Chords Used */
.chords-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chord-badge {
    padding: 0.375rem 0.625rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Player Content */
.player-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    scroll-behavior: smooth;
}

.cifra-container {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 2;
}

.line {
    margin-bottom: 0.25rem;
}

.empty-line {
    height: 1.5rem;
}

.section-line {
    margin: 1.5rem 0 0.5rem;
}

.section-marker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.875rem;
}

.chord-line {
    display: flex;
    flex-direction: column;
}

.chords-row {
    color: var(--gold);
    font-weight: 700;
    line-height: 1.5;
    min-height: 1.5rem;
}

.lyrics-row {
    color: var(--text-primary);
}

.lyrics-only {
    color: var(--text-primary);
}

.lyrics-only pre,
.chords-only pre {
    margin: 0;
    font-family: var(--font-mono);
    white-space: pre;
}

.chords-only {
    color: var(--gold);
    font-weight: 700;
    line-height: 1.8;
}

.chords-only pre {
    font-size: inherit;
}

.chord {
    color: var(--gold);
    padding: 0.125rem 0.375rem;
    margin: 0 0.125rem;
    border-radius: 4px;
    font-weight: 700;
}

.chord-display {
    background: var(--gold);
    color: #0a0a0c;
}

/* Chords Panel */
.chords-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
}

.chords-diagrams {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chord-diagram {
    text-align: center;
}

.chord-diagram svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Chord Diagrams SVG */
.chord-diagram svg {
    color: var(--text-primary);
}

.chord-title {
    fill: var(--text-primary);
}

/* ============================================
   Chords Library
   ============================================ */
.chord-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.chord-group {
    margin-bottom: 2rem;
}

.chord-group-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.chords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.chord-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.chord-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.chord-diagram-wrapper {
    margin-bottom: 0.75rem;
}

.chord-diagram-wrapper svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.chord-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chord-info .chord-name {
    font-weight: 700;
    font-size: 1rem;
}

.chord-info .chord-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* ============================================
   Color Picker
   ============================================ */
.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2px;
    cursor: pointer;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
}

.color-preset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-preset:hover {
    transform: scale(1.1);
}

/* ============================================
   Playlist View
   ============================================ */
.playlist-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.playlist-color-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
}

.playlist-description {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.add-song-section {
    margin-bottom: 1.5rem;
}

.search-songs {
    position: relative;
}

.search-songs input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.result-info {
    display: flex;
    flex-direction: column;
}

.result-title {
    font-weight: 500;
}

.result-artist {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Playlist Songs */
.playlist-songs {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.playlist-song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.playlist-song-item:hover {
    background: var(--bg-secondary);
}

.playlist-song-item.dragging {
    opacity: 0.5;
    background: var(--bg-tertiary);
}

.song-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.song-drag-handle {
    cursor: grab;
    padding: 0.5rem;
    color: var(--text-muted);
}

.song-drag-handle:hover {
    color: var(--text-primary);
}

.playlist-song-item .song-info {
    flex: 1;
}

.playlist-song-item .song-title {
    font-weight: 500;
    color: var(--text-primary);
}

.playlist-song-item .song-title:hover {
    color: var(--primary);
}

.playlist-song-item .song-artist {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.song-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .player-layout {
        grid-template-columns: 1fr;
    }

    .player-controls,
    .chords-panel {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.logged-in .main-content {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .sidebar-toggle {
        display: block;
    }

    .page-content {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions-right {
        width: 100%;
        justify-content: space-between;
    }

    .filter-form {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .songs-grid,
    .playlists-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chords-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    /* Auth pages mobile */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    /* Tables mobile - horizontal scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    /* Bulk actions bar mobile */
    .bulk-actions-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        position: sticky;
        top: 60px;
        z-index: 50;
    }

    .bulk-actions-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Song player mobile */
    .player-controls {
        padding: 1rem;
    }

    .player-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .player-actions .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.25rem);
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .chords-panel {
        display: none;
    }

    .chords-panel.mobile-visible {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        overflow-y: auto;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        z-index: 100;
    }

    /* Modal mobile */
    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
        width: calc(100% - 1rem);
    }

    .modal-large {
        max-height: calc(100vh - 1rem);
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Add Songs Modal mobile */
    #addSongsModal .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    #addSongsModal .modal-footer .selected-count {
        order: -1;
    }

    #addSongsModal .modal-footer .modal-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    #addSongsModal .modal-footer .modal-actions .btn {
        flex: 1;
    }

    /* Button groups mobile */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* Card actions mobile */
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card-actions .btn {
        width: 100%;
    }

    /* Page title mobile */
    .page-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Quick actions mobile */
    .quick-actions {
        flex-wrap: wrap;
    }

    .quick-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    /* Empty state mobile */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state h3 {
        font-size: 1.25rem;
    }

    /* Speed slider mobile - larger touch target */
    .speed-slider input[type="range"] {
        height: 32px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .page-content {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ============================================
   Landing Page
   ============================================ */
.landing-page {
    background: var(--bg-primary);
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-nav a {
    color: var(--text-secondary);
    font-weight: 500;
}

.landing-nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mockup */
.mockup {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mockup-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.mockup-content {
    padding: 1.5rem;
}

.mockup-song {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 2;
}

.mockup-song .chord-line {
    color: var(--primary);
    font-weight: 600;
}

.mockup-song .chord {
    margin-right: 2rem;
}

.mockup-song .lyric-line {
    color: var(--text-primary);
}

/* Features */
.features {
    padding: 5rem 2rem;
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Pricing */
.pricing {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.pricing .container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-price .period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features .check {
    color: var(--success);
    font-weight: bold;
}

.pricing-features .x {
    color: var(--gray-400);
}

/* CTA */
.cta {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--primary);
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background: var(--gray-100);
}

/* Footer */
.landing-footer {
    padding: 4rem 2rem 2rem;
    background: var(--gray-900);
    color: white;
}

.landing-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo-icon {
    color: var(--primary-light);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-links a {
    display: block;
    color: var(--gray-300);
    padding: 0.25rem 0;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

/* Responsive Landing */
@media (max-width: 768px) {
    .landing-nav {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Chord Diagram Orientation (Left/Right handed)
   ============================================ */
.chord-orientation-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.chord-orientation-toggle label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chord-orientation-toggle .toggle-buttons {
    display: flex;
    gap: 0.25rem;
}

.chord-orientation-toggle .toggle-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.chord-orientation-toggle .toggle-btn:hover {
    border-color: var(--primary);
}

.chord-orientation-toggle .toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Diagrama espelhado para destros (corda grave à esquerda) */
/* Apenas os diagramas no painel lateral, não a cifra */
body.chord-right-handed .chords-panel .chord-diagram svg {
    transform: scaleX(-1);
}

/* Contra-transformação para textos ficarem legíveis */
body.chord-right-handed .chords-panel .chord-diagram svg text {
    transform: scaleX(-1);
    transform-origin: center;
    transform-box: fill-box;
}

/* Modal de acordes */
body.chord-right-handed #chordModal .modal-body svg {
    transform: scaleX(-1);
}

body.chord-right-handed #chordModal .modal-body svg text {
    transform: scaleX(-1);
    transform-origin: center;
    transform-box: fill-box;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: center;
    }

    .pagination-info {
        order: 2;
    }

    .pagination-links {
        order: 1;
    }
}

/* ============================================
   Utilities
   ============================================ */
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ============================================
   Dashboard - Plan Expiration
   ============================================ */
.plan-expiration {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.expiration-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.expiration-badge.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.expiration-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.expiration-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-expiration .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* ============================================
   Dashboard - Admin Quick Access
   ============================================ */
.admin-quick-access {
    margin-bottom: 2rem;
}

.admin-access-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius-lg);
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-access-btn:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.admin-access-btn .god-mode-badge {
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.admin-access-btn svg {
    margin-left: auto;
}

/* ============================================
   Sidebar - Admin Link
   ============================================ */
.nav-admin-link {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.nav-admin-link a {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 183, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-admin-link a:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 183, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}

.nav-admin-link a.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 183, 0, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.nav-admin-link .admin-badge {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}
