:root {
    /* Colors - Dark Theme */
    --primary-color: #3b82f6; /* Blue */
    --primary-dark: #2563eb;
    --secondary-color: #facc15; /* Yellow */
    --bg-color: #060b19; /* Fundo mais escuro para realçar o glassmorphism */
    --surface-color: rgba(255, 255, 255, 0.03); /* Glass base */
    --primary-color: #0088ff; /* Azul super vivo e moderno */
    --primary-hover: #0066cc;
    --secondary-color: #facc15; 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08); /* Borda sutil glass */
    --danger-color: #ef4444;
    --success-color: #10b981;
    
    /* Celebration Panel Specific */
    --panel-bg: #001242; /* Deep Navy Blue */
    --pill-bg: #00479A; /* Mid Blue for name pill */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* PAGES */
.page {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CELEBRATION PANEL (New Design) */
.celebration-panel {
    width: 100%;
    min-height: 600px;
    background: var(--panel-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    overflow: hidden;
    color: white;
}

.balloon {
    position: absolute;
    width: 260px;
    height: auto;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
    animation: floatBalloon 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

.balloon-left {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.balloon-right {
    bottom: 20%;
    right: 8%;
    animation-delay: 2s;
    width: 300px;
}

.balloon-extra {
    top: 25%;
    right: 30%;
    animation-delay: 4s;
    width: 200px;
}

@keyframes floatBalloon {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(6deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.celebration-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.star-blue { color: #3b82f6; transform: translateY(10px); }
.star-yellow { color: #facc15; font-size: 4rem; z-index: 2; }
.star-green { color: #22c55e; transform: translateY(10px); }

.cursive-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: -1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

.bold-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.highlight-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

/* Pill design for names */
.birthday-name-pill {
    background: var(--pill-bg);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
    transition: transform 0.2s;
    letter-spacing: 1px;
}

.birthday-name-pill:hover {
    transform: scale(1.02);
}

.celebration-message {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.celebration-message p {
    margin-bottom: 1.5rem;
}

.panel-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.panel-logo i {
    font-size: 3rem;
}

.panel-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* CURRENT MONTH SECTION (Floating Cards) */
.current-month-section {
    padding: 4rem 5%;
    background: var(--bg-color);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.current-month-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.floating-card {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 136, 255, 0.15), 0 10px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 136, 255, 0.4);
}

.floating-card-date {
    background: var(--primary-color);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    min-width: 65px;
    height: 65px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.floating-card-date span {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 2px;
}

.floating-card-info {
    flex: 1;
}

.floating-card-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

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

/* MONTHS SECTION (Anual) */
.months-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.months-section h3 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    position: relative;
}

.months-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.month-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.month-nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.month-nav-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 136, 255, 0.3);
}

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

.month-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.month-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.month-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.month-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.month-title {
    font-size: 1.4rem;
    color: var(--text-main);
}

.person-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
    transition: background-color 0.2s;
    border-radius: 6px;
}

.person-item:hover {
    background-color: var(--bg-color);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

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

.person-name {
    font-weight: 500;
}

.person-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(244, 63, 94, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* ADMIN PANEL */
.admin-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-container > h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.admin-container > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Aplicação de Glassmorphism nos Cards e Seções Admin */
.admin-card, .admin-list-section {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.filters-container .form-group {
    margin-bottom: 0;
}

.filters-container input, .filters-container select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.filters-container input:focus, .filters-container select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

.admin-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: var(--font-body);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
}

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

.csv-help {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.file-label:hover {
    background: rgba(99, 102, 241, 0.05);
}

.csv-preview {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.csv-preview p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.5);
}

.btn-back-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.hidden {
    display: none !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.admin-list-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

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

.admin-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
    background: rgba(0,0,0,0.01);
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Menu Hamburguer */
    .mobile-menu-btn {
        display: block;
    }
    
    #main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 11, 25, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    #main-nav.active {
        display: flex;
    }
    
    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }
    
    .nav-btn:last-child {
        border-bottom: none;
    }

    /* Painel de Celebração Compacto */
    .celebration-panel {
        padding: 3rem 5%;
        min-height: auto;
    }
    .cursive-title { font-size: 3.5rem; }
    .bold-subtitle { font-size: 2rem; margin-bottom: 2rem; }
    .birthday-name-pill { font-size: 1.1rem; padding: 0.6rem 1.2rem; }

    /* Balões nas bordas apenas (Menores e mais transparentes) */
    .balloon { width: 100px !important; opacity: 0.4; }
    .balloon-left { left: -30px; top: 10%; }
    .balloon-right { right: -30px; bottom: 10%; width: 120px !important; }
    .balloon-extra { display: none; }

    /* Adaptação dos Grids e Espaçamentos GERAIS */
    .admin-grid, .filters-container, .months-grid {
        grid-template-columns: 1fr;
    }
    .admin-card, .admin-list-section {
        padding: 1.2rem;
    }
    
    /* CARDS DO MÊS ATUAL */
    .floating-card {
        width: 100%;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    .floating-card-date {
        min-width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .floating-card-info h4 { font-size: 1rem; }
    .floating-card-info p { font-size: 0.8rem; }
    
    /* RELAÇÃO ANUAL */
    .months-section h3 { font-size: 1.8rem; }
    .month-card { padding: 1.2rem; }
    .person-item { font-size: 0.9rem; padding: 0.6rem 0; }
    .person-date { font-size: 0.8rem; }

    /* TRANSFORMAR TABELA ADMIN EM CARDS MOBILE (Zero Scroll Horizontal) */
    .table-responsive {
        border: none;
        background: transparent;
        box-shadow: none;
    }
    .admin-table, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr {
        display: block;
        width: 100%;
    }
    .admin-table thead {
        display: none; /* Esconde o cabeçalho original */
    }
    .admin-table tr {
        margin-bottom: 1.5rem;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 0.5rem;
    }
    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 0.9rem;
    }
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        color: var(--primary-color);
        font-size: 0.75rem;
        text-align: left;
        margin-right: 1rem;
    }
    .admin-table td:last-child {
        border-bottom: none;
    }
}
