/* ========================================
   GAMIFY ADMIN - GLOBAL THEME STYLES
   Color Scheme: Mint/Emerald with Lime Accent
   ======================================== */

/* CSS Custom Properties (Variables) for Color Scheme */
:root {
    /* Brand Colors */
    --light-mint: #00F090;       /* (0, 240, 144) */
    --mint-emerald: #00C060;     /* (0, 192, 96) */
    --deep-emerald: #00A040;     /* (0, 160, 64) */
    --lime-accent: #70E030;      /* (112, 224, 48) */
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e1e5e9;
    --dark-gray: #666;
    --text-dark: #333;
    --text-light: #666;
    
    /* Status Colors */
    --success-bg: rgba(0, 240, 144, 0.1);
    --success-border: rgba(0, 192, 96, 0.3);
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    
    /* Shadows and Effects */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 8px 25px rgba(0, 192, 96, 0.3);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 10px;
    --border-radius-small: 5px;
    --transition: 0.3s ease;
    --transition-fast: 0.2s ease;
}

/* ========================================
   GLOBAL RESET AND BASE STYLES
   ======================================== */

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   BRAND GRADIENTS
   ======================================== */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--light-mint) 0%, var(--deep-emerald) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--mint-emerald) 0%, var(--deep-emerald) 100%);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container-sm {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    background: linear-gradient(135deg, var(--light-mint) 0%, var(--deep-emerald) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
}

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

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ========================================
   CARDS AND SECTIONS
   ======================================== */

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.card-sm {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.welcome-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    border-left: 4px solid var(--light-mint);
}

.login-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 400px;
    position: relative;
}

/* ========================================
   FORMS AND INPUTS
   ======================================== */

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: border-color var(--transition);
    font-family: var(--font-family);
}

.form-control:focus {
    outline: none;
    border-color: var(--mint-emerald);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
    font-family: var(--font-family);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--mint-emerald) 0%, var(--deep-emerald) 100%);
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--mint-emerald) 0%, var(--deep-emerald) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-login:active {
    transform: translateY(0);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    transition: background-color var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   ALERTS AND MESSAGES
   ======================================== */

.alert {
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 0.5rem;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--deep-emerald);
    border: 1px solid var(--success-border);
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.messages {
    margin-bottom: 1rem;
}

/* ========================================
   STATUS BADGES
   ======================================== */

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(0, 240, 144, 0.15);
    color: var(--deep-emerald);
}

.status-staff {
    background: rgba(112, 224, 48, 0.15);
    color: var(--lime-accent);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

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

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   INFORMATION DISPLAY
   ======================================== */

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: var(--text-light);
}

.info-value {
    color: var(--text-dark);
}

/* ========================================
   USER INFO DISPLAY
   ======================================== */

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: var(--white);
}

/* ========================================
   FULL-PAGE LAYOUTS
   ======================================== */

.page-login {
    background: linear-gradient(135deg, var(--light-mint) 0%, var(--deep-emerald) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-dashboard {
    background-color: var(--light-gray);
    min-height: 100vh;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 1rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.text-large { font-size: 1.1rem; }
.text-small { font-size: 0.9rem; }
.text-xs { font-size: 0.85rem; }

.footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--mint-emerald);
    outline-offset: 2px;
}
