/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    background: #f6f9ff;
    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-menu {
    margin-top: 60px;
    padding: 20px 30px;
    transition: all 0.3s;
}

@media (max-width: 1199px) {
    #main-menu {
        padding: 20px;
    }
}

#main {
    margin-top: 60px;
    padding: 20px 30px;
    transition: all 0.3s;
}

@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: #8A5DB4;
    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: #b97af3;
    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.3s;
    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 */
.card {
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}
.card-header{
    font-weight : bold;
    text-transform : uppercase;
    margin-bottom : 10px
}

.card-header,
.card-footer {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
}

.card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #012970;
    font-family: "Poppins", sans-serif;
}
.btn{
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary{
    background-color: #4f2078;
    border-color :#4f2078;
}

.btn-primary:hover {
    background-color: #9059c1;
    border-color: #9059c1;
}

.btn-primary:active {
    background-color: #7a45ad; /* slightly darker maybe */
    border-color: #7a45ad;
}
.card-title span {
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
}

.card-body {
    padding: 0 20px 20px 20px;
}

.card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
}

/* 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: #9059c1;
    background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
    padding: 15px 0;
    background: none;
    border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: #9059c1;
}

.accordion-flush .accordion-body {
    padding: 0 0 15px 0;
    color: #3e4f6f;
    font-size: 15px;
}


/* Breadcrumbs */
.breadcrumb {
    font-size: 12px;
    font-family: "Open Sans", sans-serif;
    color: #899bbd;
}

.breadcrumb a {
    color: #899bbd;
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
    color: #899bbd;
}

.breadcrumb .active {
    color: #51678f;
}

/* Bordered Tabs */
.nav-tabs-bordered {
    border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
    margin-bottom: -2px;
    border: none;
    color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
    color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
    background-color: #fff;
    color: #4154f1;
    border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
}

@media (min-width: 1200px) {
    .logo {
        width: 280px;
    }
}

.logo img {
    max-height: 200px;
    margin-right: 6px;
}

.logo-header img {
    max-height: 40px;
    margin-right: 6px;
}

.logo span {
    font-size: 26px;
    font-weight: 700;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
    background-color: #4f2078;
    padding-left: 20px;
    border-bottom: 5px solid #8A5DB4
    /* Toggle Sidebar Button */
    /* Search Bar */
}

.header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: #012970;
}

.header .search-bar {
    min-width: 360px;
    padding: 0 20px;
}

@media (max-width: 1199px) {
    .header .search-bar {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
        background: white;
        z-index: 9999;
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
    }

    .header .search-bar-show {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }
}

.header .search-form {
    width: 100%;
}

.header .search-form input {
    border: 0;
    font-size: 14px;
    color: #012970;
    border: 1px solid rgba(1, 41, 112, 0.2);
    padding: 7px 38px 7px 8px;
    border-radius: 3px;
    transition: 0.3s;
    width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
    border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
    border: 0;
    padding: 0;
    margin-left: -30px;
    background: none;
}

.header .search-form button i {
    color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
}

.header-nav > ul {
    margin: 0;
    padding: 0;
}

.header-nav .nav-icon {
    font-size: 22px;
    color: #012970;
    margin-right: 25px;
    position: relative;
}

.header-nav .nav-profile {
    color: #012970;
}

.header-nav .nav-profile img {
    max-height: 36px;
}

.header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
}

.header-nav .badge-number {
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
}

.header-nav .notifications {
    inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .notifications .notification-item:hover {
    background-color: #f6f9ff;
}

.header-nav .messages {
    inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .messages .message-item a {
    display: flex;
}

.header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
}

.header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444444;
}

.header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .messages .message-item:hover {
    background-color: #f6f9ff;
}

.header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: #444444;
}

.header-nav .profile .dropdown-header span {
    font-size: 14px;
}

.header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
    background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 270px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
}

@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: 270px;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}

.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;
    color: #899bbd;
    font-weight: 600;
    margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    /*font-weight: 600;*/
    color: #012970;
    transition: 0.3;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 10px;
    color: #899bbd;
}

.sidebar-nav .nav-link.collapsed {
    color: #8A5DB4;
    background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-link:hover {
    color: #012970;
    /*background: #8A5DB4;*/
}

.sidebar-nav .nav-link:hover i {
    color: #8A5DB4;
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
    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;
    padding: 8px 0 8px 25px;
    transition: 0.3s;
    border-bottom: 1px solid #e5e5e5
}

.sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
}

