.bg-auth-image {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/background/bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav-link.active {
    background-color: rgb(73 133 89);
    border-radius: 4px;
    padding: 1px 6px;
}

body {
    overflow-x: hidden;
}

/* Desktop navbar links */
.navbar .d-lg-flex a.nav-link {
    margin-left: 1rem;
}

/* Mobile menu adjustments */
@media (max-width: 991.98px) {
    #layoutSidenav_content {
        padding-left: 0;
        top: 56px; /* navbar height */
    }
}


/* Card background and hover effect */
.menu-card {
    background: linear-gradient(135deg, rgb(4, 80, 95), rgb(4, 120, 140));
    transition: transform 0.3s, box-shadow 0.3s;
}

    .menu-card:hover {
        /*transform: translateY(-5px);*/
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

/* Breadcrumb styling */
.breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
}
/* Card hover lift */
.card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* Table hover */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Badge spacing */
.badge {
    font-size: 0.8rem;
    padding: 0.3em 0.5em;
}
/* Responsive adjustments */
@media (max-width: 767.98px) {
    .menu-card .card-body h3 {
        font-size: 1.2rem;
    }
}


/* Card hover effect */
.menu-pdf-card {
    /*transition: transform 0.3s, box-shadow 0.3s;*/
}

    .menu-pdf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

/* PDF container styling */
.pdf-book-container {
    background-color: #f8f9fa;
    overflow: auto;
    height: 250px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .menu-pdf-card .card-body button {
        width: 100%;
    }
}

#pdfRoot {
    width: 100%;
    height: 80vh;
    background: #ddd;
}

/* PageFlip container */
#pdfBook {
    width: 100%;
    height: 100%;
    background: white;
}

.pdf-book-container {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stf__parent,
.stf__wrapper,
.stf__block,
.stf-page {
    width: 100% !important;
    height: 100% !important;
}

    .stf-page canvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
    }


@media (max-width: 768px) {
    .pdf-container {
        max-height: 70vh;
    }
}


select.menu-select option {
    background: #222529 !important;
}

.page-link {
    background-color: #ffffff !important;
    border-color: #498559 !important;
    color: #488458 !important;
}

table, tbody, thead {
    text-align: center;
}

.card {
    backdrop-filter: blur(6px);
}

.bg-auth-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* semi-transparent dark overlay */
}

.frosted-card {
    position: relative;
    /* keep above overlay */
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Safari */
}

@media (max-width: 768px) {
    .bg-auth-image {
        background-position: top;
    }
}

.card {
    backdrop-filter: blur(5px);
}

.form-control {
    border-radius: 12px;
}

.btn-primary {
    border: none;
}

.dt-buttons {
    margin-bottom: 15px;
}

    /* Transparent DataTables buttons */
    .dt-buttons .dt-transparent-btn {
        background-color: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.5);
        color: #fff !important;
        /* text color */
        font-weight: 500;
        border-radius: 0.35rem;
        transition: all 0.2s;
    }

        /* Hover effect */
        .dt-buttons .dt-transparent-btn:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #fff !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
        }

/* Buttons container spacing */
.dt-buttons {
    margin-bottom: 15px;
}

/* Mobile size adjustments */
@media (max-width: 767.98px) {
    .dt-buttons .dt-transparent-btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}


.dt-buttons .btn {
    border-radius: 0.4rem;
    font-weight: 500;
    transition: all 0.2s;
}

    .dt-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }

@media (max-width: 767.98px) {
    .dt-buttons .btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}


/* crete form */
/* Input and select shadows */
.form-control.shadow-sm,
.form-select.shadow-sm,
.input-group.shadow-sm {
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus,
.input-group:focus-within {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(60, 179, 113, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.input-group-text {
    border-radius: 0.35rem;
}

.btn-gradient {
    background: linear-gradient(90deg, #4e9af1, #3cb371) !important;
    color: #fff !important; /* <- important to make text visible */
    border: none;
    font-weight: 500;
    border-radius: 0.35rem;
    transition: all 0.3s;
}

.page-link {
    background: #222529;
    border: 1px solid #000;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, #3cb371, #4e9af1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

    .btn-shadow:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

@media (max-width: 576px) {
    .card {
        margin: 20px 10px;
    }
}
