/* ==========================================
   CareerGPT AI - style.css (Part 1)
   Base Layout, Sidebar, Header, Cards & Chat
========================================== */

/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Reset */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:#fff;
    overflow:hidden;
}

/* Theme */

:root{

    --bg:#0f172a;
    --bg2:#1e293b;

    --card:#1e293b;

    --primary:#3b82f6;
    --primary-dark:#2563eb;

    --green:#22c55e;

    --yellow:#f59e0b;

    --danger:#ef4444;

    --text:#f8fafc;

    --muted:#94a3b8;

    --border:#334155;

    --radius:18px;

    --shadow:0 10px 25px rgba(0,0,0,.30);

}

/* Layout */

.app{

    display:grid;

    grid-template-columns:

    260px

    1fr

    320px;

    height:100vh;

}

/* ==========================================
 Sidebar
========================================== */

.sidebar{

    background:#111827;

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

    padding:25px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

}

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:30px;

}

.logo i{

    color:var(--primary);

    font-size:28px;

}

.logo h2{

    font-size:24px;

    font-weight:700;

}

.new-chat{

    width:100%;

    border:none;

    padding:15px;

    border-radius:12px;

    cursor:pointer;

    background:var(--primary);

    color:white;

    font-size:16px;

    transition:.3s;

}

.new-chat:hover{

    background:var(--primary-dark);

}

.sidebar nav{

    margin-top:35px;

}

.sidebar ul{

    list-style:none;

}

.sidebar li{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px 16px;

    border-radius:12px;

    cursor:pointer;

    margin-bottom:10px;

    transition:.3s;

    color:#d1d5db;

}

.sidebar li i{

    width:22px;

}

.sidebar li:hover{

    background:#1f2937;

}

.sidebar li.active{

    background:var(--primary);

    color:white;

}

.sidebar-bottom{

    margin-top:auto;

}

.sidebar-bottom button{

    width:100%;

    border:none;

    background:#1f2937;

    color:white;

    padding:14px;

    border-radius:12px;

    cursor:pointer;

    transition:.3s;

}

.sidebar-bottom button:hover{

    background:#374151;

}

/* ==========================================
 Main
========================================== */

.main{

    overflow-y:auto;

    padding:35px;

    background:var(--bg);

}

header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

header h1{

    font-size:34px;

}

header p{

    color:var(--muted);

}

.profile{

    width:52px;

    height:52px;

    background:var(--primary);

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

}

/* ==========================================
 Hero
========================================== */

.hero{

    background:linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    padding:35px;

    border-radius:20px;

    margin-bottom:30px;

    box-shadow:var(--shadow);

}

.hero h2{

    font-size:34px;

    margin-bottom:12px;

}

.hero p{

    color:#e5e7eb;

    line-height:1.8;

    max-width:700px;

}

/* ==========================================
 Cards
========================================== */

.cards{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-bottom:35px;

}

.card{

    background:var(--card);

    padding:25px;

    border-radius:18px;

    transition:.35s;

    cursor:pointer;

    box-shadow:var(--shadow);

}

.card:hover{

    transform:translateY(-8px);

}

.card i{

    font-size:34px;

    color:var(--primary);

    margin-bottom:15px;

}

.card h3{

    margin-bottom:10px;

}

.card p{

    color:var(--muted);

    line-height:1.6;

}

/* ==========================================
 Chat
========================================== */

.chat-container{

    background:var(--card);

    border-radius:20px;

    height:600px;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    box-shadow:var(--shadow);

}

.messages{

    flex:1;

    overflow-y:auto;

    padding:25px;

}

.message{

    display:flex;

    gap:15px;

    margin-bottom:20px;

}

.avatar{

    width:46px;

    height:46px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--primary);

    flex-shrink:0;

}

.bubble{

    background:#273549;

    padding:18px;

    border-radius:16px;

    line-height:1.8;

    max-width:75%;

}

.message.user{

    flex-direction:row-reverse;

}

.message.user .avatar{

    background:var(--green);

}

.message.user .bubble{

    background:#2563eb;

}

/* ==========================================
 Typing Indicator
========================================== */

.typing{

    display:none;

    padding:0 25px 15px;

}

.typing span{

    display:inline-block;

    width:8px;

    height:8px;

    margin-right:6px;

    border-radius:50%;

    background:white;

    animation:blink 1.3s infinite;

}

.typing span:nth-child(2){

    animation-delay:.2s;

}

.typing span:nth-child(3){

    animation-delay:.4s;

}

@keyframes blink{

    0%,80%,100%{

        opacity:.3;

        transform:scale(.8);

    }

    40%{

        opacity:1;

        transform:scale(1.2);

    }

}

/* ==========================================
 Input Area
========================================== */

.input-area{

    display:flex;

    align-items:center;

    gap:12px;

    padding:18px;

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

    background:#162133;

}

.input-area input{

    flex:1;

    border:none;

    outline:none;

    background:#22324a;

    color:white;

    padding:16px;

    border-radius:14px;

    font-size:15px;

}

.input-area button{

    width:52px;

    height:52px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    background:var(--primary);

    color:white;

    font-size:18px;

    transition:.3s;

}

.input-area button:hover{

    background:var(--primary-dark);

    transform:scale(1.05);

}

/* ==========================================
 Right Panel
========================================== */

.right-panel{

    background:#111827;

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

    padding:25px;

    overflow-y:auto;

}

.right-panel h3{

    margin-bottom:16px;

}

.suggestion{

    width:100%;

    border:none;

    padding:14px;

    margin-bottom:12px;

    text-align:left;

    border-radius:12px;

    cursor:pointer;

    background:#1f2937;

    color:white;

    transition:.3s;

}

.suggestion:hover{

    background:var(--primary);

}

.right-panel hr{

    border:none;

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

    margin:24px 0;

}

