/* ============================================================
   MAJU Coleta v2.0 - Base CSS
   Tema: Dark Purple + Gold (inspirado MAJU TECH)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --purple-950: #0c0820;
    --purple-900: #160a3b;
    --purple-800: #1e1252;
    --purple-700: #2a1a6e;
    --purple-600: #3d2a8a;
    --purple-500: #5b3fb3;
    --gold-600: #b8972e;
    --gold-500: #D4AF37;
    --gold-400: #e0c45c;
    --gold-300: #ebd580;
    --gold-200: #f3e5a8;
    --gold-100: #faf3d4;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --green-600: #059669;
    --green-500: #10b981;
    --green-50: #ecfdf5;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-50: #fffbeb;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-50: #fef2f2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 24px rgba(212,175,55,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--slate-100);
    color: var(--slate-800);
    min-height: 100vh;
    line-height: 1.6;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.25); }
    50% { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-in { animation: fadeInUp 0.5s ease-out both; }
.animate-in-1 { animation-delay: 0.08s; }
.animate-in-2 { animation-delay: 0.16s; }
.animate-in-3 { animation-delay: 0.24s; }
.animate-in-4 { animation-delay: 0.32s; }
.animate-in-5 { animation-delay: 0.40s; }

/* ---- HEADER ---- */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.header {
    background: linear-gradient(135deg, var(--purple-950) 0%, var(--purple-900) 60%, var(--purple-800) 100%);
    color: var(--white);
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(12,8,32,0.5);
    border-bottom: 1px solid rgba(212,175,55,0.12);
}

.header-left a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.header-left a:hover { opacity: 0.9; transform: scale(1.01); }
.header-logo-img { height: 36px; width: auto; }

.header-right { display: flex; align-items: center; gap: 12px; }

.header-user {
    font-size: 13px;
    color: var(--gold-300);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(212,175,55,0.08);
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.15);
}

.header-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
}
.header-btn:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.header-btn.btn-logout { background: rgba(220,38,38,0.12); border-color: rgba(220,38,38,0.2); }
.header-btn.btn-logout:hover { background: rgba(220,38,38,0.25); }

/* ---- MAIN ---- */
.main-content {
    flex: 1;
    padding: 28px 32px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-out;
}

/* ---- FOOTER ---- */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--slate-500);
    font-size: 13px;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
    margin-top: auto;
}
.footer strong { color: var(--purple-700); }

@media (max-width: 768px) {
    .header { padding: 0 16px; }
    .main-content { padding: 16px; }
    .header-user { display: none; }
    .header-logo-img { height: 28px; }
}
