/* =========================================================
   GECHS PORTAL - VIBRANT PREMIUM WEB APP THEME
   ========================================================= */

/* --- 1. IMPORT PREMIUM FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- 2. CORE VARIABLES (The DNA of your UI) --- */
:root {
    /* Rich, Vibrant Gradient Colors */
    --primary-color: #0072ff;      /* Deep Vibrant Blue */
    --secondary-color: #00c6ff;    /* Electric Cyan */
    --accent-color: #ff9a44;       /* Warm energetic orange */
    --dark-header: #0f172a;        /* Sleek Slate/Navy for Nav & Footer */
    
    /* Typography & Backgrounds */
    --bg-color: #f8fafc;           /* Very bright, clean app background */
    --text-main: #1e293b;          /* Softened black for better reading */
    --text-muted: #64748b;
    
    /* Modern UI Elements */
    --card-radius: 20px;           /* Slightly rounder, friendlier cards */
    --btn-radius: 50px;
    --soft-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --glow-shadow: 0 20px 40px -10px rgba(0, 114, 255, 0.25);
    --transition-speed: 0.4s;      /* Slightly slower for buttery smooth animations */
}

/* --- 3. GLOBAL STYLES --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0; 
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.container { 
    max-width: 1200px; /* Made slightly wider for modern screens */
    margin: 0 auto; 
    padding: 0 20px; 
}

.text-center { 
    text-align: center; 
}

/* --- 4. HEADERS & NAVIGATION (GLASSMORPHISM) --- */
.main-header { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); 
    color: white; 
    padding: 60px 0; /* More breathing room */
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.main-header h1 { 
    margin: 0; 
    font-size: 3em; 
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-nav { 
    background-color: rgba(15, 23, 42, 0.85); /* Semi-transparent dark */
    backdrop-filter: blur(12px); /* Frosted Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    position: sticky; /* Stays at the top when scrolling */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.nav-link { 
    color: #e2e8f0; 
    text-decoration: none; 
    padding: 18px 24px; 
    font-weight: 500; 
    letter-spacing: 0.5px;
    transition: all var(--transition-speed); 
    position: relative;
}

/* Cool animated underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover { 
    color: white;
    background-color: rgba(255, 255, 255, 0.05); 
}

.nav-link:hover::after {
    width: 100%;
}

/* --- 5. LAYOUT & CARDS (BENTO BOX STYLE) --- */
.page-content, .form-container, .feature-card, .com-card, .committee-card, .search-box {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8); /* Very subtle border */
    border-radius: var(--card-radius);
    box-shadow: var(--soft-shadow);
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow var(--transition-speed) ease;
}

.page-content { 
    padding: 50px; 
    margin-top: -30px; /* Pulls content up slightly over the header */
    position: relative;
    z-index: 10;
    min-height: 50vh; 
}

.form-container { 
    max-width: 600px; 
    margin: 40px auto; 
    padding: 40px; 
}

/* Premium Hover effects */
.feature-card:hover, .com-card:hover, .committee-card:hover, .search-box:hover {
    transform: translateY(-8px); /* Bounces up higher */
    box-shadow: var(--glow-shadow) !important;
    border-color: rgba(0, 198, 255, 0.3);
}

.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.feature-card {
    padding: 30px; 
    border-left: 6px solid var(--primary-color) !important; 
    text-align: left; 
}

/* --- 6. BUTTONS (CALL TO ACTION) --- */
.btn, .btn-primary, .btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-radius) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 14px 32px;
    border: none !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.3) !important;
}

.btn:hover, .btn-primary:hover, .btn-search:hover {
    transform: translateY(-3px) scale(1.02); /* Slight scale for tactile feel */
    box-shadow: 0 12px 30px rgba(0, 114, 255, 0.5) !important;
}

.btn:active, .btn-primary:active, .btn-search:active {
    transform: translateY(1px) scale(0.98); /* Squish effect on click */
}

/* --- 7. FORMS & INPUTS --- */
.form-group { 
    margin-bottom: 25px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 600; 
    color: var(--text-main); 
    font-size: 14px;
}

input[type="text"], input[type="email"], select, textarea, input[type="password"], input[type="number"] {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px; /* Smoother input boxes */
    padding: 15px 20px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Vibrant Glow effect when user types */
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus, input[type="password"]:focus, input[type="number"]:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.15);
    background: #ffffff;
}

/* --- 8. ALERTS --- */
.alert { 
    padding: 18px 20px; 
    margin-bottom: 25px; 
    border-radius: 12px; 
    text-align: center; 
    font-weight: 600; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.alert-success { 
    background-color: #f0fdf4; 
    color: #166534; 
    border: 1px solid #bbf7d0; 
}

.alert-error { 
    background-color: #fef2f2; 
    color: #991b1b; 
    border: 1px solid #fecaca; 
}

/* --- 9. SLEEK DARK FOOTER --- */
.main-footer { 
    margin-top: 60px; 
    padding: 40px 0; 
    background-color: var(--dark-header); 
    color: #94a3b8; 
    text-align: center; 
    border-top: 4px solid var(--secondary-color); /* Vibrant top border */
}

.main-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-footer a:hover {
    color: white;
}
/* =========================================================
   ABSOLUTE OVERRIDE: DROPDOWN MENU FIX
   ========================================================= */

/* 1. CRITICAL: Prevent parents from cutting off the menu */
.main-nav, .nav-container {
    overflow: visible !important; 
}

/* 2. The Dropdown Container */
.main-nav .dropdown {
    position: relative;
    display: inline-flex; /* Keeps it aligned with other nav links */
    align-items: center;
    cursor: pointer;
}

/* 3. The Hidden Menu Box */
.main-nav .dropdown-content {
    display: none !important; /* Hard hide */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f172a !important; /* Solid dark color, no transparency to break */
    min-width: 240px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    z-index: 999999 !important; /* God-tier z-index */
    margin-top: 5px;
}

/* 4. Show Menu on Hover */
.main-nav .dropdown:hover .dropdown-content {
    display: block !important; /* Hard show */
}

/* 5. The Links Inside the Menu */
.main-nav .dropdown-content a {
    color: #ffffff !important; /* Forced bright white */
    display: block !important; /* Forced to stack vertically */
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: left !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    transition: background 0.2s, padding-left 0.2s !important;
}

.main-nav .dropdown-content a:last-child {
    border-bottom: none !important;
}

/* 6. Hover State for the Links */
.main-nav .dropdown-content a:hover {
    background-color: #0072ff !important; /* Solid vibrant blue background */
    color: #ffffff !important;
    padding-left: 28px !important; /* Slight indent */
}