﻿
:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: white;
  color: #444444;
}

a {
  color: #4154f1;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 60px !important;
    padding: 25px 57px !important;
}
    #main a {
        display: block;
        margin: 12px 0;
        font-size: 11px;
        color: dodgerblue;
    }
        
        #main a:hover {
            color: #b30000;
            text-decoration: underline;
        }
@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
/* ----------- MAIN CARD CLEAN LOOK (MATCHES YOUR IMAGE) ----------- */

.card {
    border: none !important;
    background: transparent !important; /* No white box, same as image */
    box-shadow: none !important;
    margin: 0;
    padding: 0;
}

/* Card body spacing corrected */
.card-body {
    padding: 0 !important; /* remove unnecessary padding */
    margin-top: 10px;
    
}

/* Title styling (already correct, just tightening) */
.card-title {
    padding: 0 0 15px 0;
    font-weight: 500;
    color: #b30000 !important;
    font-size: 17px;
    margin: 0 0 25px 0;
    font-family: "Poppins", sans-serif;
}

.card-body h5.card-title + .btn-secondary {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background-color: #f2f2f2;
    color: #900c1f;
    border: none;
    padding: 0.35rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 1px 1px #bb5b59;
    white-space: nowrap;
}


/* Buttons look like plain text (same as image) */
.card .btn-link {
    padding: 0;
    margin-right: 30px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #c7c4c4; /* underline for each item */
    width: 25%;
    text-align: left;
}

    .card .btn-link:hover {
        color: #b30000 !important;
        text-decoration: none !important;
    }

/* Move buttons to the top-right area where the DataTables search control appears */
.card-body .dt-buttons {
    position: absolute;
    right: 16px; /* distance from right edge of the card */
    top: 80px; /* adjust this to line up with the search control */
    display: flex;
    gap: 4px;
    z-index: 20;
    white-space: nowrap;
}

    /* Pill button look to match the image */
    .card-body .dt-buttons .dt-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 36px; /* match search control height */
        padding: 6px 14px !important; /* pill padding */
        background: #ffffff !important; /* white pill */
        color: #900c1f !important; /* maroon text */
        border: 1px solid rgba(144, 12, 31, 0.12) !important;
        border-radius: 22px !important; /* pill radius */
        font-weight: 600 !important;
        font-size: 13px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        box-shadow: 0 1px 0 rgba(0,0,0,0.03) !important;
        transition: background-color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
    }

        /* Slight spacing when buttons are adjacent */
        .card-body .dt-buttons .dt-button + .dt-button {
            margin-left: 6px !important;
        }

        /* Subtle hover / focus states (keeps maroon theme) */
        .card-body .dt-buttons .dt-button:hover,
        .card-body .dt-buttons .dt-button:focus {
            background: rgba(144, 12, 31, 0.06) !important;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important;
            outline: none !important;
        }

        /* Active / pressed feedback */
        .card-body .dt-buttons .dt-button:active {
            transform: translateY(0) !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
        }

        /* If DataTables injects <span> inside, ensure spacing aligns */
        .card-body .dt-buttons .dt-button > span {
            display: inline-block;
            vertical-align: middle;
        }

/* Responsive: stack under filter on small screens */
@media (max-width: 767px) {
    .card-body .dt-buttons {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        position: static !important;
        justify-content: flex-end;
    }

        .card-body .dt-buttons .dt-button {
            height: 34px;
            padding: 6px 10px !important;
            font-size: 13px !important;
        }
}
@media (max-width: 576px) {
    .card-body h5.card-title + .btn-secondary {
        position: static;
        margin-top: 0.75rem;
        display: block;
        width: 50%;
        margin-left: auto; /* 🔑 pushes button to right */
        margin-right: 0;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}


/* When the DataTables wrapper is used, ensure filter is inline so placement looks correct */
.card-body .dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
}



