/* CareerPilot AI Global Styles */

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f6f9;
    color:#333;
}

container{
    width:90%;
    max-width:900px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 0 20px rgba(0,0,0,.1);
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

h1{
    color:#2e7d32;
}

h2{
    color:#444;
}

input,
textarea{
    width:100%;
    padding:12px;
    margin-top:10px;
    margin-bottom:20px;
    font-size:16px;
    border:1px solid #ccc;
    border-radius:8px;
    box-sizing:border-box;
}

textarea{
    min-height:120px;
}

button{
    background:#4CAF50;
    color:white;
    border:none;
    padding:14px 28px;
    font-size:16px;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    background:#388e3c;
}

.primary{
    background:#4CAF50;
}

.secondary{
    background:#2196F3;
}

.warning{
    background:#ff9800;
}

.card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 0 15px rgba(0,0,0,.08);
}

footer{
    text-align:center;
    margin-top:40px;
    color:#777;
}
/* ===========================
   Mobile Responsive Design
=========================== */

@media screen and (max-width: 768px){

.container{
    width:95%;
    margin:20px auto;
    padding:20px;
}

.top{
    flex-direction:column;
    gap:15px;
    text-align:center;
}

.hero h1{
    font-size:30px;
}

.hero p{
    font-size:16px;
}

.dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:30px;
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}

.tool{
    background:white;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

button{
    width:100%;
    margin-top:12px;
}

input,
textarea{
    font-size:16px;
}

}
/* =======================
   Lesson 23
======================= */

body{
    background:linear-gradient(135deg,#eef7ff,#f7fff4);
}

.navbar{

display:flex;
justify-content:space-between;
align-items:center;

padding:20px 40px;

background:white;

box-shadow:0 2px 15px rgba(0,0,0,.08);

}

.logo{

font-size:28px;

font-weight:bold;

color:#2e7d32;

}

.version{

background:#4CAF50;

color:white;

padding:8px 16px;

border-radius:20px;

font-size:14px;

}

.hero{

padding:60px 20px;

}

.hero h1{

font-size:48px;

margin-bottom:15px;

}

.tool{

transition:.3s;

border:1px solid transparent;

}

.tool:hover{

transform:translateY(-8px);

border-color:#4CAF50;

box-shadow:0 15px 30px rgba(0,0,0,.15);

}

.tool button{

font-weight:bold;

}

footer{

font-size:15px;

}
.main-button{
    margin-top:25px;
    background:#4CAF50;
    color:white;
    border:none;
    padding:16px 35px;
    font-size:18px;
    border-radius:30px;
    cursor:pointer;
    font-weight:bold;
    box-shadow:0 8px 20px rgba(76,175,80,.3);
}

.main-button:hover{
    background:#388e3c;
    transform:translateY(-3px);
}
/* ===== Why Choose Section ===== */

.why{
    max-width:1100px;
    margin:60px auto;
    padding:20px;
    text-align:center;
}

.why h2{
    margin-bottom:35px;
    color:#2e7d32;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.why-card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:0.3s;
}

.why-card:hover{
    transform:translateY(-5px);
}

.why-card h3{
    margin-bottom:10px;
}
/* AI Career Coach */

#result{
    margin-top:25px;
    padding:20px;
    background:white;
    border-left:6px solid #4CAF50;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

#result,
#result *{
    color:#222 !important;
}

#result h2{
    margin-top:0;
    color:#2e7d32;
}

#result p{
    line-height:1.7;
}
/* Better mobile layout for Why section */

@media screen and (max-width: 768px){

    .why{
        margin:40px auto;
        padding:15px;
    }

    .why h2{
        font-size:28px;
        line-height:1.2;
    }

    .why-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .why-card{
        padding:25px;
        max-width:340px;
        margin:0 auto;
    }

    .why-card h3{
        font-size:22px;
    }

    .why-card p{
        font-size:16px;
        line-height:1.5;
    }

}
/* ==========================
   Job Status Badges
========================== */

.badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:20px;
    color:white;
    font-weight:bold;
    font-size:14px;
}

.applied{
    background:#2196F3;
}

.interview{
    background:#FFC107;
    color:black;
}

.offer{
    background:#4CAF50;
}

.rejected{
    background:#F44336;
}
/* Global Navigation */

.app-nav{
    background:white;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    padding:15px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    position:sticky;
top:0;
z-index:1000;

}

.app-logo{
    font-size:24px;
    font-weight:bold;
    color:#2e7d32;
}