.stat{

    background:#1f2937;

    padding:18px;

    border-radius:14px;

    margin-bottom:15px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.stat h2{

    font-size:16px;

    font-weight:500;

}

.stat span{

    color:var(--green);

    font-weight:700;

}

/* ==========================================
 Scrollbars
========================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#111827;

}

::-webkit-scrollbar-thumb{

    background:#334155;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#475569;

}

/* ==========================================
   CareerGPT AI - style.css (Part 2A)
   Responsive Layout & Mobile Design
========================================== */

/* Large Screens */

@media (max-width: 1400px){

    .app{

        grid-template-columns:
        240px
        1fr
        280px;

    }

}

/* Medium Screens */

@media (max-width: 1200px){

    .app{

        grid-template-columns:
        220px
        1fr;

    }

    .right-panel{

        display:none;

    }

}

/* Tablets */

@media (max-width: 992px){

    .sidebar{

        width:220px;

        position:fixed;

        left:0;

        top:0;

        bottom:0;

        z-index:1000;

    }

    .main{

        margin-left:220px;

        padding:25px;

    }

    .hero h2{

        font-size:28px;

    }

    .hero p{

        font-size:14px;

    }

    .cards{

        grid-template-columns:
        repeat(2,1fr);

    }

    .chat-container{

        height:550px;

    }

}

/* Mobile */

@media (max-width: 768px){

    body{

        overflow:auto;

    }

    .app{

        display:block;

    }

    .sidebar{

        position:fixed;

        left:-260px;

        top:0;

        width:260px;

        height:100vh;

        transition:.35s;

        z-index:9999;

    }

    .sidebar.active{

        left:0;

    }

    .main{

        margin-left:0;

        width:100%;

        padding:20px;

    }

    header{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    header h1{

        font-size:28px;

    }

    .profile{

        width:45px;
        height:45px;
    }

    .hero{

        padding:25px;
    }

    .hero h2{

        font-size:24px;
    }

    .cards{

        grid-template-columns:1fr;
    }

    .card{

        padding:20px;
    }

    .chat-container{

        height:500px;
    }

    .messages{

        padding:15px;
    }

    .bubble{

        max-width:90%;
    }

    .input-area{

        padding:12px;
    }

    .input-area input{

        padding:14px;
        font-size:14px;
    }

    .input-area button{

        width:46px;
        height:46px;
    }

}

/* Small Mobile */

@media (max-width: 576px){

    .main{

        padding:15px;
    }

    .hero{

        padding:20px;
    }

    .hero h2{

        font-size:22px;
    }

    .hero p{

        font-size:13px;
        line-height:1.7;
    }

    .card h3{

        font-size:18px;
    }

    .card p{

        font-size:13px;
    }

    .chat-container{

        height:450px;
    }

    .avatar{

        width:40px;
        height:40px;
    }

    .bubble{

        padding:14px;
        font-size:14px;
    }

    .input-area{

        gap:8px;
    }

    .input-area input{

        font-size:13px;
    }

}

/* Extra Small Devices */

@media (max-width: 400px){

    header h1{

        font-size:24px;
    }

    .hero h2{

        font-size:20px;
    }

    .new-chat{

        font-size:14px;
    }

    .sidebar li{

        font-size:14px;
    }

    .bubble{

        font-size:13px;
    }

}

/* ==========================================
 Mobile Menu Button
========================================== */

.mobile-menu{

    display:none;

    position:fixed;

    top:15px;

    left:15px;

    width:50px;

    height:50px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:white;

    font-size:20px;

    cursor:pointer;

    z-index:10001;

    box-shadow:var(--shadow);

}

@media (max-width:768px){

    .mobile-menu{

        display:flex;

        justify-content:center;

        align-items:center;

    }

}

/* ==========================================
 Overlay
========================================== */

.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.5);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9998;

}

.overlay.active{

    opacity:1;

    visibility:visible;

}

/* ==========================================
 Chat Enhancements
========================================== */

.messages{

    scroll-behavior:smooth;

}

.message{

    animation:fadeIn .4s ease;
}

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(15px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* Better Card Hover */

.card{

    position:relative;

    overflow:hidden;

}

.card::before{

    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.08),
        transparent
    );

    transition:.7s;

}

.card:hover::before{

    left:100%;

}

/* ==========================================
   CareerGPT AI - style.css (Part 2B-1)
   Theme + Upload + Resume Cards
========================================== */

/* ==========================
   Light Theme
========================== */

body.light{

    --bg:#f8fafc;
    --bg2:#ffffff;

    --card:#ffffff;

    --text:#111827;

    --muted:#6b7280;

    --border:#d1d5db;

    background:var(--bg);

    color:var(--text);

}

body.light .sidebar{

    background:#ffffff;

}

body.light .main{

    background:#f8fafc;

}

body.light .right-panel{

    background:#ffffff;

}

body.light .bubble{

    background:#eef2ff;

    color:#111827;

}

body.light .message.user .bubble{

    color:white;

}

body.light .input-area{

    background:#ffffff;

}

body.light .input-area input{

    background:#f3f4f6;

    color:#111827;

}

body.light .card{

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

}

body.light .stat{

    background:#f3f4f6;

    color:#111827;

}

body.light .suggestion{

    background:#f3f4f6;

    color:#111827;

}

/* ==========================
   Upload Section
========================== */

.upload-box{

    border:2px dashed var(--primary);

    border-radius:20px;

    padding:40px;

    margin-top:25px;

    text-align:center;

    cursor:pointer;

    transition:.3s;

    background:rgba(59,130,246,.05);

}

.upload-box:hover{

    transform:translateY(-4px);

    background:rgba(59,130,246,.08);

}

.upload-box i{

    font-size:60px;

    color:var(--primary);

    margin-bottom:15px;

}

.upload-box h2{

    margin-bottom:10px;

}

.upload-box p{

    color:var(--muted);

}

