*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f4f7fa;
    color:#222;
    padding:20px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#003366;
    color:white;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
}

.top-buttons{
    display:flex;
    gap:10px;
    align-items:center;
}

.home-btn{
    background:#ffffff;
    color:#003366;
    padding:10px 16px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.home-btn:hover{
    background:#e6e6e6;
}


.title-section h1{
    font-size:28px;
}

.title-section p{
    margin-top:5px;
}

#darkModeToggle{
    background:white;
    border:none;
    padding:10px 16px;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
}

.filter-wrapper{
    position:sticky;
    top:0;
    z-index:999;
    background:#f4f7fa;
    padding-bottom:10px;
}

.filters{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:12px;
    margin-bottom:20px;
}

.filters select,
.filters input{
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:14px;
}

.table-container{
    width:100%;
    overflow-x:auto;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    overflow:auto;
}

table.dataTable{
    width:100% !important;
}

#syllabusTable th,
#syllabusTable td{
    white-space:nowrap;
    font-size:14px;
}


#syllabusTable{
    width:100%;
}

.pdf-btn{
    background:#d32f2f;
    color:white;
    padding:8px 12px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.pdf-btn:hover{
    background:#b71c1c;
}

.dark-mode{
    background:#121212;
    color:#f5f5f5;
}


.dark-mode .home-btn{
    background:#2a2a2a;
    color:white;
}

.dark-mode .home-btn:hover{
    background:#3a3a3a;
}


.dark-mode .topbar{
    background:#1e1e1e;
}

.dark-mode .table-container{
    background:#1f1f1f;
}

.dark-mode .filters input,
.dark-mode .filters select{
    background:#1f1f1f;
    color:white;
    border:1px solid #444;
}

@media(max-width:768px){

    .topbar{
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    .title-section h1{
        font-size:22px;
    }

    body{
        padding:10px;
    }

    .top-buttons{
    flex-direction:column;
    width:100%;
    }

    .home-btn,
    #darkModeToggle{
        width:100%;
    }
}

#resetFilters{
    background:#003366;
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

#resetFilters:hover{
    background:#002244;
}

#visitor-box{
    margin-top:8px;
    font-size:14px;
    background:rgba(255,255,255,0.15);
    padding:6px 12px;
    border-radius:6px;
    display:inline-block;
}