﻿/* Main site font: Inter Tight (loaded via Google Fonts in the layout <head>).
   Overriding the Bootstrap 5 variable makes every AdminLTE component that
   references var(--bs-font-sans-serif) pick it up automatically. Source Sans 3
   is kept as a fallback since it's already loaded on every page. */
:root {
    --bs-font-sans-serif: "Inter Tight", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Default for every element on every page (Bootstrap 4 and 5 layouts alike).
   The universal selector has zero specificity, so anything more specific
   further down the cascade — icon fonts (Font Awesome, Bootstrap Icons),
   monospace code/pre/kbd/samp — still wins and renders correctly untouched. */
* {
    font-family: "Inter Tight", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

.toggle-btn {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.header {
    /*            background-color: white;
            padding: 4px 12px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #dee2e6;
            height: 48px;*/
    height: 56px; /* or 60px */
    padding: 0 15px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}

.left-menu {
    margin-top: 56px; /* SAME as header height */
    height: calc(100vh - 56px);
}

.left-menu {
    position: fixed;
    top: 56px;
    left: 0;
}

#mainContent {
    margin-top: 56px; /* SAME as header height */
}




.sidebar {
    background-color: #0B3142;
    min-height: 100vh;
    transition: all 0.3s ease;
    padding-top: 0;
}

    .sidebar .nav-link {
        color: #fff;
        font-size: 16px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        transition: 0.2s ease-in-out;
    }

        .sidebar .nav-link:hover {
            background-color: #343a40;
            color: #fff;
        }

        .sidebar .nav-link.active {
            background-color: #495057;
            font-weight: bold;
        }

.sidebar {
    background-color: #0B3142;
    margin-top: -1px;
    min-height: 100vh;
    transition: all 0.3s ease;
    padding-top: 0;
}

    .sidebar.hidden {
        margin-left: -200px;
    }

    .sidebar .nav-link {
        color: #ffffff;
        font-size: 16px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        transition: 0.2s ease-in-out;
    }

#pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 5px;
}

#pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.sidebar .nav-link:hover {
    background-color: #343a40;
    color: #ffffff;
}

.sidebar .nav-link.active {
    background-color: #495057;
    font-weight: bold;
}

.sidebar i {
    margin-right: 8px;
}

.content {
    transition: margin-left 0.3s ease;
}

.container-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

hr {
    margin-top: 4px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
}

.btn-right {
    float: right;
    margin-left: 10px;
}

.btn-edit {
    background-color: darkgoldenrod;
    color: white;
}

.btn-delete {
    background-color: firebrick;
    color: white;
}

.btn-back {
    background-color: steelblue;
    color: white;
}

/*.search-box {
    margin-bottom: 10px;
}*/

.table-heading {
    font-size: 20px;
    font-weight: 600;
    color: #19535F;
    margin-bottom: 0;
}

#tableTitle {
    margin-bottom: 0.5rem;
}

/* Agent Master page (Views/AgentData/AgentMaster.cshtml) full-page loading
   overlay: visible while the server-rendered table is still being parsed and
   the client-side pagination/sorting script is initializing it; hidden by
   that script once it's done (see the page's DOMContentLoaded handler). */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    transition: opacity 0.25s ease;
}

    .page-loading-overlay.page-loading-overlay--hidden {
        opacity: 0;
        pointer-events: none;
    }

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #dfe3e6;
    border-top-color: #19535F;
    border-radius: 50%;
    animation: page-loading-spin 0.8s linear infinite;
}

.page-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #19535F;
}

@keyframes page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}


.table-container {
/*    max-height: 550px;*/
    overflow: auto;
    border: 1px solid #ccc;
    width: 100%;
}

/* Add/Edit User modal (Views/Admin/Index.cshtml): WhatsApp Number is made
   readonly (via JS) while "Is WhatsApp Number?" is Yes, since its value then
   just mirrors Mobile Number. */
#addUserForm #WhatsappNumber[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/*table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}*/

th td {
    border: 1px solid #ddd;
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
   
}

