body {
    font-family: 'Exo', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f4f6f9de;
}

#main-container {
    display: flex;
    flex-grow: 1;
}

#sidebar {
    min-width: 220px;
    max-width: 220px;
    background: #030149;
    color: white;
    transition: all 0.3s;
    overflow: hidden;
    font-size: 16px;
}

#sidebar.collapsed {
    min-width: 70px;
    max-width: 70px;
}

#content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-item span {
    transition: opacity 0.3s;
}

#sidebar.collapsed .sidebar-item span {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    color: #a7acb163;
    align-items: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-link.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.navbar {
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    border: 0.5px solid #a9a9a96c !important;
}

.otr-card {
    background: white;
    border-radius: 15px;
    border: 1px solid #0057b335;
    padding: 15px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
a {
    color: #478bb3;
    text-decoration: underline;
}

.otr-input {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    border-radius: 10px;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.sidebar_subtitle {
    font-size: 12px;
    font-style: bold;
    margin-left: 10px;
    color: #828586;
    letter-spacing: 2px;
}

.page_title {
    font-size: 22px;
    font-weight: 500;
    color: #797b7d;
    letter-spacing: 4px;
}

.page_subtitle {
    font-size: 12px;
    font-style: bold;
    color: #828586;
    letter-spacing: 2px;
}

footer {
    background: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.1);
}


#uploadFile::file-selector-button {
    background-color: #2d3a551a;
    color: #cfd5db;
    border: 0;
    border-right: 1px solid #3d4e72;
    padding: 0.25rem 0.75rem;
    margin-right: 0.75rem;
    border-radius: 20px;
    cursor: pointer;
}
#uploadFile::file-selector-button:hover {
    background-color: #3a4a6b;
}

@media (max-width: 768px) {
    #sidebar {
        position: absolute;
        animation: 3s fadeOut;
        -webkit-animation: 3s fadeOut;
        left: -280px;
        height: 100vh;
        z-index: 1000;
    }

    #sidebar.collapsed {
        left: 0px;
    }
}

.table-container {
    background-color: rgb(255, 255, 255);
    overflow: hidden;
}

