/* ==========================================================
   Placement Dashboard
   styles.css
   Part 1
   Theme • Layout • Header • Search • Stats • Filters
   ========================================================== */

/* -------------------- Google Font -------------------- */

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

/* -------------------- Reset -------------------- */

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

html{

    scroll-behavior:smooth;

}

body{

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

    background:#0f172a;

    color:#f8fafc;

    transition:.25s;

    min-height:100vh;

}

/* -------------------- Theme -------------------- */

:root{

    --bg:#0f172a;

    --surface:#1e293b;

    --surface2:#334155;

    --surface3:#475569;

    --border:#334155;

    --primary:#3b82f6;

    --primary-hover:#2563eb;

    --green:#22c55e;

    --red:#ef4444;

    --yellow:#eab308;

    --text:#f8fafc;

    --muted:#94a3b8;

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

    --radius:16px;

}

/* -------------------- Light Theme -------------------- */

body.light{

    --bg:#f4f7fb;

    --surface:white;

    --surface2:#f1f5f9;

    --surface3:#e2e8f0;

    --border:#dbe4ef;

    --text:#0f172a;

    --muted:#64748b;

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

}

/* -------------------- Scrollbar -------------------- */

::-webkit-scrollbar{

    width:10px;
    height:10px;

}

::-webkit-scrollbar-track{

    background:var(--bg);

}

::-webkit-scrollbar-thumb{

    background:var(--surface3);

    border-radius:100px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}

/* -------------------- Main Layout -------------------- */

body{

    padding:32px;

}

.container{

    max-width:1700px;

    margin:auto;

}

/* -------------------- Header -------------------- */

.header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:32px;

}

.header h1{

    font-size:2.3rem;

    font-weight:700;

    margin-bottom:8px;

}

.header p{

    color:var(--muted);

    font-size:.95rem;

}

/* -------------------- Theme Button -------------------- */

#themeToggle{

    background:var(--surface);

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

    color:var(--text);

    padding:12px 18px;

    border-radius:12px;

    cursor:pointer;

    transition:.2s;

    font-size:14px;

}

#themeToggle:hover{

    background:var(--primary);

    color:white;

}

/* -------------------- Stats -------------------- */

.stats{

    display:grid;

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

    gap:18px;

    margin-bottom:32px;

}

.stat-card{

    background:var(--surface);

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

    border-radius:var(--radius);

    padding:22px;

    box-shadow:var(--shadow);

    transition:.2s;

}

.stat-card:hover{

    transform:translateY(-4px);

}

.stat-card h3{

    font-size:.9rem;

    color:var(--muted);

    font-weight:500;

    margin-bottom:12px;

}

.stat-card span{

    font-size:2rem;

    font-weight:700;

}

/* -------------------- Search -------------------- */

.toolbar{

    margin-bottom:22px;

}

#searchBox{

    width:100%;

    padding:16px 20px;

    border:none;

    outline:none;

    border-radius:14px;

    background:var(--surface);

    color:var(--text);

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

    font-size:15px;

    transition:.2s;

}

#searchBox:focus{

    border-color:var(--primary);

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

}

/* -------------------- Filters -------------------- */

.filters{

    display:flex;

    gap:12px;

    margin-bottom:28px;

    flex-wrap:wrap;

}

.year-btn{

    border:none;

    padding:11px 20px;

    border-radius:999px;

    background:var(--surface);

    color:var(--muted);

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

    cursor:pointer;

    transition:.2s;

    font-weight:600;

}

.year-btn:hover{

    background:var(--surface2);

    color:var(--text);

}

.year-btn.active{

    background:var(--primary);

    color:white;

    border-color:var(--primary);

}

/* -------------------- Status Bar -------------------- */

.statusBar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

#jobCount{

    font-weight:600;

    color:var(--muted);

}

#loading{

    color:var(--primary);

    font-weight:600;

}

/* -------------------- Utility -------------------- */

.hidden{

    display:none !important;

}

.text-muted{

    color:var(--muted);

}
/* ==========================================================
   styles.css
   Part 2
   Table • Company • Salary • Status • Hover Effects
   ========================================================== */