th {
    background: #f2f2f2;
    cursor: pointer;
    position: relative;
}

    th .resizer {
        position: absolute;
        right: 0;
        top: 0;
        width: 5px;
        height: 100%;
        cursor: col-resize;
        user-select: none;
        z-index: 10;
    }

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .pagination button {
        border: 1px solid #ccc;
        background: #f9f9f9;
        padding: 4px 10px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

        .pagination button:hover:not(:disabled) {
            background: #e6e6e6;
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

.table-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

    .table-controls label {
        font-size: 14px;
        font-weight: 500;
    }

#rowsPerPageSelect {
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#tableInfo {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.tagify__input {
    min-width: 120px;
}

.table td > .tagify {
    height: auto !important;
    min-height: 38px;
}

.table td {
    vertical-align: top;
    height: auto !important;
}

.tagify {
    width: 100% !important;
    min-height: 38px;
    padding: 4px 6px;
    line-height: 1.4;
    display: block;
    box-sizing: border-box;
}
/* ✅ Dropdown adjusts height dynamically, scrolls only when needed */
.bootstrap-select .dropdown-menu.inner {
    max-height: 200px !important; /* Max height before scroll appears */
    overflow-y: auto !important; /* Enable vertical scroll only */
}

/* 🚫 Prevent outer layers from adding extra scrollbars */
.bootstrap-select .dropdown-menu {
    overflow: hidden !important;
    height: auto !important; /* Auto resize based on content */
}

.bootstrap-select {
    width: 300px !important; /* Adjust width here */
}

    .bootstrap-select .dropdown-menu {
        min-width: 300px !important; /* Match dropdown to select */
        width: 300px !important;
    }
        /* 🧩 Ensure dropdown height accounts for the search box area */
        .bootstrap-select .dropdown-menu.show {
            max-height: calc(200px + 40px) !important; /* 40px = search box area */
            height: auto !important;
        }

        /* ✨ Optional: Sleek scrollbar style */
        .bootstrap-select .dropdown-menu.inner::-webkit-scrollbar {
            width: 6px;
        }

        .bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 10px;
        }

            .bootstrap-select .dropdown-menu.inner::-webkit-scrollbar-thumb:hover {
                background-color: #999;
            }

.toast {
    flex-basis: auto !important;
}
/* Toast animation */
.toast {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

    .toast.show {
        opacity: 1 !important;
        transform: translateY(0);
    }

/* Optional shadow and rounded edges */
.toast {
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

    /* Buttons inside toast */
    .toast .btn {
        border: none;
        padding: 3px 10px;
        font-size: 13px;
        border-radius: 4px;
        transition: background-color 0.2s ease-in-out;
    }

        .toast .btn:hover {
            opacity: 0.9;
        }

/* Brand color buttons */
.btn-teal {
    background-color: #21A0A0;
    color: white;
}

.btn-gray {
    background-color: #888;
    color: white;
}

.badgeFont {
    font-size: 15px;
    padding: 1px 8px;
    text-decoration: none;
}

#agentTable thead tr,
#agentTable tbody tr {
    height: auto;
}

#agentTable td,
#agentTable th {
    padding: 0.4rem 0.75rem !important;
    line-height: 1.2;
}

.card-header-tabs .nav-link.active {
    background-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
    height: 33px;
}

/* Login page (Views/Account/Login.cshtml) - scoped to the login page only, overlays the shared layout's body background.
   Laid out as a column that fills exactly 100vh (header / panel / footer) so the page never needs to scroll. */
.bliss-login-shell {
    position: fixed;
    inset: 0;
    background: #ffffff;
    overflow: auto; /* safety net only - the flex sizing below is tuned to avoid needing it */
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.bliss-login-header {
    flex: 0 0 auto;
    text-align: center;
    padding: 1.5vh 20px 0.5vh;
}

    .bliss-login-header img {
        max-width: 150px;
        height: auto;
    }

.bliss-login-welcome {
    margin-top: 6px;
    font-size: 1.4rem;
    font-weight: 400;
    color: #212529;
}

.bliss-login-panel {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 1120px;
    width: calc(100% - 40px);
    margin: 0 auto 1.5vh;
    border-radius: 4px;
    background: linear-gradient(135deg,
        #7fe6b4 0%, #7fe6b4 30%,
        #8b93f2 30%, #8b93f2 68%,
        #b7b7b7 68%, #b7b7b7 100%);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bliss-login-card-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.bliss-login-avatar {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #1f3d4a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    .bliss-login-avatar i {
        font-size: 1.75rem;
        color: #1f3d4a;
    }

.bliss-login-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 38px 32px 24px;
}

.bliss-login-card label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.bliss-login-card .form-control {
    border: none;
    border-bottom: 1px solid #ced4da;
    border-radius: 0;
    padding: 4px 2px;
    box-shadow: none !important;
}

    .bliss-login-card .form-control:focus {
        border-bottom-color: #1f3d4a;
    }

.bliss-login-card .form-control[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.bliss-login-field {
    margin-bottom: 12px;
}

.bliss-login-card .field-validation-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
}

    .bliss-login-card .field-validation-error::before {
        font-family: bootstrap-icons;
        content: "\f332";
    }

.bliss-login-btn {
    width: 100%;
    background-color: #1f5468;
    border-color: #1f5468;
    color: #ffffff;
    font-weight: 600;
    padding: 9px;
    border-radius: 4px;
    margin-top: 6px;
}

    .bliss-login-btn:hover,
    .bliss-login-btn:focus {
        background-color: #17404f;
        border-color: #17404f;
        color: #ffffff;
    }

.bliss-login-footer {
    flex: 0 0 auto;
    text-align: center;
    padding-bottom: 1.5vh;
}

/* Shared by the other Views/Account pages styled to match Login.cshtml
   (ForgotPassword, ForgotPasswordConfirmation, ResetPassword, ResetPasswordConfirmation) */
.bliss-login-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 18px;
}