.app-links{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.app-links a{
    text-decoration:none;
    color:#333;
    font-weight:bold;
    transition:.3s;
}

.app-links a:hover{
    color:#4CAF50;
    transform:translateY(-2px);
}
/* ==========================
   Professional Footer
========================== */

.footer{
    background:#1f2937;
    color:white;
    text-align:center;
    padding:30px 20px;
    margin-top:60px;
}

.footer h3{
    margin-bottom:10px;
    color:#4CAF50;
}

.footer p{
    margin:8px 0;
    color:#d1d5db;
}

.footer a{
    color:#4CAF50;
    text-decoration:none;
    margin:0 10px;
}

.footer a:hover{
    text-decoration:underline;
}
/* Active Navigation Link */

.app-links a.active{
    color:#4CAF50;
    border-bottom:3px solid #4CAF50;
    padding-bottom:5px;
}
/* Dark Mode Button */

#themeToggle{
    background:#333;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

#themeToggle:hover{
    background:#4CAF50;
}
/* Dark Mode */

body.dark-mode{
    background:#111827;
    color:#f9fafb;
}

body.dark-mode .app-nav{
    background:#1f2937;
}

body.dark-mode .app-logo,
body.dark-mode .app-links a{
    color:#f9fafb;
}

body.dark-mode .hero,
body.dark-mode .why{
    background:#111827;
}

body.dark-mode .tool,
body.dark-mode .why-card,
body.dark-mode .container,
body.dark-mode .card{
    background:#1f2937;
    color:#f9fafb;
}

body.dark-mode .tool p,
body.dark-mode .why-card p,
body.dark-mode p{
    color:#d1d5db;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3{
    color:#f9fafb;
}

body.dark-mode .hero h1,
body.dark-mode .why h2{
    color:#4CAF50;
}
/* Dark Mode Forms */

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select{
    background:#374151;
    color:#f9fafb;
    border:1px solid #4b5563;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder{
    color:#9ca3af;
}
body.dark-mode .footer{
    background:#0f172a;
    color:#f9fafb;
}

body.dark-mode .footer a{
    color:#4CAF50;
}
body.dark-mode button:hover{
    transform:translateY(-2px);
    transition:.3s;
}
/* Mobile Navigation */

@media screen and (max-width: 768px){

    .app-nav{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .app-links{
        flex-direction:column;
        width:100%;
        gap:10px;
    }

    .app-links a{
        display:block;
        padding:8px 0;
    }

    #themeToggle{
        width:100%;
        margin-top:10px;
    }

    .hero h1{
        font-size:32px;
    }

    .dashboard{
        grid-template-columns:1fr;
        padding:15px;
    }

    .tool{
        max-width:340px;
        margin:0 auto;
    }
}
/* Responsive forms/pages */

@media screen and (max-width: 768px){

    .container{
        width:90%;
        max-width:100%;
        margin:20px auto;
        padding:20px;
        box-sizing:border-box;
    }

    input,
    textarea,
    select{
        width:100%;
        box-sizing:border-box;
    }

    button{
        width:100%;
        margin:10px 0 !important;
    }

    .top{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }
}
.chat-box{
    background:#f9fafb;
    border-radius:15px;
    padding:20px;
    min-height:250px;
    margin:20px 0;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.user-message,
.ai-message{
    padding:15px;
    border-radius:12px;
    margin-bottom:15px;
    max-width:80%;
}

.user-message{
    background:#4CAF50;
    color:white;
    margin-left:auto;
}

.ai-message{
    background:white;
    color:#333;
    border-left:5px solid #4CAF50;
}

body.dark-mode .chat-box{
    background:#111827;
}

body.dark-mode .ai-message{
    background:#1f2937;
    color:#f9fafb;
}

.ats-score{
    font-size:48px;
    font-weight:bold;
    margin:15px 0;
}

.ats-progress{
    width:100%;
    height:22px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin:20px 0;
}

.ats-progress-fill{
    height:100%;
    border-radius:20px;
    transition:width .6s ease;
}

.ats-excellent{
    color:#2e7d32;
}

.ats-progress-fill.ats-excellent{
    background:#2e7d32;
}

.ats-good{
    color:#4CAF50;
}

.ats-progress-fill.ats-good{
    background:#4CAF50;
}

.ats-fair{
    color:#f57c00;
}

.ats-progress-fill.ats-fair{
    background:#f57c00;
}

.ats-poor{
    color:#d32f2f;
}

.ats-progress-fill.ats-poor{
    background:#d32f2f;
}

body.dark-mode .ats-progress{
    background:#374151;
}

.achievement-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
    gap:20px;
    margin-top:20px;
}

