@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap');

:root {
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-glass: #E2E8F0;
    --border-glass-cyan: #CFFAFE;
    --purple-500: #7C3AED;
    --purple-700: #5B21B6;
    --cyan-400: #0891B2;
    --cyan-500: #06B6D4;
    --emerald-500: #059669;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(124, 58, 237, 0.12);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass & Surfaces */
.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--purple-500);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    background: var(--purple-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-main);
    border-color: #CBD5E1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    transform: translateY(-1px);
}

.btn-emerald {
    background: var(--emerald-500);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.btn-emerald:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

/* Icon Buttons */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F8FAFC;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: #FFFFFF;
    color: var(--purple-500);
    border-color: var(--purple-500);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

/* Header & Nav Responsivo */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-glass);
}

.notice-bar {
    background: linear-gradient(90deg, var(--purple-700), var(--cyan-400));
    color: #FFFFFF;
    padding: 5px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--purple-500);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #E2E8F0;
    color: var(--purple-500);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 32px;
        gap: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-glass);
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid #F1F5F9;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }

    .header-main {
        padding: 12px 16px;
        gap: 12px;
    }
}

/* Formulários */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Tabelas */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 8px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: #F1F5F9;
    border-bottom: 1px solid var(--border-glass);
}

.table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 32px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--purple-500);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Layout Admin */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #0F172A;
    color: #FFFFFF;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1E293B;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: #94A3B8;
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(124, 58, 237, 0.15);
    color: #FFFFFF;
    border-left: 4px solid var(--purple-500);
}

.admin-content {
    padding: 48px;
    background: var(--bg-main);
    max-width: 100%;
    overflow-x: auto;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple-500);
}