.sidebar-nav .nav-content a:hover {
    color: #8A5DB4;
    /*background: #8A5DB4;*/
    border-radius: 4px;
}

.sidebar-nav .nav-content a.active {
    color: #ffffff;
    background: #8A5DB4;
    border-radius: 4px;
}

.sidebar-nav .nav-content a.active i {
    background-color: white;
}

/*--------------------------------------------------------------
# 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;
}

.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);
    }
}

/*--------------------------------------------------------------
# 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;
}

/*--------------------------------------------------------------
# Table
--------------------------------------------------------------*/

.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    background: #b8bab8;
    height: 40px;
    vertical-align: middle;
    color: white;
}

.table tbody tr td{
    font-size: 13px;
}

/*MODAL*/
.form-check-input {
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
}

.form-label {
    font-weight: bold;
    /*text-transform: uppercase;*/
    font-size: 13px;
}

/*Datatables*/

.dataTables_wrapper {
    position: relative;
}

.dataTables_length {
    border: 0px solid #ddd;
    border-bottom: 0;
    padding-top: 5px;
}

.dataTables_paginate {
    padding: 8px;
}

/*.dataTables_length, .dataTables_paginate { -moz-box-shadow: inset 0 1px 0 #fff; -webkit-box-shadow: inset 0 1px 0 #fff; box-shadow: inset 0 1px 0 #fff; }*/
.dataTables_wrapper select {
    background: #fff;
    padding: 5px;
    border: 1px solid #bbb;
    margin: 0;
    outline: none;
    font-size: 11px;
    color: #666;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    margin: 0 5px;
}

.dataTables_wrapper input {
    border: 1px solid #ddd;
    padding: 7px 5px 8px 5px;
    width: 200px;
    background: #fff;
}

.dataTables_filter {
    position: absolute;
    top: 7px;
    right: 8px;
}

.dataTables_info {
    position: absolute;
    bottom: 5px;
    left: 40%;
    right: 40%;
    margin-top: -15px;
    font-size: 9px
}

.dataTables_paginate {
    text-align: right;
    height: 15px;
}

.dataTables_paginate span {
    display: inline-block;
}

.dataTables_paginate .paginate_button {
    border: 1px solid #ccc;
    padding: 7px 7px;
    margin-left: 5px;
    font-weight: bold;
    background: #fcfcfc;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    font-size: 9px;
    /*-moz-box-shadow: 1px 1px 2px #ddd;
    -webkit-box-shadow: 1px 1px 2px #ddd;
    box-shadow: 1px 1px 2px #ddd;*/
}

.dataTables_paginate .paginate_active {
    border: 1px solid #ddd;
    background: #ddd;
    color: #fff;
    padding: 7px 7px;
    margin-left: 5px;
    font-weight: bold;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    font-size: 9px;
}

.dataTables_paginate .paginate_button:hover {
    background: #ddd;
    border: 1px solid #ccc;
    cursor: pointer;
    color: #333;
}

input.hasDatepicker {
    background-image: url(../../images/icons/calendar.png) !important;
    background-repeat: no-repeat !important;
    background-position: 5px 10px !important;
    padding-left: 50px !important;
    width: 195px !important;
}

