/********** Template CSS **********/

:root {
    --primary: #EB1616;
    --secondary: #191C24;
    --light: #9f9fa2;
    --dark: linear-gradient(135deg, #470707 0%, #2e0f0f 50%, #000000 100%);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/* Custom scrollbar for sidebar */

.sidebar::-webkit-scrollbar {
    width: 8px;
    /* scrollbar width */
}

.sidebar::-webkit-scrollbar-track {
    background: #343a40;
    /* dark gray track */
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #631f1f;
    /* beautiful green thumb */
    border-radius: 4px;
    border: 2px solid #343a40;
    /* optional: spacing around thumb */
}


/* Firefox scrollbar */

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #631f1f #343a40;
}


/*** Spinner ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/

.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(29, 9, 9));
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }
    .sidebar.open {
        margin-left: -250px;
    }
    .content {
        width: calc(100% - 250px);
    }
    .content.open {
        width: 100%;
        margin-left: 0;
    }
}


/* Small device sidebar: slide from left, but start below header */

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 60px;
        /* height of navbar */
        left: -250px;
        /* hide to the left initially */
        width: 250px;
        height: calc(100vh - 60px);
        /* full height minus header */
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 999;
    }
    .sidebar.open {
        left: 0;
        /* slide in from left */
    }
    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/

.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/

.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}

.bg-secondary {
    background: linear-gradient(45deg, #4f0000, #000000);
    /* red → light red → black */
    color: #ffffff;
    /* text color */
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-secondary2 {
    background: linear-gradient(135deg, #3e0e0e, #3c1111, #000000);
    /* red → light red → black */
    color: #ffffff;
    /* text color */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary p,
.bg-secondary span {
    color: #fff !important;
    /* make all text inside readable */
}


/* Sidebar polish */

.sidebar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #4f0000, #000000);
    /* red → light red → black */
    /* border-top-right-radius: 12px;
    border-bottom-right-radius: 12px; */
}


/* Header polish */

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Greatness branding responsive */

.navbar-brand h3 {
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .navbar-brand h3 {
        display: block;
        text-align: center;
        margin-top: 8px;
        font-size: 20px;
    }
}

/* Keep modal styles untouched */
.modal-content.bg-secondary {
    background: linear-gradient(45deg, #4f0000, #000000);
    color: #ffffff;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: none; /* Prevent interfering with Bootstrap modal animations */
}

/* Hover effect only for non-modal .bg-secondary */
.bg-secondary.custom-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-secondary.custom-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}



