@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

/* Layout */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header */

.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #d4af37;
}

/* Login Button */

.login-btn {
    padding: 10px 28px;
    border: 2px solid #d4af37;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
}

.login-btn:hover {
    background: #d4af37;
    color: #000;
}

/* Hero Section */

.hero {
    height: 100vh;
    background: url('../images/law-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dark Overlay */

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Center Logo */

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-large {
    font-size: 70px;
    letter-spacing: 5px;
    color: #d4af37;
}

/* Login Page */

.login-page {
    background: url('../images/law-bg.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: right;
    margin-right: 40px;
}

.login-container {
    width: 350px;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 8px;
    color: #fff;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-options a {
    color: #d4af37;
    text-decoration: none;
}

.login-submit {
    width: 100%;
    padding: 12px;
    background: #d4af37;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* =========================
   DASHBOARD LAYOUT
========================= */

.dashboard {
    display: flex;
    height: 100vh;
}

/* Sidebar */

.sidebar {
    width: 250px;
    background: #111;
    color: #fff;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 20px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #d4af37;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid #222;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
}

.sidebar-menu a:hover {
    background: #d4af37;
    color: #000;
}

/* Main Content */

.main-content {
    /* margin-left:250px;
    width:calc(100% - 250px); */
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header */

.dashboard-header {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

/* Body */

.dashboard-body {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
}

/* =========================
   BOOK GRID
========================= */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.book-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.book-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.book-card h3 {
    margin-top: 12px;
    font-size: 18px;
}

.book-card p {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

/* Details Button */

.details-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #d4af37;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================
BOOK DETAILS PAGE
========================= */

.book-details-top {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    align-items: center;
}

.book-info {
    flex: 1;
}

.book-info h2 {
    margin-bottom: 15px;
}

.book-thumbnail {
    width: 180px;
}

.book-thumbnail img {
    width: 100%;
    height: 100px;
    border-radius: 5px;
    object-fit: contain;
}

.book-chapters li {
    padding: 8px 10px;
    cursor: pointer;
    transition: 0.2s;
    cursor: pointer;
}

/* hover effect */
.book-chapters li:hover {
    background: #d4af37;
    color: #000;
}

/* active (clicked) effect */
.book-chapters li.active {
    background: #d4af37;
    color: #000;
    font-weight: bold;
}


/* BOOK READER SECTION */

.book-reader-section {
    display: flex;
    height: 600px;
    gap: 20px;
}

/* INDEX */

.book-index {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    overflow-y: auto;
}

.book-index ul {
    list-style: none;
    margin-top: 10px;
}

.book-index li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* PDF VIEWER */

.book-pdf {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.book-pdf iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */

.dashboard-footer {
    padding: 15px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ddd;
}

/* =========================
MOBILE SIDEBAR
========================= */

.menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background-color: #d1d1d1;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    /* position: absolute; */
}

.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    transition: 0.3s;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

/* new fromat css of dashboard */

.book-reader-section {
    position: relative;
    height: 700px;
}

/* Toggle Button */

.index-toggle {
    position: absolute;
    top: 10px;
    left: 154px;
    z-index: 10;
    background: #d4af37;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
}

/* INDEX PANEL */

.book-index {
    position: absolute;
    left: -300px;
    top: 0;
    width: 250px;
    height: 100%;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    transition: 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* ACTIVE INDEX */

.book-index.active {
    left: 0;
}

/* PDF FULL WIDTH */

.book-pdf {
    width: 100%;
    height: 100%;
}

.book-pdf iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.search-box{
width:100%;
}

.search-box input{
width:100%;
padding:10px 12px 10px 35px;
border:1px solid #ccc;
border-radius:4px;
outline:none;

/* search icon */
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23777' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-position:10px center;
background-size:16px;
}


/******************************************************** Responsive css start **********************************************************/
/* =========================
TABLET (max 992px)
========================= */

@media (max-width: 992px) {

    .sidebar {
        width: 200px;
    }

    .main-content {
        /* margin-left: 200px;
        width: calc(100% - 200px); */
    }

    .book-details-top {
        flex-direction: column;
        text-align: center;
    }

    .book-thumbnail {
        width: 150px;
    }

    .book-reader-section {
        flex-direction: column;
        height: auto;
    }

    .book-index {
        width: 100%;
        max-height: 200px;
    }

    .book-pdf {
        height: 500px;
    }

    .book-reader-section {
        height: 650px;
    }

    /* Toggle Button */

    .index-toggle {
        left: 10px;
        top: 10px;
        padding: 7px 12px;
        font-size: 14px;
        position: relative;
        margin: 0 auto;
        display: inline-block;
    }

    /* INDEX PANEL */

    .book-index {
        width: 220px;
        left: -300px;
    }

    .book-index.active {
        left: 0;
    }

}

/* =========================
MOBILE (max 768px)
========================= */

@media (max-width: 768px) {

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .menu-toggle {
        display: inline-flex;
        width: 32px;
        height: 32px;
        background-color: #d1d1d1;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        position: absolute;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        width: 250px;
        height: 100%;
        transition: 0.3s;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }


    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .dashboard-body {
        padding: 20px;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .book-card img {
        height: 160px;
    }

    .book-index {
        max-height: 180px;
        overflow-y: auto;
    }

    .book-pdf {
        height: 450px;
    }

    .book-reader-section {
        height: 600px;
    }

    /* Toggle Button */

    .index-toggle {
        left: 10px;
        top: 10px;
        padding: 6px 10px;
        font-size: 13px;
        position: relative;
        display: inline-block;
        margin: 0 auto;
    }

    /* INDEX PANEL */

    .book-index {
        width: 200px;
        left: -250px;
        padding: 15px;
    }

    /* Chapter list */

    .book-chapters li {
        font-size: 14px;
        padding: 6px 0;
    }

}

/* =========================
SMALL MOBILE (max 480px)
========================= */

@media (max-width: 480px) {

    .logo-large {
        font-size: 40px;
    }

    .login-container {
        width: 90%;
        padding: 25px;
    }

    .book-info h2 {
        font-size: 20px;
    }

    .book-thumbnail {
        width: 120px;
    }

    .book-pdf {
        height: 350px;
    }

    .book-reader-section {
        height: 500px;
    }

    /* Toggle Button */

    .index-toggle {
        left: 10px;
        top: 8px;
        padding: 5px 10px;
        font-size: 12px;
        position: relative;
        display: inline-block;
        margin: 0 auto;
    }

    /* INDEX PANEL */

    .book-index {
        width: 180px;
        left: -250px;
    }

    /* Chapter text */

    .book-chapters li {
        font-size: 13px;
    }


}

/******************************************************** Responsive css end **********************************************************/

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.user-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}
.user-card h3 {
    margin: 0 0 10px;
}
.user-card p {
    margin: 5px 0;
}
.user-card .details-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}
.data-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}
.data-table tr:hover {
    background-color: #f9f9f9;
}
.data-table .action-link {
    color: #007bff;
    text-decoration: none;
}
.data-table .action-link:hover {
    text-decoration: underline;
}

.dropdown-box {
    margin-bottom: 15px;
}

.court-dropdown {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}