/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
/* ---------- TAB STRIP ---------- */
.nav-tabs-bordered {
    border-bottom: 2px solid #ffffff !important;
    padding-left: 20px;
    margin-bottom: 20px;
}

    /* Each tab */
    .nav-tabs-bordered .nav-link {
        border: none !important;
        margin-right: 50px;
        padding: 6px 0;
        background: transparent !important;
        color: #747373 !important;
        font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        position: relative; /* needed for underline */
    }

        /* Hover */
        .nav-tabs-bordered .nav-link:hover {
            
        }

        /* Active tab */
        .nav-tabs-bordered .nav-link.active {
           
            background: transparent !important;
        }

            /* Centered underline */
            .nav-tabs-bordered .nav-link.active::after {
                content: "";
                position: absolute;
                bottom: -2px;
                left: 50%;
                transform: translateX(-50%);
                height: 2px;
                width: 90px; /* underline = text width */
                background-color: #b30000;
                border-radius: 2px;
            }
           
/* Shared anchor styles inside the tab pane */
/* Both links should have underline */
.tab-pane a {
    display: inline-block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    font-size: 14px !important;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
    color: #909090 !important;
    white-space: normal !important;
    word-break: break-word !important;
    position: relative !important;
    padding-bottom: 6px !important;
    text-decoration: none !important;
}

    /* Custom underline */
    .tab-pane a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px; /* controls underline position */
        width: 100%;
        height: 2px;
        background-color: #4154f1;
    }
    .tab-pane a:hover::after {
        background-color: #3249d7;
    }
    /* Optional: Hover effect (still keeps underline) */
    


    /* 1st item: Post Offered (label) */
   

        .tab-pane a:first-of-type::after {
            display: none;
        }
    /* 2nd item: Shortlisting Registered Students (blue link with constant underline) */
    .tab-pane a:nth-of-type(n+2) {
        color: #4154f1 !important;
        font-weight: 600 !important;
        border-bottom: 2px solid #4154f1 !important;
    }

        /* Hover effect */
        .tab-pane a:nth-of-type(n+2):hover {
            color: #3249d7 !important;
            border-bottom-color: #3249d7 !important;
        }

    /* First item: label (no underline) */
    .tab-pane a:first-of-type {
        color: #4a4a4a !important;
        font-weight: 500 !important;
        border-bottom: none !important;
    }

/* Replace .section-row grid with a compact, responsive flex layout */
/* Compact row + shorter centered underline to match image(4.png) */
/* Section row — left aligned (start of line) */
.section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    align-items: flex-start;
    justify-content: flex-start; /* ensure items start at left */
    margin-top: 20px;
}

.section-item {
    font-size: 15px;
    color: #5a0000;
    font-weight: 500;
    position: relative;
    display: inline-block; /* shrink-to-fit */
    padding-bottom: 8px;
    margin-bottom: 6px;
    white-space: normal; /* allow wrapping and start at left */
}

    /* Underline starts at text left and is shorter than full text */
    .section-item::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 180%; /* adjust length as needed */
        height: 1px;
        background: #c7c7c7;
        transform: none;
        pointer-events: none;
    }