.upload-box.dragover{

    border-color:var(--green);

    background:rgba(34,197,94,.12);

}

/* ==========================
   Upload Button
========================== */

.upload-btn{

    display:inline-block;

    margin-top:20px;

    background:var(--primary);

    color:white;

    padding:14px 24px;

    border-radius:12px;

    cursor:pointer;

    transition:.3s;

    font-weight:600;

}

.upload-btn:hover{

    background:var(--primary-dark);

}

/* ==========================
   Resume Information
========================== */

.resume-info{

    margin-top:20px;

    padding:18px;

    background:var(--card);

    border-radius:16px;

    display:flex;

    justify-content:space-between;

    align-items:center;

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

}

.resume-name{

    display:flex;

    align-items:center;

    gap:12px;

}

.resume-name i{

    color:#ef4444;

    font-size:22px;

}

.resume-size{

    color:var(--muted);

}

/* ==========================
   Resume Analysis
========================== */

.analysis-grid{

    display:grid;

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

    gap:20px;

    margin-top:30px;

}

.analysis-card{

    background:var(--card);

    border-radius:18px;

    padding:25px;

    box-shadow:var(--shadow);

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

    transition:.3s;

}

.analysis-card:hover{

    transform:translateY(-6px);

}

.analysis-card h3{

    margin-bottom:15px;

    display:flex;

    align-items:center;

    gap:10px;

}

.analysis-card ul{

    margin-left:20px;

    line-height:1.8;

}

.analysis-card li{

    margin-bottom:8px;

}

/* ==========================
   Score Badge
========================== */

.score-badge{

    display:inline-block;

    padding:8px 16px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    color:white;

}

.score-good{

    background:#22c55e;

}

.score-average{

    background:#f59e0b;

}

.score-poor{

    background:#ef4444;

}

/* ==========================
   Progress Bar
========================== */

.progress{

    width:100%;

    height:10px;

    background:#334155;

    border-radius:30px;

    overflow:hidden;

    margin-top:15px;

}

.progress-bar{

    height:100%;

    width:80%;

    background:linear-gradient(
        90deg,
        #22c55e,
        #3b82f6
    );

    border-radius:30px;

    transition:width .5s ease;

}

/* ==========================
   Loading Spinner
========================== */

.spinner{

    width:45px;

    height:45px;

    border:5px solid rgba(255,255,255,.2);

    border-top:5px solid var(--primary);

    border-radius:50%;

    animation:spin 1s linear infinite;

    margin:auto;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}
/* ==========================================
   CareerGPT AI
   Part 2B-2.1
   ATS Score & Statistics
========================================== */

/* ATS Section */

.ats-section{

    margin-top:35px;

    display:grid;

    grid-template-columns:300px 1fr;

    gap:30px;

    align-items:center;

}

/* Circular Progress */

.ats-circle{

    width:220px;

    height:220px;

    margin:auto;

    border-radius:50%;

    background:
    conic-gradient(
        var(--green) 0deg,
        var(--green) 306deg,
        #334155 306deg,
        #334155 360deg
    );

    display:flex;

    justify-content:center;

    align-items:center;

    position:relative;

    box-shadow:var(--shadow);

}

.ats-circle::before{

    content:"";

    position:absolute;

    width:170px;

    height:170px;

    background:var(--card);

    border-radius:50%;

}

.ats-value{

    position:relative;

    text-align:center;

    z-index:2;

}

.ats-value h1{

    font-size:48px;

    font-weight:700;

    color:var(--green);

}

.ats-value span{

    display:block;

    margin-top:6px;

    color:var(--muted);

    font-size:15px;

}

/* ATS Details */

.ats-details{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}

.ats-item{

    background:var(--card);

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

    border-radius:18px;

    padding:22px;

    transition:.3s;

}

.ats-item:hover{

    transform:translateY(-5px);

}

.ats-item h3{

    margin-bottom:10px;

    font-size:17px;

}

.ats-item p{

    color:var(--muted);

    line-height:1.7;

}

/* Statistics */

.stats-grid{

    display:grid;

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

    gap:18px;

    margin-top:30px;

}

.stat-card{

    background:var(--card);

    border-radius:18px;

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

    padding:25px;

    text-align:center;

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-6px);

}

.stat-card i{

    font-size:34px;

    color:var(--primary);

    margin-bottom:15px;

}

.stat-card h2{

    font-size:32px;

    margin-bottom:10px;

}

.stat-card p{

    color:var(--muted);

}

/* Status Colors */

.good{

    color:#22c55e;

}

.average{

    color:#f59e0b;

}

.bad{

    color:#ef4444;

}

/* Responsive */

@media(max-width:900px){

    .ats-section{

        grid-template-columns:1fr;

    }

    .ats-details{

        grid-template-columns:1fr;

    }

}
/* ==========================================
   CareerGPT AI
   Part 2B-2.2
   Career Roadmap & Skill Gap
========================================== */

/* ==========================
   Roadmap Section
========================== */

.roadmap-section{

    margin-top:40px;

}

.roadmap-title{

    font-size:28px;

    margin-bottom:25px;

    font-weight:600;

}

/* Timeline */

.timeline{

    position:relative;

    margin-left:30px;

    padding-left:30px;

    border-left:4px solid var(--primary);

}

.timeline-item{

    position:relative;

    margin-bottom:35px;

}

.timeline-item:last-child{

    margin-bottom:0;

}

/* Timeline Dot */

.timeline-dot{

    position:absolute;

    left:-43px;

    top:5px;

    width:22px;

    height:22px;

    border-radius:50%;

    background:var(--primary);

    border:4px solid var(--bg);

    box-shadow:0 0 12px rgba(59,130,246,.5);

}

/* Timeline Card */

.timeline-card{

    background:var(--card);

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

    border-radius:18px;

    padding:22px;

    transition:.3s;

    box-shadow:var(--shadow);

}

