/* AIVO GEO Academy - Dashboard CSS Variables & Base Styles */

:root {
    --primary-gold: #D4AF37;
    --secondary-purple: #8B7FB8;
    --success-green: #059669;
    --info-blue: #2563EB;
    --warning-orange: #F59E0B;
    --error-red: #DC2626;
    --dark-text: #1F2937;
    --gray-text: #6B7280;
    --light-gray: #9CA3AF;
    --surface: #F8FAFC;
    --border: #E5E7EB;
    --white: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--surface);
    color: var(--dark-text);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-purple));
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.header-title p {
    opacity: 0.9;
    font-size: 0.95rem;
}

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

.header-actions a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.header-actions a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.user-menu {
    position: relative;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: white;
    text-decoration: none;
}

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

.btn-success:hover {
    background: #047857;
    text-decoration: none;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Form Elements */
input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-gold);
}

.badge-purple {
    background: rgba(139, 127, 184, 0.15);
    color: var(--secondary-purple);
}

.badge-success {
    background: rgba(5, 150, 105, 0.15);
    color: var(--success-green);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-orange);
}

.badge-info {
    background: rgba(37, 99, 235, 0.15);
    color: var(--info-blue);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    color: var(--success-green);
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: var(--error-red);
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #DBEAFE;
    color: var(--info-blue);
    border: 1px solid #BFDBFE;
}

/* Progress bars */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.25rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .header-actions a {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