@media (max-width: 991.98px) {
    /* make main/content stack vertically and fill width */
    .main-content,
    .tab-content,
    .tab-pane,
    .card,
    .card-body {
        width: 100% !important;
        box-sizing: border-box;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* stack bootstrap grid columns used in forms */
    form.row.g-3 {
        flex-direction: column !important;
    }

        form.row.g-3 > [class*="col-"] {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }

    /* make the card action links behave like block items in order */
    .card .btn-link,
    .tab-pane a {
        display: block !important;
        width: 100% !important;
        margin: 8px 0 !important;
        padding: 10px 12px !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    }

    /* datatable tools flow under content */
    .card-body .dt-buttons {
        position: static !important;
        margin-top: 8px !important;
        right: auto !important;
        top: auto !important;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* reduce sidebar impact on small screens */ 

}

@media (max-width: 575.98px) {
    /* further tighten spacing and stack everything one-by-one */
    .main-content,
    .card,
    .card-body {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .nav-tabs-bordered .nav-link {
        margin-right: 18px !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
    }

    .card .btn-link,
    .tab-pane a {
        padding: 10px 8px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    /* ensure datatable horizontal scrolling still available */
    .datatable-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* make small interactive elements easier to tap */
    .card .btn-link,
    .tab-pane a,
    .card-body .dt-buttons .dt-button {
        border-radius: 6px !important;
        padding: 10px 12px !important;
    }
}
/* -------------------- HEADER BASE -------------------- */
.header {
    background: #800001 !important;
    height: 50px !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    z-index: 999 !important;
}

    /* ----------- LOGO LEFT SECTION ----------- */
    .header .logo img {
        height: 44px !important;
        width: auto !important;
    }

    .header .logo span {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #fff !important;
        margin-left: 8px !important;
    }

.toggle-sidebar-btn {
    font-size: 26px !important;
    color: #fff !important;
    margin-left: 16px !important;
}

/* -------------------- SEARCH BAR -------------------- */
/* -------------------- SEARCH BAR (FULLY FORCED) -------------------- */
/* -----------------------------------
   RESET UL / LI DOTS
----------------------------------- */
.header-nav ul,
.header-nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* -----------------------------------
   FIX THE TOP HEADER
----------------------------------- */
.header.fixed-top {
    background: rgb(128, 0, 0) !important;
    height: 59px!important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    z-index: 2000 !important;
}

/* -----------------------------------
   LEFT LOGO + TITLE
----------------------------------- */
.header .logo img {
    height: 48px !important;
    width: auto !important;
}

.header .logo span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
}

.toggle-sidebar-btn {
    font-size: 26px !important;
    color: white !important;
    margin-left: 14px !important;
    display: none !important;
}

/* -----------------------------------
   SEARCH BAR — EXACT MATCH
----------------------------------- */
.header .search,
header .search {
    display: none !important;
}

/* Centered pill-style search bar */
.header .search,
header .search {
    display: none !important;
}
/* hide legacy .search from _Layout */

.search-bar {
    flex: 1 1 auto;
    min-width: 0; /* allow shrinking on small screens */
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 12px;
    box-sizing: border-box;
    z-index: 1500; /* keep above other header elements if needed */
}

    .search-bar .search-form {
        width: 100%;
        max-width: 720px; /* desktop width */
        height: 35px;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        padding: 0 12px;
        gap: 10px;
        box-sizing: border-box;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        
    }

        .search-bar .search-form input[type="text"],
        .search-bar .search-form input[type="search"] {
            flex: 1 1 auto;
            min-width: 0;
            border: none;
            outline: none;
            background: transparent;
            font-size: 14px;
            color: #222;
            padding: 6px 0;
        }

        /* submit button: icon-only round button */
        .search-bar .search-form button {
            background: transparent;
            border: none;
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #7A0000;
            border-radius: 50%;
            cursor: pointer;
            padding: 0;
        }

            /* use bootstrap-icons if available; fallback to visible <i> inside button */
            .search-bar .search-form button::after {
                content: "\F52A";
                font-family: "bootstrap-icons";
                font-size: 16px;
                color: #7A0000;
            }

            /* hover feedback */
           

/* Hide the mobile-only icon that creates the duplicate search (nav-item in header) */
.header-nav .search-bar-toggle,
.nav-item.d-block.d-lg-none {
    display: none !important;
}


/* -----------------------------------
   RIGHT NAV ICONS
----------------------------------- */
.header-nav {
    /* remove the bootstrap ms-auto push on the container */
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    
    flex-wrap: nowrap;
}

    .header-nav ul {
        display: flex;
        gap: 10px;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .header-nav .nav-item {
        margin: 0 !important;
        padding: 0 !important;
       
    }
    .header-nav .nav-item,
    .header-nav .nav-link,
    .icon-btn {
        margin-left: 6px;
        margin-right: 6px;
    }
   
   .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
   }
    .header-nav .nav-icon {
        color: #fff !important;
        font-size: 22px !important;
    }

    .header-nav .badge-number {
        position: absolute !important;
        top: -6px !important;
        right: -10px !important;
        font-size: 11px !important;
        padding: 2px 6px !important;
        border-radius: 50% !important;
    }

/* Push only the profile/avatar to the far right, creating space between icons and avatar */
.header-nav .nav-profile {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
    /* Optional: small visual tweak so avatar never touches the right edge */
    .header-nav .nav-profile .avatar-small {
        margin-right: 5px;
    }
/* -----------------------------------
   USER AVATAR + TEXT
----------------------------------- */
.nav-profile .avatar-small {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #fff !important;
    font-weight: 700 !important;
    color: #7A0000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
}

/* Remove underline + fix alignment */
.nav-profile {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
    color: #fff !important;
}

    .nav-profile .dropdown-toggle {
        color: #fff !important;
    }
/* ---------- PROFILE DROPDOWN CONTAINER ---------- */
.login-menu {
    width: 260px;
    border: none !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.18) !important;
    margin-top: 12px !important;
}

    /* ---------- RED HEADER AREA ---------- */
    .login-menu .menu-header {
        background: #900000 !important; /* Deep Red */
        color: #fff !important;
        padding: 20px 10px !important;
    }
   
    /* ---------- BIG CIRCLE AVATAR ---------- */
    .login-menu .avatar-large {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        color: #900000 !important;
        font-size: 40px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 10px auto !important;
    }

    /* ---------- NAME + EMAIL ---------- */
    .login-menu .menu-username {
        color: #fff !important;
        font-size: 1.1rem !important;
        margin-bottom: 3px !important;
    }

    .login-menu .menu-email {
        color: #f1f1f1 !important;
        font-size: .85rem !important;
    }

    /* ---------- WHITE BUTTON AREA ---------- */
    .login-menu .menu-actions {
        background: #ffffff !important;
        padding: 15px !important;
        text-align: center !important;
        border-top: 1px solid #e7e7e7 !important;
    }

    /* Style Sign Out button */
    .login-menu button.btn-danger {
        background: #900000 !important;
        border: none !important;
        color: white;
    }

/* -----------------------------------
   RESPONSIVE FIXES
----------------------------------- */
@media (max-width: 1024px) {
    .search-bar .search-form {
        max-width: 560px;
    }
}
@media (max-width: 991px) {
   

    .search-bar .search-form {
        max-width: 60%;
    }

    .header .logo span {
        max-width: 160px;
    }
}
@media (max-width: 800px) {
    .search-bar {
        margin: 0 8px;
    }

        .search-bar .search-form {
            max-width: none;
            width: calc(100% - 16px); /* small left/right gutters inside header */
            height: 36px;
            border-radius: 20px;
            padding: 0 10px;
            gap: 8px;
        }

    /* keep mobile icon hidden so only pill is shown */
    .header-nav .search-bar-toggle,
    .nav-item.d-block.d-lg-none {
        display: none !important;
    }
    /* keep notifications next to search on mobile too */
    .header-nav,
    .header-nav > ul {
        gap: 8px;
    }

        /* ensure avatar still moves to the right edge */
        .header-nav .nav-profile {
            margin-left: auto !important;
        }
}

    /* hides old/desktop search */

@media (min-width: 801px) {
    .nift-topbar .search {
        display: none !important;
    }
    /* hides mobile search on desktop */
}
@media (max-width: 640px) {
    .search-bar {
        display: none !important;
    }

    .header .logo span {
        max-width: 120px;
    }
}
@media (max-width: 480px) {
    .search-bar .search-form {
        width: calc(100% - 12px);
        height: 34px;
        border-radius: 18px;
    }

        .search-bar .search-form button {
            width: 32px;
            height: 32px;
        }

        .search-bar .search-form input {
            font-size: 13px;
        }
}


/* Profile dropdown alignment */
.login-menu {
    margin-top: 12px !important;
    width: 230px !important;
}

/* Larger avatar inside dropdown */
.avatar-large {
    width: 70px !important;
    height: 70px !important;
    background: #8b0000 !important;
    color: #fff !important;
    font-size: 34px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* -------------------- RESPONSIVE RULES -------------------- */

@media (max-width: 992px) {
    .search-bar {
        max-width: 100% !important;
    }
    .toggle-sidebar-btn {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .search-bar {
        display: flex !important; /* keep visible */
        width: 100% !important;
        justify-content: center !important;
    }

        .search-bar .search-form {
            width: 90% !important; /* auto fit */
            height: 38px !important;
        }

    .header {
        padding: 0 12px !important;
        overflow: visible;
        align-items: center;

    }

    .header-nav > ul {
        gap: 14px !important;
    }

    .header .logo span {
        display: inline-block;
        max-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .avatar-small {
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
    }
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
   
    background-color: #f6f5f5;
}

@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 300px;
    }
    .sidebar {
        left: 0 !important;
        transform: none !important;
        transition: left 240ms ease, transform 240ms ease !important;
    }

    /* Ensure content reserves space for the sidebar */
    #main, main, .content-area {
        margin-left: 300px !important; /* match .sidebar width */
        transition: margin-left 240ms ease !important;
    }

    /* If body has mobile toggle class, do not collapse desktop layout */
    .toggle-sidebar #main,
    .toggle-sidebar main,
    .toggle-sidebar .content-area,
    .toggle-sidebar #footer {
        margin-left: 300px !important;
    }

    /* Hide mobile overlay on desktop */
    .sidebar-overlay {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Clear no-scroll on desktop */
    body.no-scroll {
        overflow: visible !important;
        touch-action: auto !important;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

   
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

    .sidebar-nav li {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sidebar-nav .nav-item {
        margin-bottom: 5px;
    }

    .sidebar-nav .nav-heading {
        font-size: 11px;
        text-transform: uppercase;
        
        font-weight: 600;
        margin: 10px 0 5px 15px;
    }

    .sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        transition: 0.3s;
        padding: 10px 15px;
        color: #747373 !important;
        border-radius: 14px;
        overflow: hidden; /* clip inner backgrounds to the rounded corners */
        position: relative
    }

        .sidebar-nav .nav-link i {
            font-size: 16px;
            margin-right: 10px;
            
        }

        .sidebar-nav .nav-link.collapsed {
            color: #5f5f5f;
        }

            .sidebar-nav .nav-link.collapsed i {
                color: black;
            }
             
        .sidebar-nav .nav-link:hover {
            color: white !important;
            background: #7f3f3f !important;
            border-radius: 14px !important;
        }
        .sidebar-nav .nav-link .pill,
        .sidebar-nav .nav-link .nav-item-bg {
            border-radius: 14px;
            background-clip: padding-box; /* prevent background bleed on corners */
        }
        .sidebar-nav .nav-link:hover .pill,
        .sidebar-nav .nav-link:hover .nav-item-bg {
            background: transparent !important;
        }
            .sidebar-nav .nav-link:hover i {
                color: white;
                border-radius: 14px;
            }

        .sidebar-nav .nav-link .bi-caret-down-fill {
            margin-right: 0;
            transition: transform 0.2s ease-in-out;
        }

        .sidebar-nav .nav-link:not(.collapsed) .bi-caret-down-fill {
            transform: rotate(180deg);
        }

    .sidebar-nav .nav-content {
        padding: 5px 0 0 0;
        margin: 0;
        list-style: none;
    }

        .sidebar-nav .nav-content a {
            display: flex;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
            color: #012970;
            transition: 0.3s;
            padding: 10px 0 10px 40px;
            transition: 0.3s;
        }

            .sidebar-nav .nav-content a i {
                font-size: 6px;
                margin-right: 8px;
                line-height: 0;
                border-radius: 50%;
            }

            .sidebar-nav .nav-content a:hover,
            .sidebar-nav .nav-content a.active {
                color: #4154f1;
            }

                .sidebar-nav .nav-content a.active i {
                    background-color: #4154f1;
                }
    /* Sidebar collapse caret: left -> down */
    .sidebar-nav .nav-link .bi-caret-left-fill {
        transition: transform 220ms ease;
        transform-origin: 50% 50%;
        transform: rotate(0deg); /* initial: points left */
    }

    /* rotate to point down when expanded */
    .sidebar-nav .nav-link[aria-expanded="true"] .bi-caret-left-fill,
    .sidebar-nav .nav-link:not(.collapsed) .bi-caret-left-fill {
        transform: rotate(-90deg); /* down */
    }
/* ------------------------------
   ACTIVE DROPDOWN
------------------------------ */
.nav-content a {
    padding: 8px 30px !important;
    font-size: 13px !important;
    color: #555 !important;
}

    .nav-content a:hover {
        background: #ececec !important;
        color: #000 !important;
    }

    /* Remove the dot icon next to sub-items (bi-circle) */
    .nav-content a i {
        display: none !important;
    }

/* Divider fix */
.nav-content .dropdown-divider {
    margin: 4px 0 !important;
}



/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}
/* Allow datatables to scroll horizontally and prevent forced ellipsis so full content is visible */
.datatable-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Let table grow beyond container width so scrollbar appears when needed */
.datatable-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

    /* Prevent forced ellipsis/truncation on cells */
    .datatable-table th,
    .datatable-table td {
        white-space: nowrap;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
       
    }

/* Datatable — remove white cell backgrounds and divider lines,
   keep rounded grey container and add equal spacing top/bottom */
.datatable-wrapper .datatable-container,
#main .datatable-container {
    background-color: #f6f5f5 !important; /* container colour */
    border: 0 !important; /* remove outer border line */
    box-shadow: none !important;
    padding: 18px 14px !important; /* more top/bottom space */
    overflow-x: auto !important;
}

/* Make the table and all parts transparent and remove borders */
.datatable-container table.datatable-table,
.datatable-container table.datatable-table thead,
.datatable-container table.datatable-table tbody,
.datatable-container table.datatable-table tr,
.datatable-container table.datatable-table th,
.datatable-container table.datatable-table td {
    border: 1px solid #e6e4e4 !important; /* light grey grid line */
    background: transparent !important;
    font-size: 11px ;
    font-family: Arial;
    
    
}



.datatable-container table.datatable-table {
    width: 100% !important; /* full width */
    min-width: 100% !important; /* ensures no gap on left/right */
    border-collapse: collapse !important;
}
    /* Remove header underline / separators added by plugin */
    .datatable-container table.datatable-table > thead > tr > th {
        background: transparent !important;
        border-bottom: none !important;

    }

    /* Remove row separators and zebra backgrounds */
    .datatable-container table.datatable-table > tbody > tr,
    .datatable-container table.datatable-table > tbody > tr > td {
        background: transparent !important;
        border-bottom: none !important;
        
    }

        /* Keep a subtle hover visual without adding lines */
        .datatable-container table.datatable-table > tbody > tr:hover > td {
            background: rgba(0,0,0,0.03) !important;
            
        }

/* Make header / cell vertical spacing consistent so top and bottom gaps match */
.datatable-table > thead > tr > th,
.datatable-table > tbody > tr > td {
    padding-top: 12px;
    padding-bottom: 12px;
   
}

/* Defensive: hide any injected pseudo-elements or plugin track lines */
.datatable-wrapper .datatable-container::before,
.datatable-wrapper .datatable-container::after,
#main .datatable-container::before,
#main .datatable-container::after {
    display: none !important;
}

    /* Keep table cells transparent so container background shows */
    .datatable-wrapper .datatable-container table.datatable-table,
    #main .datatable-container table.datatable-table {
        background: transparent;
        margin: 0;
        /* remove forced min-width if you want table to flow inside the padded container */
        min-width: 0;
    }

/* Ensure the top/bottom datatable bars align visually (optional) */
#main .datatable-top,
#main .datatable-bottom {
    padding-left: 0;
    padding-right: 0;
}

