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

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --surface: #ffffff;
    --background: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff; /* Clean White Base */
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    /* --- DISTINCT BUBBLE BACKGROUND --- */
    background-image: 
        /* 1. Large Purple Bubble (Top Left) - 300px wide */
        radial-gradient(circle at 10% 15%, rgba(167, 139, 250, 0.25) 0%, transparent 300px),
        
        /* 2. Blue Bubble (Top Right) - 250px wide */
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.25) 0%, transparent 250px),
        
        /* 3. Pink/Magenta Bubble (Middle/Left) - 350px wide */
        radial-gradient(circle at 5% 50%, rgba(244, 114, 182, 0.2) 0%, transparent 350px),
        
        /* 4. Small Blue Bubble (Middle Center) - 150px wide */
        radial-gradient(circle at 40% 40%, rgba(199, 210, 254, 0.3) 0%, transparent 150px),
        
        /* 5. Violet Bubble (Bottom Right) - 300px wide */
        radial-gradient(circle at 90% 85%, rgba(167, 139, 250, 0.2) 0%, transparent 300px);
        
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }

/* --- HEADER --- */
/* --- HEADER & NAVIGATION --- */
.navbar {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky; top: 0; z-index: 1000;
    height: 70px; display: flex; align-items: center;
}

.nav-container {
    width: 100%; max-width: 1100px;
    margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.logo-section { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: white; }

/* --- NEW MENU STYLES (No Box, Just Underline) --- */
.nav-links { display: flex; gap: 25px; height: 100%; align-items: center; }

.nav-item {
    color: #cbd5e1; /* Light Grey */
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0;
    background: transparent; /* No Box */
    transition: all 0.2s ease;
    position: relative;
    height: 100%; /* Fill height for alignment */
    display: flex; align-items: center;
}

.nav-item:hover {
    color: white;
    background: transparent;
}

.nav-item.active {
    color: white;
    font-weight: 700;
    background: transparent;
}

/* The Pink Underline Indicator */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0; /* Sits exactly at the bottom of header */
    left: 0;
    width: 100%;
    height: 4px;
    background: #ec4899; /* Vibrant Pink */
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(236, 72, 153, 0.5); /* Glow effect */
}