.timeline-card:hover{

    transform:translateX(8px);

}

.timeline-card h3{

    margin-bottom:10px;

    font-size:20px;

}

.timeline-card p{

    color:var(--muted);

    line-height:1.8;

}

/* Duration Badge */

.duration{

    display:inline-block;

    margin-top:15px;

    padding:8px 16px;

    border-radius:30px;

    background:rgba(59,130,246,.15);

    color:var(--primary);

    font-size:14px;

    font-weight:600;

}

/* ==========================
   Skill Gap
========================== */

.skill-gap{

    margin-top:45px;

}

.skill-grid{

    display:grid;

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

    gap:20px;

}

/* Skill Card */

.skill-card{

    background:var(--card);

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

    border-radius:18px;

    padding:22px;

    transition:.3s;

}

.skill-card:hover{

    transform:translateY(-6px);

}

.skill-card h3{

    margin-bottom:18px;

    display:flex;

    align-items:center;

    gap:10px;

}

.skill-card ul{

    list-style:none;

}

.skill-card li{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:14px;

}

/* Skill Badge */

.skill-badge{

    padding:6px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

    color:#fff;

}

.beginner{

    background:#ef4444;

}

.intermediate{

    background:#f59e0b;

}

.advanced{

    background:#22c55e;

}

/* Progress */

.skill-progress{

    margin-top:8px;

    width:100%;

    height:8px;

    border-radius:20px;

    background:#334155;

    overflow:hidden;

}

.skill-progress-bar{

    height:100%;

    width:70%;

    border-radius:20px;

    background:linear-gradient(
        90deg,
        #22c55e,
        #3b82f6
    );

}

/* ==========================
   Learning Path
========================== */

.learning-path{

    margin-top:45px;

}

.path-grid{

    display:grid;

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

    gap:20px;

}

.path-card{

    background:var(--card);

    border-radius:18px;

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

    padding:22px;

    transition:.3s;

}

.path-card:hover{

    transform:translateY(-5px);

}

.path-card i{

    font-size:36px;

    color:var(--primary);

    margin-bottom:15px;

}

.path-card h3{

    margin-bottom:10px;

}

.path-card p{

    color:var(--muted);

    line-height:1.7;

}

/* Action Button */

.path-btn{

    display:inline-block;

    margin-top:18px;

    padding:10px 18px;

    background:var(--primary);

    color:#fff;

    border-radius:10px;

    text-decoration:none;

    transition:.3s;

}

.path-btn:hover{

    background:var(--primary-dark);

}

/* ==========================
   Milestones
========================== */

.milestone-grid{

    margin-top:40px;

    display:grid;

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

    gap:20px;

}

.milestone{

    background:var(--card);

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

    border-radius:18px;

    padding:22px;

    text-align:center;

    transition:.3s;

}

.milestone:hover{

    transform:scale(1.03);

}

.milestone i{

    font-size:40px;

    color:var(--green);

    margin-bottom:15px;

}

.milestone h3{

    margin-bottom:8px;

}

.milestone p{

    color:var(--muted);

}

/* ==========================
   Responsive
========================== */

@media(max-width:768px){

    .timeline{

        margin-left:10px;

        padding-left:20px;

    }

    .timeline-dot{

        left:-33px;

    }

    .timeline-card{

        padding:18px;

    }

    .skill-grid,

    .path-grid,

    .milestone-grid{

        grid-template-columns:1fr;

    }

}
/* ==========================================
   CareerGPT AI
   Part 2B-2.3A
   Interview Preparation
========================================== */

.interview-section{

    margin-top:45px;

}

.interview-title{

    font-size:28px;

    margin-bottom:25px;

    font-weight:600;

}

.interview-grid{

    display:grid;

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

    gap:20px;

}

/* Question Card */

.question-card{

    background:var(--card);

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

    border-radius:18px;

    padding:22px;

    transition:.3s;

    box-shadow:var(--shadow);

}

.question-card:hover{

    transform:translateY(-6px);

}

/* Header */

.question-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.question-header h3{

    font-size:18px;

}

/* Difficulty Badge */

.difficulty{

    padding:6px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

    color:#fff;

}

.easy{

    background:#22c55e;

}

.medium{

    background:#f59e0b;

}

.hard{

    background:#ef4444;

}

/* Question */

.question-text{

    line-height:1.8;

    color:var(--text);

    margin-bottom:18px;

}

/* Answer */

.answer-box{

    display:none;

    margin-top:18px;

    padding:16px;

    border-radius:14px;

    background:rgba(59,130,246,.08);

    border-left:4px solid var(--primary);

}

.answer-box p{

    color:var(--muted);

    line-height:1.7;

}

.answer-box.active{

    display:block;

}

/* Buttons */

.question-actions{

    display:flex;

    gap:10px;

    margin-top:20px;

}

.btn{

    padding:10px 16px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-dark);

}

.btn-outline{

    background:transparent;

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

    color:var(--text);

}

.btn-outline:hover{

    border-color:var(--primary);

    color:var(--primary);

}
/* ==========================================
   CareerGPT AI
   Part 2B-2.3B
   Coding Challenges & Practice Dashboard
========================================== */

/* ==========================
   Practice Dashboard
========================== */

.practice-dashboard{

    display:grid;

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

    gap:20px;

    margin-top:35px;

}

.practice-card{

    background:var(--card);

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

    border-radius:18px;

    padding:24px;

    text-align:center;

    transition:.3s;

    box-shadow:var(--shadow);

}

.practice-card:hover{

    transform:translateY(-6px);

}

.practice-card i{

    font-size:36px;

    color:var(--primary);

    margin-bottom:15px;

}

.practice-card h2{

    font-size:30px;

    margin-bottom:8px;

}

.practice-card p{

    color:var(--muted);

}