/* WebKit / Blink browsers (Chrome, Edge, Safari) */
.datatable-container::-webkit-scrollbar {
    height: 12px;
}

.datatable-container::-webkit-scrollbar-button {
    display: none; /* hide arrow buttons */
    width: 0;
    height: 0;
}

.datatable-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03); /* subtle light track */
    border-radius: 999px;
    margin: 0 6px; /* visually reduce track length near edges */
}

.datatable-container::-webkit-scrollbar-thumb {
    background: rgba(179, 0, 0, 0.18); /* maroon-tinted thumb */
    border-radius: 999px;
    min-width: 40px;
    border: 3px solid rgba(255,255,255,0.92); /* creates a small gap so no visible line appears */
}

/* Corner area (no background) */
.datatable-container::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
.datatable-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(179, 0, 0, 0.18) rgba(0, 0, 0, 0.03);
}

    /* Library-specific scroll arrows/buttons (defensive) */
    .datatable-container .datatable-scroll-button,
    .datatable-container .dt-scroll-button,
    .datatable-container .scroll-arrow {
        display: none !important;
    }

/* Make the table respect the container width and avoid forcing layout outside it */
#main table.datatable-table {
    width: 100%;
    min-width: 640px; /* allow horizontal scrolling on small screens; adjust if needed */
    table-layout: auto; /* preserve natural column widths when possible */
    box-sizing: border-box;
}

    /* Prevent cells from expanding table beyond container - show ellipsis for long text */
    #main table.datatable-table th,
    #main table.datatable-table td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 1px; /* allows ellipsis to take effect with table-layout:auto */
    }

