body {
    /* display: flex; */
    font-family: 'Raleway', sans-serif;
    margin: 0;
    background: #f5f6fA;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Quicksand', sans-serif;
}

.sidebar {
    width: 245px;
    background: #11396a;
    color: white;
    /*padding: 20px;*/
    height: 100vh;
    position: fixed;
    left: 0;
    transition: left 0.3s ease-in-out;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.sidebar ul li {
    padding-top: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 30px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li:hover {
    background: #14437c;
    border-radius: 5px;
}

.main-content {
    flex: 1;
    padding: 20px;
    /* margin-left: 250px; */
}

.main-content h4 {
    color: #11396a;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.main-content h6 {
    color: #11396a;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.books {
    color: #11396a;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px 0px 22px;
}

.dropdown-toggle::after {
    margin-top: 9px;
}

.account {
    width: 2.1%;
}

.burger-menu {
    font-size: 28px;
    cursor: pointer;
    display: none;
}

.dashboard-cards {
    /* display: flex; */
    /* gap: 20px; */
}

.dataTables_length {
    margin-bottom: 15px;
}

.dataTables_info {
    margin-top: 8px;
}

.dataTables_paginate {
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #11396a;
    color: white;
}

tr:hover {
    background: #f1f1f1;
}

.pdf-links {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f8ff;
    color: #11396a;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: .5s;
}

.pdf-links:hover {
    background-color: #11396a;
    color: #fff;
    text-decoration: none;
}

.btn {
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    margin: 2px;
}

.btn.edit {
    background: #27ae60;
    color: #fff;
}

.btn.edit:hover {
    background: #126d38;
    color: #fff;
}

.btn.delete {
    background: #e74c3c;
    color: #fff;
}

.btn.delete:hover {
    background: #9b3227;
    color: #fff;
}

/* Styling the Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.close-btn:hover {
    color: #e74c3c;
}

.editor-container {
    width: 100%;
    background: white;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.toolbar {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.toolbar button {
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.toolbar button:hover {
    background: #ddd;
}

.editor {
    min-height: 150px;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
    outline: none;
    overflow: auto;
}

.editor:focus {
    border-color: #007bff;
}

/* FACULTY CSS START*/

.department-row {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faculty-container {
    border: 1px solid black;
    /*padding: 1rem;*/
    border-radius: 10px;
    margin: 10px;
    text-align: center;
}

.faculty-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.faculty-image img {
    width: 194px;
    object-fit: fill;
    height: 245px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 50%;
}

.faculty-content {
    width: 100%;
}

.faculty-designation {
    font-size: 0.8rem;
}

/* FACULTY CSS END */

.span-border {
    border-bottom: 1px solid #81ca00;
    display: inline-block;
    position: relative;
    text-align: center;
    width: 180px;
    align-items: center;
}

.span-border::after {
    background-color: #81ca00;
    bottom: -3px;
    border-radius: 20px;
    content: "";
    height: 5px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 60px;
}


@media (min-width: 992px) {
    .close-btn {
        display: none;
        /* Hide close button on larger screens */
    }
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 820px) {
    .sidebar {
        left: -250px;
        /* Hide sidebar by default on small screens */
        z-index: 1;
    }

    .sidebar.active {
        left: 0;
        /* Show sidebar when active */
        width: 250px;
    }

    /* The burger menu will be shown on smaller screens */
    .burger-menu {
        display: block;
    }

    .main-content {
        margin-left: 0;
        /* Make sure content takes full width on small screens */
    }

    /* Adjust table and card styles */
    .dashboard-cards {
        flex-direction: column;
        gap: 10px;
    }

    .card {
        width: 100%;
        /* Full width for cards on small screens */
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 10px;
    }

    .account {
        width: 3.2%;
    }
}

@media screen and (min-width: 821px) and (max-width: 1024px) {

    /* Hide cross icon on desktop */
    .close-btn {
        display: block;
    }

    .sidebar {
        left: -250px;
        /* Hide sidebar by default on small screens */
        z-index: 1;
    }

    .sidebar.active {
        left: 0;
        /* Show sidebar when active */
        width: 250px;
    }

    /* The burger menu will be shown on smaller screens */
    .burger-menu {
        display: block;
    }

    .main-content {
        margin-left: 0px;
    }

    .account {
        width: 3.2%;
    }
}

@media screen and (max-width: 480px) {
    #sidebar h2 {
        font-size: 18px;
    }

    .sidebar ul li {
        padding-top: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        padding-left: 15px;
    }

    .card {
        width: 100%;
    }

    .burger-menu {
        font-size: 30px;
    }

    .account {
        width: 9%;
    }

    .close-btn {
        font-size: 25px;
    }
    
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 1.5em;
    }
}

/* START BACK TO TOP */

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 99;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

#backToTopBtn img {
    width: 78px;
    height: 78px;
}

/* END BACK TO TOP */