/* ==========================
   Coding Challenge
========================== */

.challenge-card{

    margin-top:30px;

    background:var(--card);

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

    border-radius:18px;

    padding:25px;

    box-shadow:var(--shadow);

}

.challenge-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.challenge-title{

    font-size:22px;

    font-weight:600;

}

.timer{

    background:rgba(245,158,11,.15);

    color:#f59e0b;

    padding:8px 16px;

    border-radius:25px;

    font-size:13px;

    font-weight:600;

}

.challenge-description{

    color:var(--muted);

    line-height:1.8;

    margin-bottom:20px;

}

.challenge-tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.tag{

    padding:8px 14px;

    border-radius:20px;

    background:rgba(59,130,246,.12);

    color:var(--primary);

    font-size:13px;

    font-weight:600;

}

/* ==========================
   HR Questions
========================== */

.hr-card{

    margin-top:30px;

    background:var(--card);

    border-radius:18px;

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

    padding:22px;

}

.hr-card h3{

    margin-bottom:15px;

}

.hr-list{

    list-style:none;

}

.hr-list li{

    display:flex;

    align-items:flex-start;

    gap:12px;

    padding:12px 0;

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

}

.hr-list li:last-child{

    border-bottom:none;

}

.hr-list i{

    color:var(--primary);

    margin-top:4px;

}

/* ==========================
   Technical Questions
========================== */

.tech-card{

    margin-top:30px;

    background:var(--card);

    border-radius:18px;

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

    padding:22px;

}

.tech-question{

    padding:15px;

    border-radius:14px;

    background:rgba(59,130,246,.05);

    margin-bottom:15px;

    transition:.3s;

}

.tech-question:hover{

    background:rgba(59,130,246,.10);

}

.tech-question h4{

    margin-bottom:8px;

}

.tech-question p{

    color:var(--muted);

    line-height:1.7;

}

/* ==========================
   Practice Progress
========================== */

.practice-progress{

    margin-top:35px;

}

.practice-progress h3{

    margin-bottom:18px;

}

.progress-track{

    width:100%;

    height:12px;

    background:#334155;

    border-radius:30px;

    overflow:hidden;

}

.progress-fill{

    width:65%;

    height:100%;

    border-radius:30px;

    background:linear-gradient(
        90deg,
        #22c55e,
        #3b82f6
    );

    transition:width .5s ease;

}

.progress-label{

    margin-top:10px;

    color:var(--muted);

    font-size:14px;

}

/* ==========================
   Responsive
========================== */

@media(max-width:768px){

    .challenge-header{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .practice-dashboard{

        grid-template-columns:1fr;

    }

}
/* ==========================================
   CareerGPT AI
   Part 2B-2.4
   Cover Letter, AI Recommendations,
   Toast Notifications & Modal
========================================== */

/* ==========================
   Cover Letter Generator
========================== */

.cover-letter-section{

    margin-top:45px;

}

.cover-editor{

    background:var(--card);

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

    border-radius:18px;

    padding:25px;

    box-shadow:var(--shadow);

}

.cover-editor textarea{

    width:100%;

    min-height:260px;

    resize:vertical;

    border:none;

    outline:none;

    background:transparent;

    color:var(--text);

    font-size:15px;

    line-height:1.8;

    font-family:'Poppins',sans-serif;

}

.cover-actions{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    margin-top:20px;

}

.cover-actions button{

    padding:12px 22px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.generate-btn{

    background:var(--primary);

    color:#fff;

}

.generate-btn:hover{

    background:var(--primary-dark);

}

.download-btn{

    background:#22c55e;

    color:#fff;

}

.download-btn:hover{

    background:#16a34a;

}

/* ==========================
   AI Recommendation Cards
========================== */

.recommend-section{

    margin-top:45px;

}

.recommend-grid{

    display:grid;

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

    gap:20px;

}

.recommend-card{

    background:var(--card);

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

    border-radius:18px;

    padding:22px;

    transition:.3s;

    box-shadow:var(--shadow);

}

.recommend-card:hover{

    transform:translateY(-6px);

}

.recommend-card i{

    font-size:34px;

    color:var(--primary);

    margin-bottom:15px;

}

.recommend-card h3{

    margin-bottom:10px;

}

.recommend-card p{

    color:var(--muted);

    line-height:1.7;

}

/* ==========================
   Toast Notification
========================== */

.toast{

    position:fixed;

    right:30px;

    bottom:30px;

    min-width:280px;

    background:#111827;

    color:#fff;

    padding:18px 22px;

    border-radius:14px;

    box-shadow:var(--shadow);

    display:flex;

    align-items:center;

    gap:12px;

    opacity:0;

    transform:translateY(30px);

    pointer-events:none;

    transition:.35s;

    z-index:9999;

}

.toast.show{

    opacity:1;

    transform:translateY(0);

    pointer-events:auto;

}

.toast.success{

    border-left:5px solid #22c55e;

}

.toast.error{

    border-left:5px solid #ef4444;

}

.toast.warning{

    border-left:5px solid #f59e0b;

}

.toast i{

    font-size:20px;

}

/* ==========================
   Modal Window
========================== */

.modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.6);

    z-index:10000;

}

.modal.active{

    display:flex;

}