/* Align top/bottom datatable bars with the same gutters */
#main .datatable-top,
#main .datatable-bottom {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
/* Datatable text colors: header (maroon) and body (muted grey) */
.datatable-container table.datatable-table thead th,
#main table.datatable-table thead th {
    color: #5f5f5f !important; 
    font-weight: 600; /* optional: keep headers prominent */

}

    /* Ensure header links/sort controls inherit header color */
    .datatable-container table.datatable-table thead th a,
    #main table.datatable-table thead th a,
    .datatable-container table.datatable-table thead th .datatable-sorter,
    #main table.datatable-table thead th .datatable-sorter {
        color: #922727 !important;
        opacity: 1 !important;
      
    }

/* Table body text color */
.datatable-container table.datatable-table tbody td,
#main table.datatable-table tbody td {
    color: #1e1e1e !important;
    font-weight: 400;
}


.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Remove sorter/filter pseudo-elements if plugin uses them */
.datatable-sorter::before,
.datatable-sorter::after,
.datatable-filter::before,
.datatable-filter::after {
    content: none !important;
    display: none !important;
    
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}
.panel {
    width: 100% !important; /* make this panel full width */
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
    box-sizing: border-box;
}

    .panel form {
        width: 100% !important; /* ensure form inside also spans full width */
    }
