/* Set Inter as the default font for all elements */
:root {
    --app-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-font-sans-serif: var(--app-font-family) !important;
    --font-family-sans-serif: var(--app-font-family) !important;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Minimal font styling that won't affect icons */
body {
    font-family: var(--app-font-family) !important;
}

.card-body, 
.card-title, 
.card-header,
p, 
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.btn:not(i),
.dropdown-item:not(i),
.text-sans-serif {
    font-family: var(--app-font-family) !important;
}

/* Modern sidebar styling with subtle icons */
.sidenav .navbar-nav .nav-link {
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
}

.sidenav .navbar-nav .nav-link i {
    font-size: 0.85rem !important;
    color: rgba(120, 130, 150, 0.7) !important;
    width: 24px !important;
}

.sidenav .navbar-nav .nav-link.active i {
    color: #3a81e4 !important;
}

.sidenav .navbar-nav .nav-link:hover i {
    color: rgba(120, 130, 150, 0.9) !important;
}

.sidenav .nav-link-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: rgba(60, 65, 80, 0.9) !important;
}

.sidenav .navbar-nav .nav-link.active .nav-link-text {
    color: #3a81e4 !important;
    font-weight: 600 !important;
}

.sidenav .collapse .nav .nav-link .nav-link-text {
    font-size: 0.825rem !important;
    font-weight: normal !important;
}