.bliss-login-message {
    font-size: 0.95rem;
    color: #333;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
}

    .bliss-login-message a {
        color: #1f5468;
        font-weight: 600;
        text-decoration: none;
    }

        .bliss-login-message a:hover {
            text-decoration: underline;
        }

/* ==========================================================================
   Shared app chrome polish (header / footer / sidebar)
   ========================================================================== */

/* Top header page title */
.app-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    align-self: center;
}

/* Sidebar: consistent icon column so labels line up, a bit more breathing
   room per row, and a slightly larger, more readable label size */
.sidebar-menu .nav-link {
    font-size: 0.93rem;
    padding: 0.55rem 0.9rem;
}

.sidebar-menu .nav-icon,
.sidebar-menu a.nav-link > i:first-child {
    display: inline-block;
    width: 1.4rem;
    text-align: center;
    margin-right: 0.4rem;
}

.sidebar-menu .nav-treeview .nav-link {
    font-size: 0.87rem;
}

/* Footer */
.app-footer {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
}

/* ==========================================================================
   Agent Master page
   ========================================================================== */

.am-agent-master {
    font-size: 0.9rem;
}

.am-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.am-card-header {
    background: #19535F;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
}

.am-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

    .am-card-title i {
        color: #ffc107;
    }

.am-count-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
}

.am-agent-master .card-body {
    padding: 1.25rem;
    background: #fbfbfc;
}

.am-agent-master .table-container {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

#agentTable {
    margin-bottom: 0;
}

    #agentTable thead tr:first-child th {
        background: #eef2f5;
        color: #33424f;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        border-bottom: 2px solid #dfe4e8;
    }

    #agentTable thead tr:nth-child(2) th {
        background: #ffffff;
    }

        #agentTable thead tr:nth-child(2) .form-control {
            font-size: 0.85rem;
        }

    #agentTable tbody td {
        font-size: 0.88rem;
        color: #333;
        vertical-align: middle;
    }

    #agentTable tbody tr:hover {
        background-color: #f3f7f9;
    }

    #agentTable tbody tr:nth-child(even) {
        background-color: #fafbfc;
    }

    #agentTable tbody tr:nth-child(even):hover {
        background-color: #f3f7f9;
    }

.am-agent-master .table-controls {
    font-size: 0.85rem;
}

.am-agent-master #pagination button.btn-warning {
    background-color: #19535F;
    border-color: #19535F;
    color: #fff;
}

    .am-agent-master #pagination button.btn-warning:hover:not(:disabled) {
        background-color: #123e47;
        border-color: #123e47;
    }

/* ==========================================================================
   Change Password page
   ========================================================================== */

.cp-wrapper {
    max-width: 480px;
    margin: 2rem auto;
}

.cp-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.cp-card-header {
    background: linear-gradient(135deg, #19535F 0%, #1f5468 100%);
    color: #ffffff;
    padding: 2rem 1.5rem 1.5rem;
}

.cp-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cp-card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.cp-card-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.cp-card .card-body {
    padding: 1.75rem 1.75rem 1.5rem;
}

.cp-field label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #33424f;
    margin-bottom: 0.3rem;
}

.cp-field .input-group-text {
    background: #f4f6f7;
    border-right: none;
    color: #6c757d;
}

.cp-field .form-control {
    border-left: none;
}

    .cp-field .form-control:focus {
        border-color: #ced4da;
        box-shadow: none;
    }

    .cp-field .input-group:focus-within .input-group-text,
    .cp-field .input-group:focus-within .form-control {
        border-color: #1f5468;
    }

.cp-submit-btn {
    background-color: #1f5468;
    border-color: #1f5468;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 6px;
}

    .cp-submit-btn:hover,
    .cp-submit-btn:focus {
        background-color: #17404f;
        border-color: #17404f;
        color: #ffffff;
    }