/* CineReserve - Tema Dinâmico */
:root {
    /* Tema Vermelho (Padrão) */
    --primary: #E50914;
    --primary-dark: #B20710;
    --primary-light: #ff6b6b;
    --secondary: #221F1F;
    --dark: #141414;
    --light: #F5F5F5;
    --gray: #808080;
    --gold: #FFD700;
    --success: #2ecc71;
    --danger: #e74c3c;
}

/* Temas Alternativos */
:root.theme-green {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #58d68d;
    --secondary: #1e3a2f;
    --dark: #0d1f15;
}

:root.theme-blue {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --secondary: #1a2a3a;
    --dark: #0f1a22;
}

:root.theme-yellow {
    --primary: #f1c40f;
    --primary-dark: #d4ac0d;
    --primary-light: #f7dc6f;
    --secondary: #3a3a1a;
    --dark: #22200d;
}

:root.theme-purple {
    --primary: #9b59b6;
    --primary-dark: #8e44ad;
    --primary-light: #bb8fce;
    --secondary: #2a1a3a;
    --dark: #150f22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--dark);
    color: #fff;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(90deg, #000 0%, var(--secondary) 100%);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.logo:hover .logo-icon::before {
    left: 100%;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
    border-radius: 12px;
    box-shadow: 0 0 20px var(--primary);
}

/* Liquid-like morphing effect for footer icons */
.footer-col h3 .icon,
.footer-contact-item .icon,
.footer-social a {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-col h3 .icon:hover,
.footer-contact-item .icon:hover,
.footer-social a:hover {
    transform: scale(1.1) rotate(5deg);
    border-radius: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.footer-social a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-social a:hover::after {
    opacity: 0.3;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.logo-text-gradient {
    background: linear-gradient(90deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

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

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
}

.theme-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot.active {
    border-color: #fff;
    box-shadow: 0 0 10px var(--primary);
}

.theme-dot.red { background: linear-gradient(135deg, #E50914, #ff6b6b); }
.theme-dot.green { background: linear-gradient(135deg, #2ecc71, #58d68d); }
.theme-dot.blue { background: linear-gradient(135deg, #3498db, #5dade2); }
.theme-dot.yellow { background: linear-gradient(135deg, #f1c40f, #f7dc6f); }
.theme-dot.purple { background: linear-gradient(135deg, #9b59b6, #bb8fce); }

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

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

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.movie-card {
    background: var(--secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

.movie-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.movie-poster-wrapper {
    position: relative;
}

.movie-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.availability {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.available {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.sold-out {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

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

.stat-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-card h3 {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

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

/* Section Title */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 35px;
    background: var(--primary);
    border-radius: 3px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 15px;
    background: var(--secondary);
    color: #fff;
    transition: all 0.3s;
}

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

/* Tables */
.data-table {
    width: 100%;
    background: var(--secondary);
    border-radius: 16px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.data-table th {
    background: var(--dark);
    color: var(--primary);
    font-weight: 600;
}

.data-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Empty State */
.empty {
    text-align: center;
    padding: 80px;
    color: var(--gray);
    background: var(--secondary);
    border-radius: 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

/* Footer - Estilo Avançado */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 60px 40px 30px;
    color: #ccc;
    font-size: 14px;
    border-top: 2px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.footer-col h3 .icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.footer-col h3 .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-col p {
    color: #999;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
}

.footer-contact-item .icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-col:last-child {
    justify-content: flex-start;
}

.footer-col:last-child .footer-social {
    margin-bottom: 15px;
}

.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.footer-col h3 .icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-col h3 .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 20px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Mobile Menu */
@media (max-width: 768px) {
    .header {
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 18px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
    }

    .nav-links a:first-child {
        border-top: none;
    }

    .theme-switcher {
        display: flex;
        padding: 15px 20px;
        justify-content: flex-start;
        gap: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .theme-switcher .theme-dot {
        width: 32px;
        height: 32px;
    }

    .nav-links .btn-primary {
        margin: 20px;
        text-align: center;
    }
}
            max-height: calc(100vh - 60px);
            overflow-y: auto;
        }

        .nav-links.active {
            transform: translateY(0);
        }

        .nav-links a {
            padding: 18px 20px;
            width: 100%;
            text-align: left;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            font-size: 16px;
        }

        .nav-links a:first-child {
            border-top: none;
        }

        .theme-switcher {
            display: flex;
            padding: 15px 20px;
            justify-content: flex-start;
            gap: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

.theme-switcher .theme-dot {
        width: 32px;
        height: 32px;
    }

    .nav-links .btn-primary {
        margin: 20px;
        text-align: center;
    }

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(241, 196, 15, 0.2);
    color: var(--gold);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary);
}

.tabs a {
    padding: 15px 25px;
    background: transparent;
    color: var(--gray);
    text-decoration: none;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s;
    font-weight: 600;
}

.tabs a:hover {
    color: #fff;
    background: var(--secondary);
}

.tabs a.active {
    color: var(--primary);
    background: var(--secondary);
    border-bottom: 3px solid var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}