form.row.g-3 {
    display: flex; /* restore bootstrap */
    flex-wrap: wrap;
}

/* =========================
   LABELS
========================= */
.card .card-body .form-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

/* =========================
   INPUTS & SELECTS
========================= */
.form-control,
.form-select {
    border-radius: 6px;
    height: 38px;
    font-size: 12px;
}

textarea.form-control {
    height: auto;
    font-size: 12px;
}

/* =========================
   DEPARTMENT CHECKBOX GRID
========================= */
.card .card-body .row.g-3 > .col-md-4 {
    display: flex;
    align-items: center;
}

.form-check {
    padding-left: 1.5em;
    font-size: 13px;
}

.form-check-input {
    margin-top: 0.2em;
}

/* =========================
   TABLE STYLES
========================= */
.card .card-body .table-responsive {
    overflow-x: auto;
    margin-top: 8px;
}



    .card .card-body table.table th,
    .card .card-body table.table td {
        border: 1px solid #e9ecef;
        padding: 10px;
        vertical-align: top;
    }

    .card .card-body table.table th {
        background: #f7f7f7;
        font-weight: 700;
        white-space: nowrap;
        font-size: 13px;
    }

        /* Sl.No column */
        .card .card-body table.table th:first-child,
        .card .card-body table.table td:first-child {
            width: 50px;
            text-align: center;
            background: #f3f3f3;
            font-size: 13px;
        }

