.sidebar ul,
.nav ul {
    list-style: none;
}

.text-white {
    color: #ffffff !important;
}

.brand-text {
    font-size: 1.1rem;
}

label {
    font-weight: normal !important;
}


/* Login page */
.left-col {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: rgba(42, 111, 157, 0.1);
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright {
    margin-top: auto;
}

.right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100vh;
    background-color: #f9f9f9;
}

/* Hide left column and show logo on mobile */
@media (max-width: 991.98px) {
    .left-col {
        display: none !important;
    }

    .right-col {
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 3rem;
        width: 100%;
    }

    .mobile-logo {
        display: block !important;
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

.mobile-logo {
    display: none;
}

@media (max-width: 767px) {
    .left-col {
        display: none;
    }

    .right-col {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .right-col form {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .copyright {
        display: none;
    }
}


input::placeholder {
    font-size: 12px;
}

.form-control:focus {
    border: 1px solid #bbcfed;
    box-shadow: none;
}

.form-select:focus {
    box-shadow: none;
    border: 1px solid #bbcfed;
}

.table thead th {
    vertical-align: middle;
    font-size: 14px;
}

.table tbody td {
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f5fb;
}

.table-stripped {
    background: #f3f3f3 !important;
}


/* Dashboard */
.dashboard-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card:active {
    transform: scale(0.98);
}

.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Sidebar */
.main-sidebar {
    background: #ffffff;
}

.brand-link {
    color: #000000;
    font-weight: 600;
}

.brand-link:hover {
    color: #012355;
}

/* Sidebar links */
.main-sidebar ul li a {
    color: #000000 !important;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    transition: background 0.2s;
}

.main-sidebar ul li a:hover {
    background: #f6f6f6;
}

/* Top-level active links */
.main-sidebar .nav-sidebar>.nav-item>.nav-link.active {
    background: #f6f6f6 !important;
    border-left: 3px solid #003d99;
    font-weight: 400;
    border-radius: 0 5px 5px 0;
}

/* Keep active state on hover */
.main-sidebar .nav-sidebar>.nav-item>.nav-link.active:hover {
    background: #f6f6f6 !important;
}

/* Parent links: keep transparent when submenu is expanded and add hover */
.nav-item.has-treeview>.nav-link {
    background: transparent;
}

.nav-item.has-treeview>.nav-link:hover {
    background: #f6f6f6;
}

/* Active child links */
.main-sidebar .nav-treeview .nav-link.active {
    background: #f4f4f5 !important;
    padding-left: 0.5rem;
    border-left: 3px solid #012d6e;
    font-weight: 400;
    border-radius: 0 5px 5px 0;
}

.nav-header {
    font-weight: 500;
    color: #03214e;
}


/* Scroll bar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #cececf;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #434344;
    transition: opacity 0.5s;
}

/* Scrollbar track background */
::-webkit-scrollbar-track {
    background: #fff;
}

.dropdown-toggle::after {
    display: none;
}


/* Set hover effect for dropdown items */
.dropdown-menu .dropdown-item:hover {
    color: #000000 !important;
}

/* Set active or focused state for dropdown items */
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
    color: #000000 !important;
}

/* Hide photo preview by default */
#imgPreview {
    display: none;
}


.email-container {
    position: relative;
}

.email-container input {
    padding-left: 40px;
}

.email-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.password-container {
    position: relative;
}

.password-container input {
    padding-left: 40px;
    padding-right: 40px;
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.password-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    color: #5e8acb;
    transform: translateY(-50%);
    cursor: pointer;
}



/* Filter form on select option */
.options-container {
    display: none;
    z-index: 1000;
    background: #e9e8e8;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 10px;
}

.options-item {
    cursor: pointer;
}

.options-item:hover {
    background: #ffffff;
}


/* Clear Barcode */
.clear-x {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(15%);
    font-size: 30px;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.clear-x:hover {
    color: #dc3545;
}



/* Table more action hover effect */
.more-vert-hover {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.5s ease;
    color: #000000 !important;
    background: #e6eeff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-vert-hover:hover {
    background: #cecfd0;
    color: #ffffff;
}

.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-paid {
    background: #d1fae5;
    color: #065f46;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

.badge-due-today {
    background: #ffedd5;
    color: #9a3412;
}

.badge-due-soon {
    background: #fef9c3;
    color: #854d0e;
}

.badge-upcoming {
    background: #e0f2fe;
    color: #075985;
}


/* Live chat */
#chat-toggle {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: #007bff;
    color: white;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10%;
    cursor: pointer;
    font-size: 20px;
}

#chat-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 300px;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
}

#chat-header {
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
}

#chat-body {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
}

#chat-footer {
    display: flex;
    border-top: 1px solid #ccc;
}

#chat-footer input {
    flex: 1;
    border: none;
    padding: 10px;
}

#chat-footer button {
    border: none;
    background: #007bff;
    color: white;
    padding: 10px;
}

#chat-users {
    max-height: 300px;
    overflow-y: auto;
}

.chat-user {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.chat-user:hover {
    background: #f5f5f5;
}


.copy-tooltip {
    position: absolute;
    right: -10px;
    background: #0c0c0c;
    color: #ffffff;
    padding: 3px 7px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 9999;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 768px) {
    .dashboard-greeting {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-summary {
        font-size: 0.75rem;
    }
}


/* Floating Action Button */
#chat-fab {
    position: fixed;
    bottom: 40px;
    right: 10px;
    z-index: 9999;
}

#fab-main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #012862;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}

.fab-option {
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: none;
    transition: .3s;
}

#live-btn {
    bottom: 50px;
    background: #198754;
}

#ai-btn {
    bottom: 100px;
    background: #0652c5;
}


/* AI CHAT POPUP */
#ai-popup {

    position: fixed;

    bottom: 90px;

    right: 20px;

    width: 380px;

    height: 520px;

    display: none;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);

    z-index: 9999;

}

#ai-header {

    background: #0d6efd;

    color: #fff;

    padding: 12px;

    font-weight: bold;

}

#messages {

    height: 390px;

    overflow-y: auto;

    padding: 15px;

}

#ai-footer {

    padding: 10px;

    border-top: 1px solid #ddd;

}