/** DATE PICKER **/
.ui-datepicker { background: #fff; border: 1px solid #ccc; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; }
.ui-datepicker {
    z-index: 100 !important; display: none; padding: 5px; margin-top: 1px; -moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.1); box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.ui-datepicker-header {
    position: relative; text-align: center; background: #ccc; padding: 5px; color: #333; font-weight: bold; border-bottom: 1px solid #ccc;
}
.ui-datepicker-calendar { border-collapse: collapse; border: 1px solid #ccc; border-top: 0; background: #fff; }
.ui-datepicker-calendar thead th { font-weight: normal; font-size: 10px; text-transform: uppercase; color: #666; }
.ui-datepicker-calendar thead th { background: url(../../images/thead.png) repeat-x top left; border-bottom: 1px solid #ccc; }
.ui-datepicker-calendar td { border-left: 1px solid #ccc; border-top: 1px solid #ccc; text-align: right; }
.ui-datepicker-calendar td { padding: 1px; background: #fff; }
.ui-datepicker-calendar td a { display: block; padding: 2px 8px; color: #666; text-shadow: 1px 1px #f7f7f7; }
.ui-datepicker-calendar td a:hover { background: #ccc; text-decoration: none; color: #333; }
.ui-datepicker-calendar td:first-child { border-left: 1px solid #ccc; }
.ui-datepicker-prev, .ui-datepicker-next { display: inline-block; width: 14px; height: 14px; }
.ui-datepicker-prev span, .ui-datepicker-next span { display: none; }
.ui-datepicker-prev { cursor: pointer; position: absolute; top: 5px; left: 5px; background: url(../../images/calarrow.png) no-repeat 3px -39px; }
.ui-datepicker-next { cursor: pointer; position: absolute; top: 5px; right: 5px; background: url(../../images/calarrow.png) no-repeat 3px 1px; }

.ui-datepicker-inline { padding: 0; background: #fff; }
.ui-datepicker-inline .ui-datepicker-calendar { width: 100%; border: 0; }
.ui-datepicker-inline .ui-datepicker-calendar td { border-left: 1px solid #ddd; border-top: 1px solid #ddd; text-align: right; }
.ui-datepicker-inline .ui-datepicker-header {
    position: relative; text-align: center; padding: 5px; background: #eee; color: #333; border-bottom: 1px solid #ddd;
    font-weight: bold;
}
.ui-datepicker-inline .ui-datepicker-calendar thead th {
    font-weight: normal; font-size: 10px; text-transform: uppercase; color: #666; font-weight: bold;
    background: url(../../../images/titlebg.png) repeat-x top left; border-bottom: 1px solid #ccc;
}
.ui-datepicker-calendar td.ui-datepicker-today a { background: #FB9337; color: #fff; text-shadow: none; }


/*style for filter, search, export on header index*/
/* reusable header content */
.content-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;   /* sama dengan gap-2 */
    padding-bottom: 0.5rem; /* sama dengan pb-2 */
}

/* left (search & filter) */
.content-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* right (button group) */
.content-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* end style for filter, search, export on header index*/

/* pastikan remixicon.css sudah di-include di <head> */

.btn-filter-show::before {
    font-family: "remixicon";
    content: "\ed23";          /* unicode for ri-filter-2-line */
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.btn-filter-hide::before {
    font-family: "remixicon";
    content: "\ed22";          /* unicode for ri-filter-2-fill */
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.btn-filter-hide {
    background-color: rgb(108, 117, 125);
    color: #fff;
}

.btn-export::before {
    font-family: "remixicon";
    content: "\ecdc";          /* unicode for ri-file-excel-2-fill */
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.form-filter {
    border: 1px solid #b2aeae;
    margin-left: 10px;
    border-radius: 5px;
    display: none;
}
/* Override base chosen container */
.chosen-container {
    position: relative;
    display: inline-block;
    width: auto;
    min-width: 200px; /* Adjust this value as needed */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Single select styling - match form-select */
.chosen-container-single .chosen-single {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    width: 100%;
    min-width: inherit;
    height: auto;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

/* Remove default chosen arrow */
.chosen-container-single .chosen-single div {
    display: none;
}

/* Default text color */
.chosen-container-single .chosen-default {
    color: var(--bs-body-color);
    opacity: 0.65;
}

/* Text span styling */
.chosen-container-single .chosen-single span {
    display: block;
    overflow: hidden;
    margin-right: 2.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

/* Focus state - match form-select focus */
.chosen-container-active .chosen-single {
    border-color: #BFA4D6;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(191, 164, 214, 0.25);
}

/* Dropdown styling */
.chosen-container .chosen-drop {
    position: absolute;
    top: 100%;
    left: -9999px;
    z-index: 1010;
    width: 100%;
    min-width: 100%;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-top: 0;
    background: var(--bs-body-bg);
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    box-sizing: border-box;
}

.chosen-container.chosen-with-drop .chosen-drop {
    left: 0;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m8 1 6 6-6 6'/%3e%3c/svg%3e");
}

/* Search input styling */
.chosen-container-single .chosen-search {
    position: relative;
    z-index: 1010;
    margin: 0;
    padding: 0.5rem;
    white-space: nowrap;
}

.chosen-container-single .chosen-search input[type="text"] {
    width: 100%;
    padding: 0.375rem 0.75rem;
    margin: 0;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 1rem;
    line-height: 1.5;
    outline: 0;
    box-sizing: border-box;
}

.chosen-container-single .chosen-search input[type="text"]:focus {
    border-color: #BFA4D6;
    box-shadow: 0 0 0 0.25rem rgba(191, 164, 214, 0.25);
}

/* Results styling */
.chosen-container .chosen-results {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    max-height: 240px;
    -webkit-overflow-scrolling: touch;
}

.chosen-container .chosen-results li {
    display: none;
    margin: 0;
    padding: 0.5rem 0.75rem;
    list-style: none;
    line-height: 1.5;
    color: var(--bs-body-color);
}

.chosen-container .chosen-results li.active-result {
    display: list-item;
    cursor: pointer;
}

.chosen-container .chosen-results li.active-result:hover,
.chosen-container .chosen-results li.highlighted {
    background-color: #f8f9fa;
    color: var(--bs-body-color);
}

.chosen-container .chosen-results li.disabled-result {
    display: list-item;
    color: var(--bs-secondary-color);
    cursor: default;
}

.chosen-container .chosen-results li.no-results {
    display: list-item;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

.chosen-container .chosen-results li.group-result {
    display: list-item;
    font-weight: 600;
    cursor: default;
    color: var(--bs-body-color);
}

.chosen-container .chosen-results li.group-option {
    padding-left: 1.5rem;
}

.chosen-container .chosen-results li em {
    font-style: normal;
    text-decoration: underline;
}

/* Multi-select styling */
.chosen-container-multi .chosen-choices {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0.25rem 0.75rem;
    width: 100%;
    min-height: calc(1.5em + 0.75rem + 2px);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    cursor: text;
    box-sizing: border-box;
    font-size: 0.875rem;

}

.chosen-container-multi .chosen-choices li {
    float: left;
    list-style: none;
}

.chosen-container-multi .chosen-choices li.search-field {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    margin: 1px 0;
    padding: 0.125rem 0.25rem;
    height: auto;
    outline: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bs-body-color);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    border-radius: 0;
}

.chosen-container-multi .chosen-choices li.search-choice {
    position: relative;
    margin: 0.125rem 0.25rem 0.125rem 0;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    line-height: 1.5;
    cursor: default;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
    display: block;
    width: 1rem;
    height: 1rem;
    background: none;
    color: var(--bs-secondary-color);
    font-size: 1rem;
    cursor: pointer;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
    content: "×";
    display: block;
    text-align: center;
    line-height: 1;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
    color: var(--bs-danger);
}

/* Active state for multi-select */
.chosen-container-active .chosen-choices {
    border-color: #BFA4D6;
    box-shadow: 0 0 0 0.25rem rgba(191, 164, 214, 0.25);
}

/* Disabled state */
.chosen-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.chosen-disabled .chosen-single,
.chosen-disabled .chosen-choices {
    background-color: var(--bs-secondary-bg);
    cursor: not-allowed;
}

/* Dark theme support */
[data-bs-theme=dark] .chosen-container-single .chosen-single,
[data-bs-theme=dark] .chosen-container-active.chosen-with-drop .chosen-single {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

[data-bs-theme=dark] .chosen-container-active.chosen-with-drop .chosen-single {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m8 1 6 6-6 6'/%3e%3c/svg%3e");
}

/* Remove transition for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .chosen-container-single .chosen-single,
    .chosen-container-single .chosen-search input[type="text"] {
        transition: none;
    }
}

.form-sm > .chosen-single {
    padding: .25rem .5rem !important;
}

.form-sm .chosen-container-single a.chosen-single>span {
    font-size: 14px;
}

/*pos style*/
.qty-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: #f2f2f2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.qty-btn:hover {
    background: #333;
    color: #fff;
}

.scanner-container {
     position: relative;
     max-width: 420px;
     margin: 10px auto;
     background: white;
     border-radius: 10px;
     box-shadow: 0 2px 10px rgba(0,0,0,0.1);
     overflow: hidden;
 }

.scanner-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-align: center;
    padding: 15px;
    position: relative;
}

.scanner-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

#scanner {
    width: 100%;
    height: 280px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 120px;
    border: 3px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.scanner-overlay::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
}

.scanner-guide {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 15px;
}

.scanner-controls {
    padding: 20px;
    text-align: center;
    background: white;
}

.control-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.manual-input {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}


.scan-result {
    margin: 15px 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scan-result.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.scan-result.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.scan-result.info {
    background: linear-gradient(135deg, #cce7ff, #b3d9ff);
    border: 1px solid #b3d9ff;
    color: #004085;
}

.product-info {
    background: linear-gradient(135deg, #e7f3ff, #cce7ff);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 20px;
    border-left: 4px solid #007bff;
    animation: slideIn 0.3s ease;
}

.product-info h4 {
    margin: 0 0 10px 0;
    color: #007bff;
    font-size: 16px;
}

.product-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.product-info .adding-indicator {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 8px;
    z-index: 20;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.camera-permissions {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 20px;
    text-align: center;
}

.camera-permissions i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.flash-on {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    animation: flashPulse 1s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 15;
}

.status-indicator.scanning {
    background: rgba(40,167,69,0.9);
}

.status-indicator.stopped {
    background: rgba(220,53,69,0.9);
}

 .grid-container {
     width: 100%;
     max-width: 650px;
 }

.grid {
    display: grid;
    gap: 15px;
    width: 100%;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-image {
    margin-bottom: 10px;
}

.photo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.truncated-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.photo-layout {
    display: flex;
    gap: 1.5rem;
}

.photo-section {
    flex-grow: 1;
    border-right: 1px solid #ddd;
    padding-right: 1rem;
}

.filter-section {
    min-width: 250px;
}

.filter-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 767px) {
    .photo-layout {
        flex-direction: column-reverse;
    }

    .photo-section {
        border: none;
        padding: 0;
    }

    .filter-section {
        border: none;
        padding: 0;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-image img {
        height: 140px;
    }

    .card-header .btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    #pagination-info {
        font-size: 12px;
    }
    .filter-dropdown-group {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .filter-dropdown-group  {
        flex: 1;
        margin-bottom: 0 !important;
    }

    #filter-section input {
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-layout {
        gap: 1rem;
    }

    .photo-section {
        border-right: 1px solid #ddd;
    }
}

@media (min-width: 992px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-section {
        padding-right: 1.5rem;
    }
}

#calendar {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

/* Default toolbar */
.fc-toolbar.fc-header-toolbar {
    flex-wrap: wrap;
    gap: 8px;
}
.fc-toolbar-title {
    font-size: 1.25rem;
}

/* Mobile: custom layout */
@media (max-width: 768px) {
    .fc-toolbar.fc-header-toolbar {
        display: grid !important;
        grid-template-areas:
            "nav"
            "views"
            "title";
        gap: 4px;
        justify-items: center;
        text-align: center;
        justify-content: center;
    }

    .fc-toolbar-chunk:nth-child(1) {
        grid-area: nav;
    }
    .fc-toolbar-chunk:nth-child(2) {
        grid-area: title;
    }
    .fc-toolbar-chunk:nth-child(3) {
        grid-area: views;
    }

    .fc .fc-toolbar-title {
        font-size: 1.5rem;
    }

    .fc-button {
        font-size: 1.25rem !important;
        padding: 3px 6px !important;
        line-height: 1.1;
        border-radius: 4px;
    }

    .fc-button-group {
        gap: 2px;
    }

    /* Ensure buttons align nicely in their own row */
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
    }

    /* Smaller column headers inside calendar */
    .fc .fc-col-header-cell-cushion {
        font-size: 1rem;
        padding: 2px 0;
    }

    /* Smaller event titles */
    .fc .fc-event-title {
        font-size: 1rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .fc .fc-toolbar-title {
        font-size: 1rem;
    }
    .fc-button {
        font-size: 1rem !important;
        padding: 2px 4px !important;
    }
}

/*chat view*/
 .chat-container {
     height: 600px;
     overflow: hidden;
     display: flex;
     flex-direction: row;
 }

.conversation-list {
    width: 35%;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-area {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
    }

    .conversation-list {
        width: 100%;
        border-right: none;
    }

    .chat-area {
        width: 100%;
        display: none;
    }

    .chat-area.active {
        display: flex;
    }

    .conversation-list.hide {
        display: none;
    }

    #btn-back {
        display: inline-flex !important;
    }
}

#btn-back {
    display: none;
    margin-right: 10px;
}