.modal-content{

    width:90%;

    max-width:650px;

    background:var(--card);

    border-radius:18px;

    padding:30px;

    box-shadow:var(--shadow);

    animation:modalFade .3s ease;

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.modal-header h2{

    font-size:24px;

}

.close-modal{

    width:40px;

    height:40px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:#ef4444;

    color:#fff;

    font-size:18px;

}

.modal-body{

    line-height:1.8;

    color:var(--muted);

}

@keyframes modalFade{

    from{

        opacity:0;

        transform:scale(.9);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

/* ==========================
   Utility Buttons
========================== */

.btn-success{

    background:#22c55e;

    color:#fff;

}

.btn-danger{

    background:#ef4444;

    color:#fff;

}

.btn-warning{

    background:#f59e0b;

    color:#fff;

}

.btn-success:hover{

    background:#16a34a;

}

.btn-danger:hover{

    background:#dc2626;

}

.btn-warning:hover{

    background:#d97706;

}

/* ==========================
   Responsive
========================== */

@media(max-width:768px){

    .cover-actions{

        flex-direction:column;

    }

    .cover-actions button{

        width:100%;

    }

    .toast{

        left:20px;

        right:20px;

        min-width:auto;

    }

    .modal-content{

        padding:22px;

    }

}
/* ==========================================
   CareerGPT AI
   Part 3A
   Loading, Streaming & Markdown
========================================== */

/* AI Streaming Cursor */

.streaming{

    display:inline;

}

.streaming::after{

    content:"|";

    color:var(--primary);

    animation:cursorBlink 1s infinite;

    margin-left:2px;

}

@keyframes cursorBlink{

    0%,100%{

        opacity:1;

    }

    50%{

        opacity:0;

    }

}

/* ================= Skeleton Loader ================= */

.skeleton{

    position:relative;

    overflow:hidden;

    background:#1f2937;

    border-radius:12px;

}

.skeleton::before{

    content:"";

    position:absolute;

    inset:0;

    transform:translateX(-100%);

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.15),

        transparent

    );

    animation:skeleton 1.3s infinite;

}

@keyframes skeleton{

    to{

        transform:translateX(100%);

    }

}

.skeleton-title{

    width:60%;

    height:20px;

    margin-bottom:15px;

}

.skeleton-text{

    width:100%;

    height:12px;

    margin-bottom:10px;

}

.skeleton-short{

    width:70%;

}

/* ================= Markdown ================= */

.markdown{

    line-height:1.9;

    word-break:break-word;

}

.markdown h1,
.markdown h2,
.markdown h3{

    margin:20px 0 12px;

    color:var(--text);

}

.markdown p{

    margin-bottom:14px;

}

.markdown ul{

    margin-left:25px;

    margin-bottom:15px;

}

.markdown li{

    margin-bottom:8px;

}

.markdown strong{

    color:var(--primary);

}

.markdown em{

    color:#22c55e;

}

.markdown a{

    color:#60a5fa;

    text-decoration:none;

}

.markdown a:hover{

    text-decoration:underline;

}

/* ================= Blockquote ================= */

.markdown blockquote{

    border-left:4px solid var(--primary);

    padding:15px 20px;

    margin:20px 0;

    background:rgba(59,130,246,.08);

    border-radius:8px;

}

/* ================= Horizontal Rule ================= */

.markdown hr{

    border:none;

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

    margin:30px 0;

}
/* ==========================================
   CareerGPT AI
   Part 3B
   Code Blocks, Tables, Glass UI & Utilities
========================================== */

/* ==========================
   Code Blocks
========================== */

.markdown pre{

    background:#111827;

    color:#f8fafc;

    padding:18px;

    border-radius:14px;

    overflow-x:auto;

    margin:20px 0;

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

    font-size:14px;

    line-height:1.7;

}

.markdown code{

    font-family:Consolas,Monaco,monospace;

}

.markdown p code,

.markdown li code{

    background:rgba(59,130,246,.12);

    color:#60a5fa;

    padding:2px 6px;

    border-radius:6px;

}

/* ==========================
   Tables
========================== */

.markdown table{

    width:100%;

    border-collapse:collapse;

    margin:25px 0;

}

.markdown th{

    background:var(--primary);

    color:#fff;

    padding:14px;

    text-align:left;

}

.markdown td{

    padding:14px;

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

}

.markdown tr:nth-child(even){

    background:rgba(255,255,255,.03);

}

.markdown tr:hover{

    background:rgba(59,130,246,.08);

}

/* ==========================
   Floating Action Button
========================== */

.fab{

    position:fixed;

    right:30px;

    bottom:35px;

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    font-size:24px;

    box-shadow:0 10px 30px rgba(59,130,246,.35);

    transition:.3s;

    z-index:999;

}

.fab:hover{

    transform:scale(1.08);

    background:var(--primary-dark);

}

/* ==========================
   Glassmorphism Cards
========================== */

.glass{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:20px;

    box-shadow:var(--shadow);

}

/* ==========================
   Chat Enhancements
========================== */

.message{

    animation:chatFade .35s ease;

}

@keyframes chatFade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.messages{

    scroll-behavior:smooth;

}

/* ==========================
   Badges
========================== */

.badge{

    display:inline-block;

    padding:6px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

}

.badge-primary{

    background:rgba(59,130,246,.15);

    color:var(--primary);

}

.badge-success{

    background:rgba(34,197,94,.15);

    color:#22c55e;

}

.badge-warning{

    background:rgba(245,158,11,.15);

    color:#f59e0b;

}

.badge-danger{

    background:rgba(239,68,68,.15);

    color:#ef4444;

}

/* ==========================
   Utility Classes
========================== */

.text-center{

    text-align:center;

}

.text-left{

    text-align:left;

}

.text-right{

    text-align:right;

}

.mt-1{margin-top:10px;}

.mt-2{margin-top:20px;}

.mt-3{margin-top:30px;}

.mt-4{margin-top:40px;}

.mb-1{margin-bottom:10px;}

.mb-2{margin-bottom:20px;}

.mb-3{margin-bottom:30px;}

.mb-4{margin-bottom:40px;}

.p-1{padding:10px;}

.p-2{padding:20px;}

.p-3{padding:30px;}

.rounded{

    border-radius:14px;

}

.shadow{

    box-shadow:var(--shadow);

}

.hidden{

    display:none !important;

}

.flex{

    display:flex;

}

.flex-center{

    display:flex;

    justify-content:center;

    align-items:center;

}

.w-100{

    width:100%;

}

/* ==========================
   Responsive
========================== */

@media(max-width:768px){

    .fab{

        right:20px;

        bottom:20px;

        width:54px;

        height:54px;

        font-size:20px;

    }

    .markdown table{

        display:block;

        overflow-x:auto;

    }

}
/* ==========================================
   CareerGPT AI
   Part 3C (FINAL)
   Final Polish & Production Ready
========================================== */

/* ==========================
   Theme Transition
========================== */

body,
.sidebar,
.main,
.right-panel,
.card,
.chat-container,
.input-area,
.bubble,
button,
input,
textarea{

    transition:
        background .35s ease,
        color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}

/* ==========================
   Focus States
========================== */

button:focus,
input:focus,
textarea:focus{

    outline:none;

    box-shadow:0 0 0 3px rgba(59,130,246,.35);

}

button{

    cursor:pointer;

}

/* ==========================
   Selection
========================== */

::selection{

    background:#2563eb;

    color:white;

}

::-moz-selection{

    background:#2563eb;

    color:white;

}

/* ==========================
   Alerts
========================== */

.alert{

    padding:16px 20px;

    border-radius:14px;

    margin:15px 0;

    font-weight:500;

}

.alert-success{

    background:rgba(34,197,94,.12);

    color:#22c55e;

    border-left:5px solid #22c55e;

}

.alert-error{

    background:rgba(239,68,68,.12);

    color:#ef4444;

    border-left:5px solid #ef4444;

}

.alert-warning{

    background:rgba(245,158,11,.12);

    color:#f59e0b;

    border-left:5px solid #f59e0b;

}

.alert-info{

    background:rgba(59,130,246,.12);

    color:#3b82f6;

    border-left:5px solid #3b82f6;

}

/* ==========================
   Empty State
========================== */

.empty-state{

    text-align:center;

    padding:60px 20px;

}

.empty-state i{

    font-size:70px;

    color:var(--primary);

    margin-bottom:20px;

}

.empty-state h2{

    margin-bottom:10px;

}

.empty-state p{

    color:var(--muted);

}

/* ==========================
   Image Preview
========================== */

.image-preview{

    max-width:100%;

    border-radius:16px;

    margin-top:20px;

    box-shadow:var(--shadow);

}

/* ==========================
   Divider
========================== */

.divider{

    width:100%;

    height:1px;

    background:var(--border);

    margin:30px 0;

}

/* ==========================
   Fade Utilities
========================== */

.fade-in{

    animation:fadeIn .4s ease;

}

.fade-up{

    animation:fadeUp .5s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================
   Hover Lift
========================== */

.hover-lift{

    transition:.3s;

}

.hover-lift:hover{

    transform:translateY(-6px);

}

/* ==========================
   Disabled State
========================== */

button:disabled{

    opacity:.55;

    cursor:not-allowed;

}

/* ==========================
   Scrollbar
========================== */

*{

    scrollbar-width:thin;

    scrollbar-color:#475569 transparent;

}

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-thumb{

    background:#475569;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

/* ==========================
   Print Mode
========================== */

@media print{

    .sidebar,
    .right-panel,
    .input-area,
    .fab{

        display:none !important;

    }

    body{

        background:white;

        color:black;

    }

    .main{

        margin:0;

        padding:0;

        width:100%;

    }

}

/* ==========================
   Accessibility
========================== */

[aria-hidden="true"]{

    display:none;

}

.visually-hidden{

    position:absolute;

    width:1px;

    height:1px;

    margin:-1px;

    padding:0;

    overflow:hidden;

    clip:rect(0,0,0,0);

    border:0;

}

/* ==========================
   Footer
========================== */

.footer{

    margin-top:50px;

    text-align:center;

    color:var(--muted);

    font-size:14px;

}

/* ==========================
   Version Badge
========================== */

.version{

    display:inline-block;

    margin-top:10px;

    padding:6px 14px;

    border-radius:20px;

    background:rgba(59,130,246,.12);

    color:var(--primary);

    font-size:12px;

    font-weight:600;

}

.page{

    display:none;

}

.page.active{

    display:block;

}

.primary-btn{

    margin-top:20px;

    padding:12px 25px;

    border:none;

    border-radius:8px;

    background:#4f46e5;

    color:white;

    cursor:pointer;

}
.page{
    display:none;
}

.page.active{
    display:block;
}
/* ==========================
   Roadmap
========================== */

.roadmap-card{

    background:#1e293b;

    padding:20px;

    margin:20px 0;

    border-radius:12px;

    border:1px solid #334155;

}

.roadmap-card h3{

    color:#60a5fa;

    margin-bottom:10px;

}

.roadmap-card h4{

    color:#facc15;

    margin-bottom:15px;

}

.roadmap-card h5{

    margin-top:15px;

    color:#38bdf8;

}

.roadmap-card ul{

    padding-left:20px;

}

.roadmap-card li{

    margin:6px 0;

}
/* ==========================
   Learning Resources
========================== */

.resource-card{

    background:#1e293b;

    margin:20px 0;

    padding:20px;

    border-radius:12px;

    border:1px solid #334155;

}

.resource-card h3{

    color:#38bdf8;

    margin-bottom:12px;

}

.resource-card ul{

    padding-left:20px;

}

.resource-card li{

    margin:8px 0;

}
/* ==========================
   skill-card
========================== */

.skill-card{

background:#1e293b;

padding:20px;

margin:20px 0;

border-radius:12px;

}

#skillGapResult h1{

font-size:48px;

color:#22c55e;

}

#skillGapResult ul{

padding-left:20px;

}

#skillGapResult li{

margin:8px 0;

}
/* =====================================================
   FINAL BODY / PAGE IMPROVEMENTS
===================================================== */