/* Profile & Right Section */
.nav-right { display: flex; align-items: center; gap: 20px; }
.icon-btn-header { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #e0e7ff; border-radius: 50%; position: relative; }
.icon-btn-header:hover { background: rgba(255, 255, 255, 0.15); color: white; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 1px solid #1e1b4b; }
.profile-pill { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; background: rgba(255, 255, 255, 0.1); border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1); }
.user-info { text-align: right; line-height: 1.2; }
.user-name { display: block; font-size: 0.85rem; font-weight: 700; color: white; }
.user-role { display: block; font-size: 0.7rem; color: #a5b4fc; }
.user-avatar { width: 32px; height: 32px; background: white; color: #312e81; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
/* --- LAYOUT --- */
.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* --- CARDS --- */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 25px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); border: 1px solid var(--border); }

/* --- BUTTONS --- */
.btn { padding: 12px 24px; border-radius: var(--radius-md); border: none; cursor: pointer; font-weight: 700; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--primary-gradient); color: white; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4); }
.btn-outline { background: transparent; border: 2px solid #e2e8f0; color: var(--text-main); }
.btn-outline:hover { border-color: #6366f1; color: #6366f1; background: #f8fafc; }

/* --- FORMS (Fixed) --- */
.form-container { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-main); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: #f8fafc;
    font-family: inherit; font-size: 0.95rem; transition: 0.2s; color: var(--text-main);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #6366f1; background: white; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- MESSAGING (Fixed Footer) --- */
.chat-container { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 130px); background: white; border-radius: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: 1px solid var(--border); overflow: hidden; }
.chat-sidebar { background: #f8fafc; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.chat-search { padding: 20px; }
.chat-list { overflow-y: auto; flex: 1; }
.chat-user { padding: 15px 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.2s; }
.chat-user:hover, .chat-user.active { background: #eff6ff; }
.chat-main { display: flex; flex-direction: column; background: white; }
.chat-header { padding: 15px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.messages-area { flex: 1; padding: 30px; overflow-y: auto; background-image: radial-gradient(#e2e8f0 1px, transparent 1px); background-size: 20px 20px; display: flex; flex-direction: column; gap: 15px; }
.msg-bubble { max-width: 70%; padding: 12px 18px; font-size: 0.95rem; line-height: 1.5; position: relative; }
.msg-received { align-self: flex-start; background: white; border: 1px solid #e2e8f0; border-radius: 18px 18px 18px 4px; }
.msg-sent { align-self: flex-end; background: var(--primary-gradient); color: white; border-radius: 18px 18px 4px 18px; }

/* Chat Footer Fixed */
.chat-input-wrapper { padding: 20px; background: white; border-top: 1px solid var(--border); }
.input-bar { display: flex; align-items: center; gap: 12px; background: #f1f5f9; padding: 8px 8px 8px 20px; border-radius: 50px; border: 1px solid transparent; transition: 0.3s; }
.input-bar:focus-within { background: white; border-color: #6366f1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.chat-input-field { flex: 1; background: transparent; border: none; font-size: 0.95rem; padding: 5px; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-gradient); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4); }
.send-btn:hover { transform: scale(1.05); }

/* --- HERO VISUALS --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 70vh; }
.hero-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
/* Overlapping Cards Logic */
.float-card-1 { position: absolute; top: 20%; right: 10%; width: 280px; z-index: 1; transform: rotate(5deg); opacity: 0.9; }
.float-card-2 { position: absolute; top: 40%; right: 25%; width: 300px; z-index: 2; transform: rotate(-3deg); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* --- DASHBOARD LAYOUT (Restored) --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styling */
.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 100px; /* Sticks below header */
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, white);
    border-bottom: 1px solid var(--border);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.menu-link.active {
    background: #eff6ff;
    color: #4f46e5;
    border-left-color: #4f46e5;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Job List Item in Dashboard */
.dash-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: white;
}
.dash-job-item:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.dash-job-item:last-child { border-bottom: none; border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar-card { display: none; } /* Hide sidebar on mobile for now */
    .stats-grid { grid-template-columns: 1fr; }
}



/* FOR RESPONSIVE */

    
/* ---------- RESPONSIVE OVERRIDES (append to styles.css) ---------- */

/* Ensure mobile viewport meta exists in layout.ejs:
   <meta name="viewport" content="width=device-width, initial-scale=1.0"> */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #e6eefc;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile nav panel (hidden by default) */
.mobile-nav {
  display: none;
  position: absolute;
  top: 70px; /* matches .navbar height */
  left: 0;
  width: 100%;
  padding: 12px 18px;
  z-index: 2200; /* ensure above header */
  background: linear-gradient(180deg, rgba(30,27,75,0.98), rgba(31,29,77,0.98));
  box-shadow: 0 8px 30px rgba(15,23,42,0.35);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* visible helper class toggled by JS */
.mobile-nav._show { display: block; }

/* Mobile nav link styles */
.mobile-nav .nav-item {
  display: block;
  padding: 12px 8px;
  color: #e6eefc;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Hide desktop nav & show hamburger under this breakpoint */
@media (max-width: 768px) {
  .nav-links { display: none !important; } /* hide desktop links */
  .nav-toggle { display: inline-flex; }
  .profile-pill { padding: 6px 10px; }
  .nav-right { gap: 10px; }
  .navbar { height: 64px; }
  .mobile-nav { top: 64px; }
}

/* Small screens: collapse hero & float cards */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 20px !important; min-height: auto; padding: 24px 0; }
  .hero-visual { height: auto; min-height: 220px; padding: 8px; }
  .float-card-1, .float-card-2 {
    position: relative !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 0 14px 0 !important;
  }
}

/* Chat & Dashboard responsive tweaks (ensure no overflow) */
@media (max-width: 768px) {
  .chat-container { display: flex; flex-direction: column; height: auto; max-height: calc(100vh - 120px); }
  .chat-sidebar { order: 2; width: 100%; border-right: none; border-top: 1px solid var(--border); }
  .chat-main { order: 1; width: 100%; }
  .dashboard-layout { grid-template-columns: 1fr !important; gap: 20px; }
  .sidebar-card { position: relative; top: 0; display: block; }
}

/* smaller phones */
@media (max-width: 420px) {
  .logo-section { font-size: 1.0rem; gap: 8px; }
  .user-avatar { width: 28px; height: 28px; font-size: 0.8rem; }
  .btn { padding: 10px 16px; font-size: 0.95rem; }
}

/* Accessibility: slightly bigger hit areas */
.icon-btn-header { padding: 6px; }

/* small animation */
@keyframes tk-fade-in { from { opacity: 0; transform: translateY(-6px);} to { opacity:1; transform: none; } }
.mobile-nav._show { animation: tk-fade-in .12s ease-out; }
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* --- CROWBAR VIBRANT THEME --- */
    --cb-purple: #7c3aed;  /* Violet */
    --cb-pink: #db2777;    /* Magenta */
    --cb-dark: #1e1b4b;    /* Deep Indigo (Footer/Text) */
    
    /* The Gradient seen in buttons/banners */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); 
    
    --surface: #ffffff;
    --background: #fdfbf7; /* Warm white/paper */
    --text-main: #0f172a;  /* Dark Slate */
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --radius-lg: 24px; /* Soft, large rounding like the screenshots */
    --radius-md: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff; /* Clean White Base */
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    /* --- DISTINCT BUBBLE BACKGROUND --- */
    background-image: 
        /* 1. Large Purple Bubble (Top Left) - 300px wide */
        radial-gradient(circle at 10% 15%, rgba(167, 139, 250, 0.25) 0%, transparent 300px),
        
        /* 2. Blue Bubble (Top Right) - 250px wide */
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.25) 0%, transparent 250px),
        
        /* 3. Pink/Magenta Bubble (Middle/Left) - 350px wide */
        radial-gradient(circle at 5% 50%, rgba(244, 114, 182, 0.2) 0%, transparent 350px),
        
        /* 4. Small Blue Bubble (Middle Center) - 150px wide */
        radial-gradient(circle at 40% 40%, rgba(199, 210, 254, 0.3) 0%, transparent 150px),
        
        /* 5. Violet Bubble (Bottom Right) - 300px wide */
        radial-gradient(circle at 90% 85%, rgba(167, 139, 250, 0.2) 0%, transparent 300px);
        
    background-attachment: fixed;
    background-repeat: no-repeat;
}
a { text-decoration: none; color: inherit; transition: 0.2s ease; }

/* --- 1. BANNER (Matches Screenshot 1/2 vibes) --- */
.crowbar-banner {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- 2. HEADER --- */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px); /* Glass effect */
    border-bottom: 1px solid white;
    position: sticky; top: 0; z-index: 1000;
    height: 70px; display: flex; align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.logo-section { 
    display: flex; align-items: center; gap: 8px; 
    font-size: 1.4rem; font-weight: 800; color: var(--cb-dark); 
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 30px; height: 100%; align-items: center; }

.nav-item {
    color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
    transition: 0.2s; position: relative;
}
.nav-item:hover { color: var(--cb-purple); }
.nav-item.active { color: var(--cb-dark); }

/* --- 3. BUTTONS (Rounded & Gradients) --- */
.btn { 
    padding: 12px 30px; border-radius: 50px; /* Fully Rounded */
    border: none; cursor: pointer; font-weight: 700; 
    transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; 
    font-size: 0.95rem;
}

.btn-primary { 
    background: var(--primary-gradient); 
    color: white; 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); }

.btn-outline { 
    background: white; 
    border: 2px solid #e2e8f0; 
    color: var(--cb-dark); 
}
.btn-outline:hover { 
    border-color: var(--cb-purple); 
    color: var(--cb-purple); 
}

.btn-cta {
    background: var(--primary-gradient) !important; color: white !important;
    padding: 10px 24px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* --- 4. CARDS (Soft Shadows) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.card { 
    background: white; 
    border: 1px solid white; /* Clean white border */
    border-radius: var(--radius-lg); 
    padding: 30px; 
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); /* Soft diffuse shadow */
}

/* --- 5. FOOTER (Deep Purple from Image 2) --- */
.crowbar-footer {
    text-align: center; padding: 50px 20px; margin-top: auto;
    background: #1e1b4b; /* Deep Indigo/Black */
    color: #94a3b8; font-size: 0.9rem;
}

/* --- 6. UTILS --- */
.profile-pill { 
    display: flex; align-items: center; gap: 10px; 
    padding: 5px 15px; background: #f1f5f9; border-radius: 30px; 
}
.user-name { font-size: 0.9rem; font-weight: 700; color: var(--cb-dark); }
.user-role { font-size: 0.75rem; color: var(--text-muted); }
.user-avatar { 
    width: 32px; height: 32px; background: var(--cb-purple); color: white; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Mobile Nav */
.nav-toggle { display: none; background: none; border: none; color: var(--cb-dark); font-size: 24px; cursor: pointer; }
.mobile-nav { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: white; border-bottom: 1px solid #eee; padding: 20px; z-index: 999; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.mobile-nav._show { display: block; }
.mobile-nav .nav-item { padding: 15px 0; border-bottom: 1px solid #f8fafc; color: var(--cb-dark); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* Form Styles */
.form-input, .form-select, .form-textarea {
    background: #f8fafc; border: 1px solid #e2e8f0; color: var(--cb-dark);
    width: 100%; padding: 14px; border-radius: 12px; transition: 0.2s;
}
.form-input:focus { background: white; border-color: var(--cb-purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1); }
/* --- RESPONSIVE HOME PAGE STYLES --- */

/* 1. Hero Layout */
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 60px 0;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-visuals {
    flex: 1;
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Typography & Elements */
.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #1e1b4b;
}

.hero-desc {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* 3. Floating Cards */
.float-card-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 280px;
    z-index: 2;
    transform: rotate(6deg);
    border-radius: 24px;
}

.float-card-2 {
    position: absolute;
    top: 50%;
    right: 25%;
    width: 320px;
    z-index: 1;
    border-radius: 24px;
}

/* --- MOBILE OVERRIDES (Max Width 768px) --- */
@media (max-width: 768px) {
    /* Stack content vertically */
    .hero-grid {
        flex-direction: column;
        padding: 30px 0;
        gap: 40px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Center text */
    .hero-content {
        text-align: center;
        min-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem; /* Smaller font for mobile */
    }

    .hero-desc {
        font-size: 1rem;
        margin: 0 auto 30px auto; /* Center align */
    }

    .hero-btns {
        justify-content: center;
    }

    /* Adjust Visuals Container */
    .hero-visuals {
        width: 100%;
        height: 350px; /* Shorter height */
    }

    /* Resize & Re-position Cards */
    .float-card-1 {
        width: 220px;
        right: 50%;
        margin-right: -110px; /* Center horizontally */
        top: 0;
    }

    .float-card-2 {
        width: 260px;
        right: 50%;
        margin-right: -130px; /* Center horizontally */
        top: 140px;
    }
    
    /* Fix Header Overflow */
    .profile-pill {
        display: none !important; /* Hide profile pill on mobile to save space */
    }
    #nav-logout-btn {
        display: none !important; /* Hide logout button on header */
    }
}

/* --- RESPONSIVE FORMS & LISTS --- */

/* Page Headers */
.page-header { text-align: center; margin-bottom: 30px; }
.page-title { font-size: 2rem; margin-bottom: 10px; font-weight: 800; color: #1e1b4b; }
.page-subtitle { color: #64748b; }

/* Search Bar (Apply Page) */
.search-card {
    padding: 15px; 
    margin-bottom: 30px; 
    display: flex; 
    gap: 10px; 
    align-items: center;
}
.search-input {
    border: none; 
    background: transparent; 
    padding: 10px; 
    font-size: 1rem; 
    flex: 1; 
    width: 100%;
}

/* Job Cards (Apply Page) */
.job-card {
    display: flex; 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px;
    transition: 0.2s;
}
.job-icon {
    width: 60px; height: 60px; 
    background: linear-gradient(135deg, #e0e7ff 0%, #ebf4ff 100%); 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    color: #4f46e5; font-size: 1.5rem;
    flex-shrink: 0; /* Prevents squashing */
}
.job-details { display: flex; gap: 20px; align-items: center; }
.job-actions { text-align: right; }

/* --- MOBILE OVERRIDES (Max Width 768px) --- */
@media (max-width: 768px) {
    /* 1. Post Job Form */
    .form-row {
        grid-template-columns: 1fr; /* Stack inputs vertically */
        gap: 0; /* Let form-group handle margin */
    }
    
    .page-title { font-size: 1.6rem; }

    /* 2. Apply Job - Search Bar */
    .search-card {
        flex-direction: column; /* Stack input and button */
        padding: 20px;
    }
    .search-input {
        width: 100%;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }
    .search-card .btn { width: 100%; }

    /* 3. Apply Job - Job List Cards */
    .job-card {
        flex-direction: column; /* Stack top to bottom */
        align-items: flex-start;
        gap: 15px;
    }
    
    .job-details {
        width: 100%;
    }

    .job-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
        margin-top: 5px;
    }
    
    /* Hide icon background on mobile if it takes too much space, or adjust size */
    .job-icon { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* --- DASHBOARD STYLES --- */

/* Wrapper */
.dashboard-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

/* 1. Hero Welcome */
.hero-welcome {
    background: white; 
    border: 1px solid white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-title { font-size: 2rem; font-weight: 800; color: #1e1b4b; margin-bottom: 5px; }
.hero-sub { color: #64748b; font-size: 1.1rem; margin: 0; }

/* Actions (Logout/Profile) */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 8px 8px 8px 20px;
    border-radius: 50px;
}
.profile-info { text-align: right; line-height: 1.2; margin-right: 5px; }
.profile-email { font-size: 0.85rem; font-weight: 700; color: #1e1b4b; }
.profile-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; }

.btn-logout-dash {
    background: #fee2e2;
    color: #ef4444;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.btn-logout-dash:hover { background: #ef4444; color: white; }

/* 2. Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid white;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.card-green { border-bottom: 4px solid #10b981; }
.card-gold { border-bottom: 4px solid #f59e0b; }
.card-blue { border-bottom: 4px solid #6366f1; }

.stat-icon-box {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-gold { background: #fffbeb; color: #f59e0b; }
.icon-blue { background: #e0e7ff; color: #6366f1; }

.stat-label { font-size: 0.8rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 2.4rem; font-weight: 800; color: #1e1b4b; margin: 5px 0; letter-spacing: -1px; }
.stat-hint { font-size: 0.85rem; color: #64748b; display: flex; align-items: center; gap: 5px; }

/* 3. Activity Table */
.activity-section h4 { font-weight: 800; margin-bottom: 25px; color: #1e1b4b; font-size: 1.2rem; }

.activity-table {
    background: white;
    border: 1px solid white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.activity-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 25px 35px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.activity-row:last-child { border-bottom: none; }
.activity-header { background: #f8fafc; font-weight: 700; font-size: 0.8rem; color: #64748b; text-transform: uppercase; }

.job-title { font-weight: 700; color: #1e1b4b; font-size: 1rem; }
.job-company { font-size: 0.85rem; color: #64748b; }
.status-badge { padding: 6px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; display: inline-block; }
.status-pending { background: #fff7ed; color: #ea580c; }

/* Loading Screen */
#loading-screen { position: fixed; top:0; left:0; width:100%; height:100%; background: white; z-index: 2000; display: flex; align-items: center; justify-content: center; }

/* --- MOBILE OVERRIDES FOR DASHBOARD --- */
@media(max-width: 768px) {
    /* Stack Hero Section */
    .hero-welcome {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Stack Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr; /* One column on mobile */
        gap: 20px;
    }

    /* Adjust Activity Table */
    .activity-header { display: none; } /* Hide header on mobile */
    
    .activity-row {
        grid-template-columns: 1fr; /* Stack content */
        gap: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .activity-row .text-end { text-align: center; }
}
/* --- MOBILE DASHBOARD FIX --- */
@media (max-width: 768px) {
    
    /* 1. Stack the Main Welcome Box */
    .hero-welcome {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }

    /* 2. Fix the Long Email & Button Issue */
    .hero-actions {
        width: 100%;
        flex-direction: column; /* Stack Email above Button */
        gap: 15px;
        padding: 20px;
        height: auto;
    }

    .profile-info {
        width: 100%;
        text-align: center;
        margin-right: 0;
        overflow: hidden; /* Keeps long emails inside */
    }

    .profile-email {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Adds "..." if email is too long */
    }

    .btn-logout-dash {
        width: 100%; /* Full width button */
        justify-content: center;
    }

    /* 3. Stack the Stats Cards (Earnings, Credits, Plan) */
    .stats-grid {
        grid-template-columns: 1fr; /* 1 column instead of 3 */
        gap: 15px;
    }

    /* 4. Fix Recent Applications Table */
    .activity-header { display: none; } /* Hide header row */
    
    .activity-row {
        grid-template-columns: 1fr; /* Stack content vertically */
        text-align: center;
        gap: 10px;
    }
    
    .activity-row .text-end { 
        text-align: center; 
        margin-top: 5px;
    }
}

/* --- ECO-STYLE FOOTER --- */
.site-footer {
    background-color: #020617; /* Deepest Slate/Black */
    padding: 60px 0;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Handles mobile stacking */
    gap: 30px;
}

/* Left Side */
.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: #94a3b8; /* Muted Slate */
    font-size: 0.95rem;
    font-weight: 500;
}

/* Right Side */
.footer-network {
    text-align: right;
}

.network-tag {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.text-gold {
    color: #f59e0b; /* Crowbar Gold */
}

.copyright {
    color: #64748b; /* Darker grey for copyright */
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Center everything */
    }
    
    .footer-network {
        text-align: center;
    }
}
/* --- MOBILE FIXES (Add to bottom of style.css) --- */
/* --- MOBILE FIXES (Bottom of style.css) --- */
@media (max-width: 768px) {
    
    /* COMPACT HEADER BUTTON */
    .btn-cta {
        padding: 5px 10px !important;  /* Much tighter padding */
        font-size: 0.7rem !important;  /* Smaller text */
        height: 32px;                  /* Reduced height */
        line-height: 1;                /* Centers text vertically */
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        min-width: auto;
        margin-right: 5px;             /* Small gap from hamburger */
    }

    /* Adjust container to fit */
    .nav-right {
        gap: 5px; /* Tighter gap between elements */
    }
    
    .nav-container { padding: 0 10px; }
}
    
    /* Tweak container to give button space */
    .nav-container { padding: 0 10px; }
    .nav-right { gap: 8px; } /* Reduce gap between button and hamburger */

    /* 2. CARD ALIGNMENT FIX */
    .hero-visuals {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center cards horizontally */
        justify-content: flex-start;
        height: auto !important; /* Let height grow with content */
        margin-top: 30px;
        padding-bottom: 40px;
    }

    .float-card-1, .float-card-2 {
        position: relative !important; /* Stop absolute positioning */
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important; /* Remove rotation */
        
        width: 90% !important; /* card width */
        max-width: 320px;
        margin: 0 0 20px 0 !important; /* Add space between cards */
        
        /* Ensure content inside doesn't overflow */
        box-sizing: border-box; 
    }