table.dataTable {
    border-collapse: collapse;
    width: 100%;
    border: 0.5px solid #a9a9a944 !important;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dt-search {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dt-search label {
    font-size: 13px;
    font-weight: 600;
    color: #5f6670;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dt-search input {
    min-width: 220px;
    height: 38px;
    border: 1px solid #d6dde6;
    border-radius: 10px;
    padding: 8px 12px;
    background-color: #ffffff;
    margin-left: 6px;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder,
.dataTables_wrapper .dt-search input::placeholder {
    color: #9aa6b2;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dt-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

table.dataTable thead {
    background-color: #ffffff;
    color: #000000;

}

table.dataTable thead th {
    text-align: left;
    font-weight: bold;
    padding: 12px 15px;
    font-size: 14px;
    border-bottom: 0.5px solid #d9d9d9;
}

table.dataTable tbody tr {
    border-bottom: 0.5px solid #d9d9d97b;
}

table.dataTable tbody td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

table.dataTable tbody tr:hover {
    background-color: #e1eaf6;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_length select {
    border: 0.5px solid #e3e3e3;
    border-radius: 5px;
    padding: 5px;
    background-color: transparent;
    padding: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #385a7b;
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #37393b;
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #0056b3;
}

.dataTables_length select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}


.dataTables_wrapper .dataTables_info {
    font-size: 14px;
    padding: 10px;
}

.dataTables_wrapper .dataTables_length {
    padding: 10px;
}

.login-page {
    width: 100%;
    height: 100vh;
    display: inline-block;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.hyperlink {
    text-decoration: none;
    color: #044ea2;
    font-weight: 500;
}

.text-sm {
    font-size: 12px;
}

.text_fix_40px {
    width: 40px;
    display: inline-block;
    font-weight: 500;
    color: #464545;

}

.text_fix_140px {
    width: 140px;
    display: inline-block;
    font-weight: 500;
    color: #464545;

}

.text_fix_45px {
    width: 45px;
    display: inline-block;
    font-weight: 500;
    color: #464545;
}

.text_fix_60px {
    width: 60px;
    display: inline-block;
    font-weight: 500;
    color: #464545;
}

.float-right {
    float: right;
}

.form-compact-text {
    font-size: 0.85rem;
}

.deploy-confirm-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.deploy-log-pre {
    background: #1e1e1e;
    color: #d4d4d4;
    max-height: 320px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    scrollbar-color: #555 #2d2d2d;
    scrollbar-width: thin;
}

.deploy-log-pre::-webkit-scrollbar {
    width: 8px;
}

.deploy-log-pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.deploy-log-pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.deploy-log-pre::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.redis-master-picker-hidden {
    display: none;
}

.analytics-progress-thin {
    height: 6px;
}

.analytics-donut-wrap {
    max-width: 260px;
    margin: 0 auto;
}

.analytics-url-cell {
    max-width: 280px;
}

.logs-col-ts {
    min-width: 145px;
}

.logs-col-path {
    min-width: 200px;
}

.logs-host-cell {
    max-width: 180px;
}

.logs-path-cell {
    max-width: 240px;
}

.portal-action-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.portal-action-modal-card {
    background: #1e2130;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    min-width: 320px;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.portal-action-modal-title {
    font-size: 1rem;
    color: #f0f0f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portal-action-modal-subtext {
    color: #aab;
}

.portal-action-modal-message {
    color: #ccd;
}

.portal-modal-btn-reset {
    letter-spacing: normal;
    text-transform: none;
}

.portal-modal-body-sm {
    font-size: 0.875rem;
}

.portal-action-modal-overlay-strong {
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
}

.portal-action-modal-overlay-low {
    z-index: 9997;
}

.portal-action-modal-card-420 {
    max-width: 420px;
}

.portal-action-modal-card-480 {
    min-width: 340px;
    max-width: 480px;
}

.portal-action-modal-card-520 {
    min-width: 360px;
    max-width: 520px;
}

.portal-action-modal-card-fluid {
    width: 100%;
}

.portal-modal-title-gap {
    margin-bottom: 0.75rem;
}

.portal-modal-title-lg {
    margin-bottom: 1rem;
}

.portal-modal-message-leading {
    line-height: 1.6;
}

.portal-modal-hidden {
    display: none;
}

.portal-progress-10 {
    height: 10px;
}

.portal-progress-zero {
    width: 0%;
}

.portal-min-msg {
    min-height: 1.2em;
}

.upload-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.upload-overlay-card {
    background: #1e2130;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    min-width: 340px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.upload-overlay-title {
    font-size: 1rem;
    color: #cdd;
    font-weight: 600;
}

.word-break-all {
    word-break: break-all;
}

.upload-progress-track {
    background: #2a2e45;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f8ef7, #6ec6ff);
    border-radius: 999px;
    transition: width 0.2s;
}

.text-soft-muted {
    color: #aab;
}

.btn-text-reset {
    letter-spacing: normal;
    text-transform: none;
}

.font-size-11 {
    font-size: 1.1rem;
}

.card-title-xs {
    font-size: 0.85rem;
}

.card-body-xs {
    font-size: 0.82rem;
}

.progress-h8 {
    height: 8px;
}

.progress-h10 {
    height: 10px;
}

.max-w-140 {
    max-width: 140px;
}

.bg-warning-soft {
    background: rgba(255, 193, 7, 0.08);
}

.thumb-90x50 {
    width: 90px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumb-placeholder-90x50 {
    width: 90px;
    height: 50px;
    background: #1e2540;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a4a65;
}

.vlib-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 380px;
}

.vlib-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #667;
    pointer-events: none;
}

.vlib-search-input {
    padding-left: 32px;
    background: #1a2035;
    border-color: #2d3a55;
    color: #cfd5db;
}

.vlib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

.vlib-card {
    background: #1a2035;
    border: 1px solid #2d3a55;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vlib-thumb {
    border-bottom: 1px solid #2d3a55;
    font-size: 1.2rem;
}

.vlib-card-body {
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.vlib-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cfd5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vlib-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    flex-wrap: wrap;
}

.vlib-meta .badge {
    font-size: 0.62rem;
    padding: 2px 5px;
}

.vlib-actions {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
    justify-content: flex-end;
}

.vlib-actions .btn {
    font-size: 0.7rem;
    padding: 3px 8px;
}

.vlib-filter {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: #1a2035;
    border: 1px solid #2d3a55;
    color: #8a9bb5;
    border-radius: 4px;
}

.vlib-filter.active {
    background: #2d4a8a;
    border-color: #4f6eb0;
    color: #d0e0ff;
}

.storage-file-input-dark {
    color: #cfd5db;
    background-color: #1a2035;
    border-color: #2d3a55;
}

.grid-full-span {
    grid-column: 1 / -1;
}

.share-picker-card {
    padding: 1.5rem 1.75rem;
    min-width: 300px;
    max-width: 380px;
}

.share-picker-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 1rem;
}