/* Body */

body{
    background:linear-gradient(180deg,#0f172a,#111827);
    color:#fff;
    overflow-x:hidden;
    overflow-y:auto;
    min-height:100vh;
}

/* App */

.app{
    height:100vh;
    overflow:hidden;
}

/* Main */

.main{
    overflow-y:auto;
    padding:40px;
    background:linear-gradient(180deg,#0f172a,#111827);
}

/* Pages */

#pages{
    margin-top:35px;
}

.page{
    display:none;
    animation:pageFade .35s ease;
}

.page.active{
    display:block;
}

@keyframes pageFade{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* =====================================================
   ALL FEATURE PAGES
===================================================== */

.page h2{
    font-size:32px;
    margin-bottom:10px;
}

.page>p{
    color:#94a3b8;
    margin-bottom:25px;
}

.page{

    background:#111827;

    border:1px solid #1f2937;

    border-radius:18px;

    padding:30px;

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

}

/* =====================================================
   Inputs
===================================================== */

.page input,
.page textarea,
.page select{

    width:100%;

    margin-bottom:18px;

    padding:16px 18px;

    border-radius:14px;

    border:1px solid #334155;

    background:#1e293b;

    color:white;

    font-size:15px;

    transition:.3s;

}

.page input:focus,
.page textarea:focus,
.page select:focus{

    border-color:#3b82f6;

    box-shadow:0 0 0 4px rgba(59,130,246,.2);

}

/* =====================================================
   Buttons
===================================================== */

.page button{

    background:#3b82f6;

    color:white;

    border:none;

    padding:14px 24px;

    border-radius:12px;

    font-weight:600;

    transition:.3s;

}

.page button:hover{

    transform:translateY(-3px);

    background:#2563eb;

}

/* =====================================================
   Result Boxes
===================================================== */

#resumeResult,
#coverResult,
#roadmapResult,
#resourcesResult,
#interviewResult,
#skillGapResult{

    margin-top:30px;

    background:#1e293b;

    border:1px solid #334155;

    border-radius:18px;

    padding:25px;

    line-height:1.8;

    animation:fadeUp .4s ease;

}

/* =====================================================
   Login Button
===================================================== */

.profile{

    width:auto;

    padding:10px 18px;

    border-radius:50px;

    display:flex;

    align-items:center;

    gap:10px;

    background:#1e40af;

    cursor:pointer;

    transition:.3s;

}

.profile:hover{

    transform:translateY(-3px);

}

.profile span{

    font-weight:600;

}

/* =====================================================
   Cards Better
===================================================== */

.cards{

    margin-top:25px;

    margin-bottom:35px;

}

.card{

    border:1px solid #334155;

}

.card:hover{

    border-color:#3b82f6;

}

/* =====================================================
   Hero Better
===================================================== */

.hero{

    position:relative;

    overflow:hidden;

}

.hero::before{

    content:"";

    position:absolute;

    right:-120px;

    top:-120px;

    width:260px;

    height:260px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

}

/* =====================================================
   Chat
===================================================== */

.chat-container{

    margin-top:30px;

    border:1px solid #334155;

}

.messages{

    padding:30px;

}

.bubble{

    font-size:15px;

}

/* =====================================================
   Sidebar
===================================================== */

.sidebar{

    overflow-y:auto;

}

/* =====================================================
   Right Panel
===================================================== */

.right-panel{

    overflow-y:auto;

}

/* =====================================================
   Responsive
===================================================== */

@media(max-width:900px){

    .main{

        padding:20px;

    }

    .page{

        padding:20px;

    }

    .page h2{

        font-size:26px;

    }

}
/* ==========================
   End of File
========================== */

/* ==========================================
   FINAL RESPONSIVE FIXES
========================================== */

/* Prevent horizontal scrolling */

html,
body{
    width:100%;
    overflow-x:hidden;
}

/* Images */

img{
    max-width:100%;
    height:auto;
}

/* Videos */

video{
    max-width:100%;
}

/* Tables */

table{
    display:block;
    overflow-x:auto;
}

/* Inputs */

input,
textarea,
select,
button{
    max-width:100%;
}

/* Grid */

.cards,
.analysis-grid,
.skill-grid,
.path-grid,
.milestone-grid,
.practice-dashboard,
.recommend-grid{

    display:grid;
    gap:20px;

}

/* Large Desktop */

@media (min-width:1401px){

.app{

grid-template-columns:260px 1fr 320px;

}

}

/* Laptop */

@media (max-width:1400px){

.app{

grid-template-columns:240px 1fr 280px;

}

}

/* Small Laptop */

@media (max-width:1200px){

.app{

grid-template-columns:220px 1fr;

}

.right-panel{

display:none;

}

}

/* Tablet */

@media (max-width:992px){

.sidebar{

position:fixed;
left:-260px;
top:0;
width:260px;
height:100vh;
transition:.3s;
z-index:1000;

}

.sidebar.active{

left:0;

}

.main{

margin-left:0;
padding:25px;

}

.cards{

grid-template-columns:repeat(2,1fr);

}

.chat-container{

height:70vh;

}

}

/* Mobile */

@media (max-width:768px){

header{

flex-direction:column;
align-items:flex-start;

}

.hero{

padding:20px;

}

.hero h2{

font-size:24px;

}

.cards,
.analysis-grid,
.skill-grid,
.path-grid,
.milestone-grid,
.practice-dashboard,
.recommend-grid{

grid-template-columns:1fr;

}

.chat-container{

height:65vh;

}

.message .bubble{

max-width:95%;

}

.input-area{

flex-wrap:wrap;

}

.input-area input{

width:100%;

}

.input-area button{

width:50px;
height:50px;

}

}

/* Small Phones */

@media (max-width:480px){

.main{

padding:15px;

}

.hero{

padding:18px;

}

.page{

padding:18px;

}

.page h2{

font-size:22px;

}

.profile{

padding:8px 14px;

}

}