/* =========================
   BUTTONS
========================= */
.card .card-body .btn-primary {
    background-color: transparent !important;
    border-color: transparent !important;
    color: limegreen;
    padding: 4px 6px !important;
    font-weight: 600;
}
 
    .text-center .btn-primary {
        background-color: #de4a7b;
        border-color: #00acd6;
    }
.card .card-body .btn-primary:hover {
    background: #487d04;
    border-color: #487d04;
}
.btn-danger {
    background-color: transparent !important;
    border-color: transparent !important;
    padding: 4px 6px !important; 
    font-weight: 600;
}
    .btn-danger .bi-trash-fill {
        background-color: transparent !important;
        border-color: transparent !important;
        color: red !important;
        padding: 4px 0px !important;
        font-weight: 600;
    }
/* =========================
   SPACING FIX (MATCH IMAGE)
========================= */
.card .card-body .col-md-12 {
    margin-top: 8px;
}
  

/* =========================
   Submit / Cancel buttons
   Align side-by-side (right)
========================= */
.card .card-body .text-center {
    text-align: left !important;
}

    .card .card-body .text-center .btn {
        display: inline-block;
        margin-left: 8px;
    }
.card .card-body button.btn.btn-primary.me-2 {
    background-color: #de4a7b !important;
    border-color: #de4a7b !important;
    color: #fff !important;
    padding: 4px 6px !important;
    font-weight: 600;
}
 