/* Sidebar Navigation Styles */
.navbar-nav {
    padding: 0.25rem;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

.nav-link.active {
    background-color: #e91e63;
    color: white;
}

.nav-link.active .icon {
    background-color: transparent;
}

.nav-link.active .icon i {
    color: white !important;
}

/* Icon Styles */
.icon {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.icon i {
    font-size: 0.9rem!important;
    color: #000;
}

/* Submenu Styles */
.collapse .nav {
    padding-left: 2.6rem;
}

.nav-link.sub-item {
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 0!important;
}

.nav-link.sub-item::before {
    display: none;
}

/* Remove badge circles */
.badge-circle {
    background: none;
    padding: 0;
    color: #000;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Chevron Styles */
.nav-link .chevron {
    transition: transform 0.2s ease;
}

.nav-link[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* Expanded Parent Menu Item Styles */
.nav-link[aria-expanded="true"] {
    background-color: transparent;
    color: #000;
}

.nav-link[aria-expanded="true"] .icon {
    background-color: #f5f5f5;
}

.nav-link[aria-expanded="true"] .icon i,
.nav-link[aria-expanded="true"] .chevron {
    color: inherit;
}

/* Scrollbar Styles */
.navbar-collapse::-webkit-scrollbar {
    width: 6px;
}

.navbar-collapse::-webkit-scrollbar-track {
    background: transparent;
}

.navbar-collapse::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 3px;
}

.navbar-collapse::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}


.nav-link.sub-item.active{
    color: #3a416f !important;
}

/* Dashboard Icon Styles */
.card-body .col-4.text-end {
    padding-right: 10px;
}

.card-body .col-4.text-end .d-flex {
    justify-content: flex-end !important;
}

.rounded-3.bg-opacity-10 {
    margin-right: 0;
}

/* Icon colors */
.fa-camera {
    font-size: 1.25rem;
    color: #e91e63;
}

.fa-globe {
    font-size: 1.25rem;
    color: #17c1e8;
}

.fa-clock {
    font-size: 1.25rem;
    color: #fb6340;
}

.fa-chart-bar {
    font-size: 1.25rem;
    color: #2dce89;
}

/* Background colors */
.bg-pink {
    background-color: rgba(233, 30, 99, 0.1) !important;
}

.bg-info {
    background-color: rgba(23, 193, 232, 0.1) !important;
}

.bg-warning {
    background-color: rgba(251, 99, 64, 0.1) !important;
}

.bg-success {
    background-color: rgba(45, 206, 137, 0.1) !important;
}

.text-pink {
    color: #e91e63 !important;
}

.text-info {
    color: #17c1e8 !important;
}

/* Status Indicator Styles */
.status-clean {
    color: #2dce89;  /* Green text */
    background-color: rgba(45, 206, 137, 0.1);  /* Light green background */
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-spam {
    color: #e91e63;  /* Red text */
    background-color: rgba(233, 30, 99, 0.1);  /* Light red background */
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-error {
    color: #fb6340;  /* Orange text */
    background-color: rgba(251, 99, 64, 0.1);  /* Light orange background */
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-no-archive {
    color: #17c1e8;  /* Blue text */
    background-color: rgba(23, 193, 232, 0.1);  /* Light blue background */
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Status Badge Styles */
.badge-xs {
    cursor: help;  /* Shows question mark cursor on hover */
    font-size: 0.65rem;
    padding: 0.45rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Clean status */
.status-clean.badge-xs {
    background-color: rgba(45, 206, 137, 0.1);
    color: #2dce89;
}

/* Spam status */
.status-spam.badge-xs {
    background-color: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

/* Error status */
.status-error.badge-xs {
    background-color: rgba(251, 99, 64, 0.1);
    color: #fb6340;
}

/* No Archive status */
.status-no-archive.badge-xs {
    background-color: rgba(23, 193, 232, 0.1);
    color: #17c1e8;
}

/* Hover states */
tr.status-row-clean:hover {
    background-color: rgba(45, 206, 137, 0.05) !important;
}

tr.status-row-spam:hover {
    background-color: rgba(233, 30, 99, 0.05) !important;
}

tr.status-row-error:hover {
    background-color: rgba(251, 99, 64, 0.05) !important;
}

tr.status-row-no-archive:hover {
    background-color: rgba(23, 193, 232, 0.05) !important;
}

.bg-light-success{
    background-color: rgba(45, 206, 137, 0.1);
    color: #2dce89 !important;
}

.bg-light-info{
    background-color: rgba(23, 193, 232, 0.1);
    color: #17c1e8 !important;
}

.bg-light-warning{
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107 !important;
}

.bg-light-danger{
    background-color: rgba(233, 30, 99, 0.1);
    color: #e91e63 !important;
}

.bg-light-gray{
    background-color: rgba(119, 119, 119, 0.1);
    color: #6c757d !important;
}

@media (max-width: 768px) {
    .info-section {
        display: none !important;
    }

    /* Ensure the table has a minimum width for proper horizontal scrolling */
    .table {
        min-width: 100%; /* Adjust this width as per the table content */
    }

    /* Adjust table cells for smaller screens to avoid overflow */
    .table th, 
    .table td {
        white-space: nowrap; /* Prevents text wrapping */
        font-size: 14px; /* Adjust text size for mobile */
    }

    /* Remove or reduce padding on container elements */
    .card-body {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Ensure no margin is added on mobile for the card */
    .card {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Make sure the container fills the width on mobile */
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Updated pagination mobile styling */
    .pagination {
        gap: 5px;
    }

    /* Hide all pagination items by default */
    .pagination li {
        display: none;
    }

    /* Show active page and prev/next buttons */
    .pagination li.active,
    .pagination li:has(a[rel="prev"]),
    .pagination li:has(a[rel="next"]) {
        display: flex;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
    }
}

/* Headway Badge Styling */
#HW_badge_cont{
    margin-left: -15px;
    margin-top: -10px;
    z-index: 9999;
}

/* Container Adjustments */
body.g-sidenav-show > main > .container-fluid:first-of-type {
    margin-top: -40px;
}

/* Theme Toggle Button Styles */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    cursor: pointer;
    border: none;
    width: 45px;
    height: 45px;
}

/* Badge Circle Styles */
.badge-circle {
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    background: #344767;
    color: white;
    margin-left: 5px;
}

/* Sidebar-specific badge styling */
.sidenav .badge-circle {
    float: right;
    margin-left: auto;
    margin-right: 0;
}

/* Alert Colors */
.alert-primary {
    background-color: #E91E63;
    color: white;
}
.alert-secondary {
    background-color: #6c757d;
    color: white;
}
.alert-success {
    background-color: #4CAF50;
    color: white;
}
.alert-danger {
    background-color: #f44336;
    color: white;
}
.alert-warning {
    background-color: #ff9800;
    color: white;
}
.alert-info {
    background-color: #2196F3;
    color: white;
}
.alert-light {
    background-color: #e9ecef;
    color: #333;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.sitewide-banner {
    background: #ffc107;
    color: #222;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    position: fixed;
    left: 0;
    width: 100vw;
    z-index: 2000;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.07);
}
.sitewide-banner-bottom {
    bottom: 0;
    top: auto;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.07);
}
.sitewide-banner-close {
    position: absolute;
    right: 20px;
    top: 8px;
    background: none;
    border: none;
    font-size: 1.2em;
    color: #222;
    cursor: pointer;
}
@media (max-width: 600px) {
    .sitewide-banner, .sitewide-banner-bottom {
        font-size: 0.95em;
        height: 38px;
        padding: 8px 0;
    }
    .sitewide-banner-close {
        top: 4px;
    }
}

#sitewide-banner {
    display: none;
}