/* -------------------- Table Container -------------------- */

.table-container{

    background:var(--surface);

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

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

    margin-bottom:30px;

}

/* -------------------- Table -------------------- */

#jobsTable{

    width:100%;

    border-collapse:collapse;

    min-width:1400px;

}

/* -------------------- Header -------------------- */

#jobsTable thead{

    position:sticky;

    top:0;

    z-index:100;

}

#jobsTable th{

    background:var(--surface2);

    color:var(--text);

    padding:18px;

    text-align:left;

    font-size:14px;

    font-weight:600;

    letter-spacing:.3px;

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

    user-select:none;

    cursor:pointer;

    white-space:nowrap;

    transition:.2s;

}

#jobsTable th:hover{

    background:var(--surface3);

    color:white;

}

#jobsTable th::after{

    content:" ↕";

    color:var(--muted);

    font-size:12px;

}

/* -------------------- Rows -------------------- */

#jobsTable tbody tr{

    transition:.18s;

    cursor:pointer;

}

#jobsTable tbody tr:nth-child(even){

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

}

#jobsTable tbody tr:hover{

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

    transform:scale(1.003);

}

/* -------------------- Cells -------------------- */

#jobsTable td{

    padding:18px;

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

    vertical-align:middle;

    font-size:14px;

    color:var(--text);

}

/* -------------------- Company -------------------- */

.company-column{

    min-width:260px;

}

.company-wrapper{

    display:flex;

    align-items:center;

    gap:14px;

}

.company-logo{

    width:44px;

    height:44px;

    object-fit:contain;

    border-radius:10px;

    background:white;

    padding:4px;

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

    flex-shrink:0;

}

.company-info{

    display:flex;

    flex-direction:column;

}

.company-name{

    font-weight:700;

    font-size:15px;

}

.company-tag{

    margin-top:4px;

    color:var(--muted);

    font-size:12px;

}

/* -------------------- Salary -------------------- */

.salary{

    font-weight:700;

    color:var(--green);

    font-size:15px;

}

/* -------------------- Stipend -------------------- */

.stipend{

    color:#38bdf8;

    font-weight:600;

}

/* -------------------- Location -------------------- */

.location{

    color:var(--muted);

}

/* -------------------- Job Type -------------------- */

.job-type{

    display:inline-block;

    padding:6px 12px;

    border-radius:999px;

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

    color:#60a5fa;

    font-size:12px;

    font-weight:600;

}

/* -------------------- Status -------------------- */

.status{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:7px 14px;

    border-radius:999px;

    font-size:12px;

    font-weight:600;

    white-space:nowrap;

}

.status.open{

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

    color:#4ade80;

}

.status.closed{

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

    color:#f87171;

}

.status.progress{

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

    color:#60a5fa;

}

.status.completed{

    background:rgba(168,85,247,.15);

    color:#c084fc;

}

.status.hold{

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

    color:#fbbf24;

}

.status.neutral{

    background:rgba(148,163,184,.15);

    color:#cbd5e1;

}

/* -------------------- Links -------------------- */

.website-link{

    color:#60a5fa;

    text-decoration:none;

    transition:.2s;

}

.website-link:hover{

    color:white;

    text-decoration:underline;

}

/* -------------------- Empty Table -------------------- */

.empty-table{

    text-align:center;

    color:var(--muted);

    padding:60px;

    font-size:16px;

}

/* -------------------- Sticky First Column -------------------- */

.company-column{

    position:sticky;

    left:0;

    background:var(--surface);

    z-index:2;

}

tbody tr:hover .company-column{

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

}

thead .company-column{

    background:var(--surface2);

}

/* -------------------- Selected Row -------------------- */

.job-row.selected{

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

}

/* -------------------- Smooth Appearance -------------------- */