.achievement-badge{
    background:white;
    padding:22px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:transform .2s ease;
}

.achievement-badge:hover{
    transform:translateY(-4px);
}

.achievement-badge span{
    font-size:40px;
}

.achievement-badge.locked{
    opacity:.45;
    filter:grayscale(1);
}

.achievement-badge.unlocked{
    opacity:1;
    filter:none;
    border:2px solid #4CAF50;
}

body.dark-mode .achievement-badge{
    background:#1f2937;
    color:#f9fafb;
}

/* ==================================================
   CareerPilot Dashboard — Clean Final Styles
================================================== */

/* Dashboard container sections */
.dashboard-section{
    width:100%;
    margin-top:30px;
    padding:28px;

    background:#ffffff;

    border-radius:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);

    box-sizing:border-box;
}

.dashboard-section > h2:first-child{
    margin-top:0;
}


/* Quick Actions */
.quick-actions{
    display:grid;

    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));

    gap:12px;
    width:100%;
}

.quick-actions button{
    width:100%;
    margin:0;
}


/* Overview and Analytics grids */
.dashboard-stats{
    display:grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap:22px;
    width:100%;
    margin-top:22px;
}


/* Individual statistic cards */
.dashboard-stats .tool{
    min-height:180px;
    padding:24px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;

    background:#ffffff;

    border:1px solid transparent;
    border-radius:16px;

    box-shadow:0 8px 22px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.dashboard-stats .tool:hover{
    transform:translateY(-4px);

    border-color:#4CAF50;

    box-shadow:0 14px 28px rgba(0,0,0,.12);
}

.dashboard-stats .tool h2{
    margin:0 0 10px;
    font-size:32px;
}

.dashboard-stats .tool p{
    margin:0;
}

.dashboard-stats .tool small{
    display:block;
    margin-top:7px;
}


/* Career Level */
#careerLevel{
    margin:10px 0;
    color:#2e7d32;
}

#xpText{
    margin-top:14px;
}

.ats-progress{
    width:100%;
    height:22px;

    margin:18px 0;

    overflow:hidden;

    background:#e5e7eb;

    border-radius:999px;
}

.ats-progress-fill{
    height:100%;
    border-radius:999px;

    transition:width .6s ease;
}

.ats-progress-fill.ats-good,
.ats-progress-fill.ats-excellent{
    background:#4CAF50;
}

.ats-progress-fill.ats-fair{
    background:#f57c00;
}

.ats-progress-fill.ats-poor{
    background:#d32f2f;
}


/* Achievements grid */
.achievement-grid,
#achievementBadges{
    display:grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap:22px;
    width:100%;
    margin-top:22px;
}


/* Achievement cards */
.achievement-badge{
    min-height:190px;
    padding:24px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;

    background:#ffffff;

    border:2px solid transparent;
    border-radius:16px;

    box-shadow:0 8px 22px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        opacity .25s ease,
        border-color .25s ease;
}

.achievement-badge:hover{
    transform:translateY(-4px);
}

.achievement-badge span{
    display:block;
    margin-bottom:10px;

    font-size:42px;
}

.achievement-badge h3{
    margin:8px 0;
}

.achievement-badge p{
    margin:6px 0;
}

.achievement-badge.locked{
    opacity:.42;
    filter:grayscale(1);
}

.achievement-badge.unlocked{
    opacity:1;
    filter:none;

    border-color:#4CAF50;
}


/* Dashboard content lists */
#upcomingInterviews,
#recentActivity,
#recentDocuments{
    width:100%;
}

#upcomingInterviews .card,
#recentActivity .card,
#recentDocuments .card{
    margin-top:16px;
}


/* ==================================================
   Dashboard Dark Mode
================================================== */

body.dark-mode .dashboard-section{
    color:#f9fafb;
    background:#1f2937;
}

body.dark-mode .dashboard-stats{
    display:grid;
}

body.dark-mode .dashboard-stats .tool{
    color:#f9fafb;
    background:#374151;

    border-color:transparent;
}

body.dark-mode .dashboard-stats .tool:hover{
    border-color:#4CAF50;
}

body.dark-mode #careerLevel{
    color:#4CAF50;
}

body.dark-mode .ats-progress{
    background:#4b5563;
}

body.dark-mode .achievement-grid,
body.dark-mode #achievementBadges{
    display:grid;
}

