/* ============================================
   HOD-GEE ACADEMY - FRONTEND STYLES
   ============================================ */

/* ============================================
   1. CONTAINER GLOBAL
   ============================================ */
.hg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ============================================
   2. DASHBOARD HEADER
   ============================================ */
.hg-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hg-header-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    width: 60px;
    height: 60px;
}

.hg-header-info {
    flex: 1;
}

.hg-header-info h2 {
    margin: 0;
    color: white;
    font-size: 22px;
}

.hg-header-info p {
    margin: 4px 0 0;
    opacity: 0.85;
    font-size: 14px;
}

.hg-badge {
    display: inline-block;
    padding: 2px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   3. STATS GRID
   ============================================ */
.hg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hg-stat {
    padding: 16px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hg-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.hg-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.hg-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ============================================
   4. DASHBOARD LAYOUT (SIDEBAR + CONTENT)
   ============================================ */
.hg-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .hg-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   5. SIDEBAR
   ============================================ */
.hg-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
}

.hg-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg-sidebar li {
    margin: 2px 0;
}

.hg-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s;
}

.hg-sidebar a:hover {
    background: #f3f4f6;
}

.hg-sidebar a.active {
    background: #f3f4f6;
    border-left: 3px solid #6366f1;
}

.hg-sidebar-icon {
    font-size: 18px;
}

/* ============================================
   6. QUICK ACTIONS
   ============================================ */
.hg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.hg-actions-title {
    width: 100%;
    margin: 0 0 10px;
    font-size: 16px;
    color: #1a1a2e;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.hg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

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

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

/* Colors */
.hg-btn-primary {
    background: #6366f1;
    color: white;
}
.hg-btn-primary:hover {
    background: #4f46e5;
}

.hg-btn-success {
    background: #10b981;
    color: white;
}
.hg-btn-success:hover {
    background: #059669;
}

.hg-btn-warning {
    background: #f59e0b;
    color: white;
}
.hg-btn-warning:hover {
    background: #d97706;
}

.hg-btn-danger {
    background: #ef4444;
    color: white;
}
.hg-btn-danger:hover {
    background: #dc2626;
}

.hg-btn-purple {
    background: #8b5cf6;
    color: white;
}
.hg-btn-purple:hover {
    background: #7c3aed;
}

.hg-btn-pink {
    background: #ec4899;
    color: white;
}
.hg-btn-pink:hover {
    background: #db2777;
}

.hg-btn-cyan {
    background: #06b6d4;
    color: white;
}
.hg-btn-cyan:hover {
    background: #0891b2;
}

.hg-btn-orange {
    background: #f97316;
    color: white;
}
.hg-btn-orange:hover {
    background: #ea580c;
}

.hg-btn-outline {
    background: transparent;
    color: #374151;
    border: 1.5px solid #d1d5db;
}
.hg-btn-outline:hover {
    background: #f3f4f6;
}

/* Button sizes */
.hg-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}
.hg-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ============================================
   8. LOGIN FORM
   ============================================ */
.hg-login-wrapper {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hg-login-wrapper h2 {
    text-align: center;
    margin-top: 0;
    font-size: 24px;
    color: #1a1a2e;
}

.hg-login-wrapper .hg-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.hg-login-wrapper label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
}

.hg-login-wrapper input[type="text"],
.hg-login-wrapper input[type="password"],
.hg-login-wrapper input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.hg-login-wrapper input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.hg-login-wrapper .hg-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
}

.hg-login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.hg-login-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.hg-login-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   9. APPLICATIONS CENTER
   ============================================ */
.hg-applications-title {
    text-align: center;
    font-size: 28px;
    color: #1a1a2e;
}

.hg-applications-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

.hg-apps-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hg-apps-table th {
    background: #f9fafb;
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
}

.hg-apps-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.hg-app-status {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.hg-app-status-pending {
    background: #f59e0b;
}
.hg-app-status-approved {
    background: #10b981;
}
.hg-app-status-rejected {
    background: #ef4444;
}

/* ============================================
   10. APPLICATION CARDS
   ============================================ */
.hg-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.hg-app-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.hg-app-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.hg-app-card-icon {
    font-size: 40px;
}

.hg-app-card-title {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #1a1a2e;
}

.hg-app-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 15px;
}

.hg-app-card .hg-btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   11. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hg-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .hg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hg-actions {
        justify-content: center;
    }
    
    .hg-actions .hg-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .hg-app-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hg-login-wrapper {
        margin: 20px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hg-stats {
        grid-template-columns: 1fr;
    }
    
    .hg-app-grid {
        grid-template-columns: 1fr;
    }
    
    .hg-apps-table {
        display: block;
        overflow-x: auto;
    }
}