.job-row{

    animation:fadeIn .18s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(4px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* ==========================================================
   styles.css
   Part 3
   Modal • Pagination • Footer • Responsive
   ========================================================== */

/* -------------------- Modal -------------------- */

.modal{

    position:fixed;

    inset:0;

    background:rgba(15,23,42,.72);

    backdrop-filter:blur(10px);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:30px;

    z-index:9999;

}

.modal.hidden{

    display:none;

}

.modal-content{

    width:min(1000px,95vw);

    max-height:90vh;

    overflow-y:auto;

    background:var(--surface);

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

    border-radius:20px;

    box-shadow:var(--shadow);

    animation:modalOpen .22s ease;

    position:relative;

}

@keyframes modalOpen{

    from{

        opacity:0;

        transform:translateY(20px) scale(.97);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.modal-header{

    padding:24px 28px;

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

}

.modal-header h2{

    font-size:1.6rem;

    margin-bottom:8px;

}

.modal-subtitle{

    color:var(--muted);

    margin-top:6px;

}

#modalBody{

    padding:25px;

}

/* -------------------- Close Button -------------------- */

.close-button{

    position:absolute;

    top:18px;

    right:18px;

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:var(--surface2);

    color:var(--text);

    font-size:24px;

    cursor:pointer;

    transition:.2s;

}

.close-button:hover{

    background:var(--red);

    color:white;

}

/* -------------------- Details Table -------------------- */

.details-table{

    width:100%;

    border-collapse:collapse;

}

.details-table td{

    padding:14px 16px;

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

    vertical-align:top;

}

.details-table td:first-child{

    width:220px;

    color:var(--muted);

    font-weight:600;

}

/* -------------------- Pagination -------------------- */

.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin:35px 0;

    flex-wrap:wrap;

}

.pagination button{

    border:none;

    background:var(--surface);

    color:var(--text);

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

    padding:11px 15px;

    border-radius:12px;

    cursor:pointer;

    transition:.2s;

}

.pagination button:hover:not(:disabled){

    background:var(--primary);

    color:white;

}

.pagination button:disabled{

    opacity:.35;

    cursor:not-allowed;

}

.pagination select{

    background:var(--surface);

    color:var(--text);

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

    padding:10px 14px;

    border-radius:10px;

}

#pageInfo{

    color:var(--muted);

    font-weight:600;

    min-width:220px;

    text-align:center;

}

/* -------------------- Footer -------------------- */

footer{

    margin-top:50px;

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

    padding:28px 0;

}

.footer-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.footer-content p{

    color:var(--muted);

    margin-top:6px;

    font-size:14px;

}

.footer-right{

    color:var(--muted);

    font-weight:600;

}

/* -------------------- Utility -------------------- */

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 12px;

    border-radius:999px;

    background:var(--surface2);

    color:var(--text);

    font-size:12px;

}

.card{

    background:var(--surface);

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

    border-radius:16px;

    box-shadow:var(--shadow);

}

/* -------------------- Responsive -------------------- */

@media (max-width:1200px){

    body{

        padding:20px;

    }

    .stats{

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

    }

}

@media (max-width:900px){

    .header{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .stats{

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

    }

    .filters{

        overflow-x:auto;

        white-space:nowrap;

        padding-bottom:10px;

    }

    .table-container{

        overflow-x:auto;

    }

    #jobsTable{

        min-width:1100px;

    }

}

@media (max-width:600px){

    body{

        padding:12px;

    }

    .stats{

        grid-template-columns:1fr;

    }

    .modal{

        padding:10px;

    }

    .modal-content{

        width:100%;

        max-height:95vh;

        border-radius:16px;

    }

    .details-table td{

        display:block;

        width:100%;

    }

    .details-table td:first-child{

        border-bottom:none;

        padding-bottom:4px;

        width:100%;

    }

    .pagination{

        gap:8px;

    }

    .pagination button{

        padding:10px 12px;

    }

}

/* -------------------- Loading Animation -------------------- */

.loading-spinner{

    width:22px;

    height:22px;

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

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

    border-radius:50%;

    animation:spin .7s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* -------------------- Smooth Transitions -------------------- */

button,
input,
select,
table,
tr,
td,
th{

    transition:.18s ease;

}