body.dark-mode .achievement-badge{
    color:#f9fafb;
    background:#374151;
}

body.dark-mode .achievement-badge.locked{
    opacity:.42;
    filter:grayscale(1);
}

body.dark-mode .achievement-badge.unlocked{
    opacity:1;
    filter:none;

    border-color:#4CAF50;
}

body.dark-mode #upcomingInterviews .card,
body.dark-mode #recentActivity .card,
body.dark-mode #recentDocuments .card{
    color:#f9fafb;
    background:#374151;
}


/* ==================================================
   Dashboard Responsive Layout
================================================== */

@media screen and (max-width:900px){

    .dashboard-stats,
    .achievement-grid,
    #achievementBadges{
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width:650px){

    .dashboard-section{
        padding:20px;
    }

    .dashboard-stats,
    .achievement-grid,
    #achievementBadges,
    .quick-actions{
        grid-template-columns:1fr;
    }

    .dashboard-stats .tool,
    .achievement-badge{
        min-height:150px;
    }
}

/* ==================================================
   Job Tracker Search and Filters
================================================== */

.job-tracker-controls{
    margin-top:30px;
}

.job-control-grid{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:16px;
    margin-top:20px;
}

.job-control-grid label{
    margin-top:0;
}

.job-control-grid input,
.job-control-grid select{
    margin-bottom:0;
}

body.dark-mode .job-tracker-controls{
    background:#1f2937;
    color:#f9fafb;
}

@media screen and (max-width:900px){

    .job-control-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media screen and (max-width:650px){

    .job-control-grid{
        grid-template-columns:1fr;
    }
}

/* ==================================================
   Login & Signup Pages
================================================== */

.container{
    width:90%;
    max-width:900px;
    margin:70px auto;
    padding:35px;
    background:white;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

body.dark-mode .container{
    background:#1f2937;
    color:#f9fafb;
}

/* ==========================================
   Navigation Dropdown
   ========================================== */

.dropdown{

    position: relative;

    display: inline-block;

}

.dropbtn{

    background: transparent;

    color: white;

    border: none;

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    padding: 12px 18px;

}

.dropbtn:hover{

    color: var(--secondary);

}

.dropdown-content{

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    min-width: 260px;

    background: white;

    border-radius: 12px;

    box-shadow: var(--shadow-medium);

    overflow: hidden;

    z-index: 999;

}

.dropdown-content a{

    display: block;

    padding: 14px 18px;

    color: var(--text-primary);

    text-decoration: none;

    font-weight: 500;

}

.dropdown-content a:hover{

    background: #F8FAFC;

    color: var(--primary);

}

.dropdown:hover .dropdown-content{

    display: block;

}

/* Fix dropdown link colours */

.app-links .dropdown-content a{

    display: block;

    padding: 14px 18px;

    color: #0F172A;

    background: #FFFFFF;

    text-decoration: none;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.4;

}

.app-links .dropdown-content a:hover{

    background: #F1F5F9;

    color: #2563EB;

}

/* ==========================================
   CareerPilot Premium Landing Navigation
   ========================================== */

.landing-nav{

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    position: relative;

    z-index: 1000;

}

.landing-logo{

    color: var(--text-primary);

    font-size: 25px;
    font-weight: 700;

    text-decoration: none;

    letter-spacing: -0.5px;

}

.landing-nav-links{

    display: flex;
    align-items: center;

    gap: 30px;

}

.landing-nav-links > a,
.landing-nav-links .dropbtn{

    color: var(--text-primary);

    background: transparent;

    border: none;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    padding: 28px 0;

    cursor: pointer;

    transition: color 0.2s ease;

}

.landing-nav-links > a:hover,
.landing-nav-links .dropbtn:hover{

    color: var(--primary);

}

.landing-nav-links > a.active{

    color: var(--primary);

}

.landing-nav-actions{

    display: flex;
    align-items: center;

    gap: 14px;

}

.nav-login{

    color: var(--text-primary);

    text-decoration: none;

    font-weight: 600;

}

.nav-login:hover{

    color: var(--primary);

}

.nav-signup{

    background: var(--primary);

    color: #FFFFFF;

    text-decoration: none;

    padding: 12px 20px;

    border-radius: var(--radius-medium);

    font-weight: 600;

    transition: 0.2s ease;

}

.nav-signup:hover{

    background: var(--primary-dark);

    transform: translateY(-1px);

}

.nav-theme-button{

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    cursor: pointer;

    font-size: 18px;

}