.share-picker-status {
    min-height: 1.4em;
}

.dns-loading-overlay {
    background: rgba(0, 0, 0, 0.55);
    flex-direction: column;
}

.dns-loading-spinner {
    width: 3rem;
    height: 3rem;
}

.dns-label-icon {
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.text-warning-soft {
    color: #ffd166;
}

.token-ability-badge {
    font-size: 0.7rem;
}

.storage-search-input {
    width: 300px;
}

.storage-code-sm {
    font-size: 0.8rem;
}

.storage-used-progress-wide {
    height: 6px;
    min-width: 90px;
}

.storage-alert-compact {
    font-size: 0.82rem;
}

.storage-creds-card {
    max-width: 700px;
}

.storage-creds-col-head {
    width: 40%;
}

.storage-creds-pre {
    font-size: 0.78rem;
}

.storage-secret-key {
    filter: blur(4px);
    cursor: pointer;
}

.storage-secret-key.revealed {
    filter: none;
}

.dns-table-compact {
    font-size: 0.85rem;
}

.dns-zone-type-badge {
    font-size: 0.7rem;
}

.invoice-credit-balance {
    font-size: 1.1rem;
}

.dns-records-table {
    font-size: 0.82rem;
}

.dns-record-code {
    font-size: 0.8rem;
}

.dns-record-type-badge {
    font-size: 0.7rem;
}

.dns-record-proxy-badge {
    font-size: 0.68rem;
}

.domain-check-ns-btn {
    font-size: 0.75rem;
    padding: 2px 7px;
}

.dashboard-section-header {
    font-size: 0.85rem;
}

.dashboard-invoices-table {
    font-size: 0.82rem;
}

.ticket-create-card {
    max-width: 720px;
}

.ticket-meta-row {
    font-size: 0.88rem;
}

.ticket-message-body {
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.ticket-staff-badge {
    font-size: 0.7rem;
}

.plan-change-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-popular-ribbon {
    font-size: 0.75rem;
    border-radius: 0.375rem 0.375rem 0 0;
}

.domain-create-card {
    max-width: 700px;
}

.payment-status-card {
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
}

.payment-status-icon {
    font-size: 3rem;
}

.payment-status-icon-success {
    color: var(--bs-success, #28a745);
}

.payment-status-icon-warning {
    color: var(--bs-warning, #ffc107);
}

.analytics-rawlogs-th-ts {
    min-width: 145px;
}

.analytics-rawlogs-th-path {
    min-width: 200px;
}

.analytics-rawlogs-cell-host {
    max-width: 180px;
}

.analytics-rawlogs-cell-path {
    max-width: 240px;
}

.admin-users-search-input {
    width: 280px;
}

.admin-users-role-filter {
    width: auto;
}

.admin-traffic-domain-host {
    max-width: 120px;
}

.admin-traffic-domain-path {
    max-width: 200px;
}

.admin-api-rate-action-col {
    width: 120px;
}

.admin-companies-status-filter {
    width: auto;
}

.storage-cluster-json {
    font-size: 0.8rem;
    max-height: 400px;
    overflow: auto;
}

.storage-used-progress {
    height: 6px;
    min-width: 80px;
}

.btn-success {
    background-color: #097058;
    font-size: 12px;
    margin-top: 2px;
    border-radius: 50px;
    border: 1px solid rgb(61, 71, 82);
    padding: 5px 15px;
}

.btn-outline-table {
    background-color: transparent;
    color: #788a91;
    font-size: 12px;
    margin-top: 1px;
    border-radius: 50px;
    border: 1px solid #646872;
    padding: 0px 15px;
    width: 45px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline-table:hover {
    background-color: #2b63ab;
    color: white;
}
.btn-primary {
    --bg-opacity: 0.5;
    --border-opacity: 0.6;
    --accent-color: #11d1f3; /* Bootstrap Primary */
    
    background-color: rgba(15, 134, 186, var(--bg-opacity));
    border: 1px solid rgba(15, 134, 186, var(--border-opacity));
    color: #7bd1e0;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
}

.btn-secondary {
   --bg-opacity: 0.5;
    --border-opacity: 0.6;
    --accent-color: #6f7b7d; /* Bootstrap Primary */
    
    background-color:  #4f4f52;
    border: 1px solid #6d6e70;
    color: #b1b7b8;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
}

.btn-danger {
   --bg-opacity: 0.8;
    --border-opacity: 0.6;
    --accent-color: #c16f6f; /* Bootstrap Primary */
    background-color: rgba(200, 62, 62, var(--bg-opacity));
    border: 1px solid #b38e8e;
    color: #f5eeee;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
}

.btn-info {
    --bg-opacity: 0.5;
    --border-opacity: 0.6;
    --accent-color: #468893; /* Bootstrap Primary */
    
    background-color: #468893;
    border: 1px solid #7fbbc6;
    color: #b1b7b8;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
}


.btn-warning {
   --bg-opacity: 0.8;
    --border-opacity: 0.6;
    --accent-color: #f3b711; /* Bootstrap Primary */
    
    background-color: #f3b711;
    border: 1px solid #b4ad8c;
    color: #1e1f1f;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
}
.page_title_div {
    background-color: #ffffff;
    border-left: 6px solid #183ba1;
    color: #797b7d;
    letter-spacing: 4px;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.text-sidebar {
    font-size: 12px;
    color: #a0b1c1;
    font-weight: 500;
}

.list-group-item {
    position: relative;
    display: block;
    padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);
    color: var(--bs-list-group-color);
    text-decoration: none;
    background-color: transparent;
    border: transparent;
}

.cdn_table_text_sm {
    background-color: transparent;
    color: #97b4c0;
    font-size: 12px;
    font-weight: 700;
    width: 25px;
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.tab .nav-tabs li a {
    color: #fff;
    padding: 10px 10px;
    margin-right: 4px;
    background: #0a0155;
    border: none;

    position: relative;
    transition: all 0.3s ease 0s;
    border-radius: 5px;
}

.tab .nav-tabs li a:hover {
    background: #100386;
}

.tab .nav-tabs li.active a {
    opacity: 1;
}

.tab .nav-tabs li.active a,
.tab .nav-tabs li.active a:hover,
.tab .nav-tabs li.active a:focus {
    color: #fff;
    background: #0a0155;
    border: none;
    border-radius: 0;
    border-radius: 5px;

}

.tab .nav-tabs li a i,
.tab .nav-tabs li.active a i {
    display: inline-block;
    padding-right: 5px;
    text-shadow: none;
    margin-top: 26px;

}

.tab .nav-tabs li a span {
    display: inline-block;
    letter-spacing: -19px;
    opacity: 0;
    transition: all 0.3s ease 0s;
}

.tab .nav-tabs li a:hover span,
.tab .nav-tabs li.active a span {
    letter-spacing: 1px;
    opacity: 1;
    transition: all 0.3s ease 0s;
}

.tab .tab-content {
    padding-top: 20px;

}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin-top: 0;
    color: #02083e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #6f6f70;
}

.stat-card .trend {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.trend.up {
    color: var(--success);
}

.trend.down {
    color: var(--danger);
}

.card-left-green {
    border-left: 6px solid #07b413;
}

.card-left-orange {
    border-left: 6px solid #f57b3f;
}

.card-left-red {
    border-left: 6px solid #dd0303;
}

.card-left-blue {
    border-left: 6px solid #135eb9;
}

.card-left-purple {
    border-left: 6px solid #9d4edd;
}

.card-left-liteblue {
    border-left: 6px solid #669ef2;
}


.recent-activity {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-content {
    flex-grow: 1;
}

.activity-time {
    color: var(--gray);
    font-size: 12px;
}

#card-element {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* ============================================================
   DARK MODE
   Applied via: <html data-theme="dark">
   Toggled by #themeToggle, persisted in localStorage
   ============================================================ */

[data-theme="dark"] body {
    background-color: #111318;
    color: #c9cdd4;
}

/* Topbar / Navbar */
[data-theme="dark"] .navbar {
    background: #151821 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,.4);
    color: #c9cdd4;
}
[data-theme="dark"] .navbar .navbar-brand,
[data-theme="dark"] .navbar span,
[data-theme="dark"] .navbar .text-muted {
    color: #9aa0b5 !important;
}

/* Sidebar — already dark navy, just tweak borders/text */
[data-theme="dark"] #sidebar {
    background: #1c1f2b;
    border-right: 1px solid #2a2d3e;
}
[data-theme="dark"] .sidebar_subtitle {
    color: #5a6080;
}

/* Main content area */
[data-theme="dark"] #content {
    background-color: #111318;
}

/* Footer */
[data-theme="dark"] footer {
    background: #151821;
    color: #6b7280;
    box-shadow: 0 -4px 6px rgba(0,0,0,.3);
}

/* ---- Cards (Bootstrap + custom) ---- */
[data-theme="dark"] .card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .otr-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .recent-activity {
    background: #1c1f2b !important;
    border-color: #2a2d3e !important;
    color: #c9cdd4;
}

[data-theme="dark"] .card-header {
    background: #20233299 !important;
    border-bottom-color: #2a2d3e !important;
    color: #c9cdd4 !important;
}

[data-theme="dark"] .card-body {
    color: #c9cdd4;
}

[data-theme="dark"] .stat-card h3 {
    color: #7b8dbf;
}
[data-theme="dark"] .stat-card .value {
    color: #9aa0b5;
}

/* Page title block */
[data-theme="dark"] .page_title_div {
    background-color: #1c1f2b;
    color: #9aa0b5;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
[data-theme="dark"] .page_title {
    color: #9aa0b5;
}
[data-theme="dark"] .page_subtitle {
    color: #6b7280;
}

/* ---- Tables ---- */
[data-theme="dark"] .table-container {
    background-color: #1c1f2b;
}

[data-theme="dark"] table.dataTable {
    border-color: #2a2d3e !important;
    color: #c9cdd4;
}

[data-theme="dark"] table.dataTable thead {
    background-color: #151821;
    color: #9aa0b5;
}

[data-theme="dark"] table.dataTable thead th {
    border-bottom-color: #2a2d3e;
    color: #9aa0b5;
}

[data-theme="dark"] table.dataTable tbody tr,
[data-theme="dark"] table.dataTable tbody tr td {
    background-color: #1c1f2b !important;
    border-bottom-color: #2a2d3e66;
    color: #a4aab2;
}

[data-theme="dark"] table.dataTable tbody tr:hover,
[data-theme="dark"] table.dataTable tbody tr:hover td {
    background-color: #232844 !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-theme="dark"] .dataTables_filter input,
[data-theme="dark"] .dataTables_length select {
    background-color: #1c1f2b;
    border-color: #444446;
    color: #9a9ca1;
    height: 32px;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-theme="dark"] .dataTables_wrapper .dataTables_length,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter {
    color: #9aa0b5;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {

    color: #c9cdd4 !important;
    border-color: #2a2d3e;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #2e3870 !important;
    color: #fff !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    
    color: #9c9fa1 !important;
    border-color: #3d4a8a !important;
}

/* ---- Bootstrap table ---- */
[data-theme="dark"] .table {
    color: #c9cdd4;
    border-color: #2a2d3e;
}
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table thead td {
    border-bottom-color: #2a2d3e;
    color: #9aa0b5;
    background-color: #151821 !important;
}
[data-theme="dark"] .table tbody tr td,
[data-theme="dark"] .table tbody tr th {
    background-color: #1c1f2b !important;
    border-bottom-color: #2a2d3e66;
    color: #c9cdd4;
}
[data-theme="dark"] .table tbody tr:hover td,
[data-theme="dark"] .table tbody tr:hover th {
    background-color: #232844 !important;
}
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(255,255,255,.02) !important;
}

/* ---- Forms ---- */

[data-theme="dark"] .form-select,
[data-theme="dark"] .otr-input,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    --bg-opacity: 0.5;
    --border-opacity: 0.6;
    --accent-color: #11d1f3; /* Bootstrap Primary */
    
    background-color: #111318;
    border: 1px solid rgba(15, 134, 186, var(--border-opacity));
    color: #929696;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
   
}
[data-theme="dark"] .form-control{
--bg-opacity: 0.5;
    --border-opacity: 0.6;
    --accent-color: #11d1f3; /* Bootstrap Primary */
    
    background-color: #111318;
    border: 1px solid rgba(15, 134, 186, var(--border-opacity));
    color: #7bd1e0;
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 5px 24px;
    font-weight: 500;
    font-size: 11px;
}


[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #232844;
    border-color: #3d4a8a;
    color: #e0e4f0;
    box-shadow: 0 0 0 0.2rem rgba(61,74,138,.25);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #4a5068;
}

[data-theme="dark"] .input-group-text {
    background-color: #20233299;
    border-color: #2a2d3e;
    color: #9aa0b5;
}

[data-theme="dark"] label,
[data-theme="dark"] .form-label {
    color: #9ea1a6;
}

/* ---- Modals ---- */
[data-theme="dark"] .modal-content {
    background-color: #1c1f2b;
    border-color: #2a2d3e;
    color: #c9cdd4;
}
[data-theme="dark"] .modal-header {
    border-bottom-color: #2a2d3e;
}
[data-theme="dark"] .modal-footer {
    border-top-color: #2a2d3e;
}
[data-theme="dark"] .modal-title {
    color: #e0e4f0;
}
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1);
}

/* ---- Dropdowns ---- */
[data-theme="dark"] .dropdown-menu {
    background-color: #1c1f2b;
    border-color: #2a2d3e;
}
[data-theme="dark"] .dropdown-item {
    color: #c9cdd4;
}
[data-theme="dark"] .dropdown-item:hover {
    background-color: #232844;
    color: #e0e4f0;
}
[data-theme="dark"] .dropdown-divider {
    border-color: #2a2d3e;
}

/* ---- Alerts ---- */
[data-theme="dark"] .alert-success {
    background-color: #0f2d1f;
    border-color: #1a5c3a;
    color: #6ee7b7;
}
[data-theme="dark"] .alert-danger {
    background-color: #2d0f0f;
    border-color: #5c1a1a;
    color: #fca5a5;
}
[data-theme="dark"] .alert-warning {
    background-color: #2d200f;
    border-color: #5c4a1a;
    color: #fcd34d;
}
[data-theme="dark"] .alert-info {
    background-color: #0f1e2d;
    border-color: #1a3a5c;
    color: #93c5fd;
}

/* ---- Misc ---- */
[data-theme="dark"] .text-muted {
    color: #8d96a6 !important;
}
[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom {
    border-color: #2a2d3e !important;
}
[data-theme="dark"] hr {
    border-color: #2a2d3e;
}
[data-theme="dark"] .activity-item {
    border-bottom-color: #2a2d3e;
}
[data-theme="dark"] .hyperlink {
    color: #6b8fde;
}
[data-theme="dark"] .text_fix_40px,
[data-theme="dark"] .text_fix_45px,
[data-theme="dark"] .text_fix_60px,
[data-theme="dark"] .text_fix_140px {
    color: #9aa0b5;
}
[data-theme="dark"] .shadow-sm {
    box-shadow: 0 1px 2px rgba(0,0,0,.4) !important;
}



/* Sidebar toggle button */
#toggleSidebar {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 20px;
    padding: 0 8px;
    color: inherit;
}
#toggleSidebar:hover,
#toggleSidebar:focus,
#toggleSidebar:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

/* Theme toggle button */
#themeToggle {
    background: transparent;
    border: 1px solid rgba(150,150,150,.3);
    color: inherit;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
#themeToggle:hover {
    background: rgba(150,150,150,.15);
}
[data-theme="dark"] #themeToggle {
    color: #f5c542;
    border-color: rgba(245,197,66,.3);
}

#cdnSharkTabs {
    background-color: #252e3c;
    border-radius: 50px;
    padding: 0.2rem;
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border: none !important;
    --bs-nav-tabs-border-color: transparent;
}
#cdnSharkTabs .nav-link {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border-radius: 50px;
    border: none;
    background-color: transparent;
}
#cdnSharkTabs .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}
#cdnSharkTabs .nav-link.active {
    color: #fff;
    background-color: #04124e;

}
.tab-content {
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark mode scrollbar */
[data-theme="dark"] * {
    scrollbar-color: #4a5a77 #111318;
    scrollbar-width: thin;
}

[data-theme="dark"] *::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

[data-theme="dark"] *::-webkit-scrollbar-track {
    background: #111318;
}

[data-theme="dark"] *::-webkit-scrollbar-thumb {
    background-color: #4a5a77;
    border-radius: 10px;
    border: 2px solid #111318;
}

[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background-color: #5d7092;
}



/* ===================== Select2 Dark Mode (tickets/create) ===================== */
.select2-container .select2-selection--single { height: 31px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 29px; font-size: 0.875rem; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 29px; }
.select2-container--default .select2-selection--single {
    background-color: #111318;
    border: 1px solid #14507b;
    color: #cfd5db;
    border-radius: 20px;
    font-size: 11px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #cfd5db;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #8a9bb5 transparent transparent transparent;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #8a9bb5 transparent;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #667;
}
.select2-dropdown {
    background-color: #111318;
    border: 1px solid rgba(15, 134, 186, var(--border-opacity));
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #131929;
    border: 1px solid rgba(15, 134, 186, var(--border-opacity));
    color: #cfd5db;
    outline: none;
}
.select2-container--default .select2-results__option {
    color: #cfd5db;
    background-color: #111318;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #111318;
    color: #d0e0ff;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #1e3060;
    color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #8a9bb5;
}