/* Desktop (≥ 992px) → 3 columns */
@media (min-width: 992px) {
    form .row.g-3 > .col-md-6 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
/* ============================= */
/* PROFILE DROPDOWN – CUSTOM UI */
/* ============================= */

/* Dropdown container */
.profile.dropdown-menu {
    width: 280px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}


.dropdown-menu-arrow::before {
    border-bottom-color: #8b0000 !important;
}
.profile.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ============================= */
/* HEADER (MAROON AREA) */
/* ============================= */
.profile .dropdown-header {
    background: #8b0000 !important;
    color: #ffffff !important;
    padding: 20px 15px !important;
    text-align: center !important;
}

    /* Username */
    .profile .dropdown-header h6 {
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
        text-transform: lowercase !important;
    }

    /* Role text */
    .profile .dropdown-header span {
        font-size: 13px !important;
        color: #f2f2f2 !important;
    }

/* ============================= */
/* PROFILE IMAGE */
/* ============================= */
.nav-profile img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
}
.nav-item.dropdown {
    position: relative !important;
    
}
.nav-item.dropdown > a::after,
.nav-item.dropdown > a.dropdown-toggle::after,
.nav-profile::after {
    display: none !important;
    content: none !important;
}
   
/* ===================================== */
/* PROFILE IMAGE INSIDE DROPDOWN */
/* ===================================== */

.dropdown-profile-img {
    width: 64px !important; /* small size */
    height: 64px !important; /* same as width */
    border-radius: 50% !important;
    object-fit: cover !important; /* crops image properly */
    display: block !important;
    margin: 0 auto 10px auto !important;
    border: 3px solid #ffffff !important;
    background-color: #ffffff !important;
}
/* ================================================= */
/* FORCE SMALL PROFILE IMAGE INSIDE DROPDOWN */
/* ================================================= */

.profile .dropdown-header img,
.profile .dropdown-header .dropdown-profile-img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 8px auto !important;
    border: 3px solid #ffffff !important;
    background: #ffffff !important;
}

.header .nav-link::after {
    display: none !important;
    content: none !important;
}
/* ============================= */
/* DIVIDERS */
/* ============================= */
.profile .dropdown-divider {
    margin: 0 !important;
    opacity: 0.2 !important;
}

/* ============================= */
/* DROPDOWN ITEMS */
/* ============================= */
.profile .dropdown-item {
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: background 0.2s ease !important;
}

    /* Icons */
    .profile .dropdown-item i {
        font-size: 18px !important;
        margin-right: 10px !important;
        color: #8b0000 !important;
    }

    /* Hover effect */
    .profile .dropdown-item:hover {
        background: #f6f6f6 !important;
        color: #000 !important;
    }

    /* ============================= */
    /* SIGN OUT BUTTON STYLE */
    /* ============================= */
    .profile .dropdown-item .bi-box-arrow-right {
        color: #8b0000 !important;
    }
.nav-item.dropdown > a {
    pointer-events: auto !important;
}
.nav-item.dropdown .profile.dropdown-menu {
    position: absolute !important;
    inset: auto auto auto auto !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    will-change: auto !important;
   
    margin-top: 8px !important;
}



/* ============================= */
/* MOBILE FIX */
/* ============================= */
@media (max-width: 576px) {
    .profile.dropdown-menu {
        width: 100% !important;
    }
}
.dataTables_wrapper .dataTables_paginate {
    flex-wrap: nowrap
}
.paginate_button {
   display: inline-block !important;
}

