/*
 * Theme Refresh — formal flat navy
 * Switch: resources/views/IncludesFiles/theme-switch.blade.php
 */

body.theme-refresh {
    --tr-navy: #1b365d;
    --tr-navy-dark: #12263f;
    --tr-navy-mid: #254a7a;
    --tr-navy-soft: #2c5282;
    --tr-gold: #02a499;
    --tr-page: #eef1f5;
    --tr-card: #ffffff;
    --tr-line: #d5dde6;
    --tr-text: #1a2b3c;
    --tr-muted: #5c6b7a;
    --tr-income: #17a36a;
    --tr-expense: #e04b4b;
    --tr-sky: #2f80ed;
    --tr-indigo: #5b6cff;
    --tr-amber: #f0a202;
    --tr-orange: #ef6c2f;
    --tr-violet: #7c5cfc;
    --tr-radius: 3px;
}

body.theme-refresh,
body.theme-refresh .main-content.color-bg-3,
body.theme-refresh.color-bg-3 {
    background-color: var(--tr-page) !important;
}

/* ==========================================================================
   Header — light bar so the logo stays clear
   ========================================================================== */

body.theme-refresh #page-topbar {
    background-color: #ffffff !important;
    box-shadow: none;
    border-bottom: 1px solid var(--tr-line);
}

body.theme-refresh .navbar-header {
    height: 70px;
    align-items: center;
}

body.theme-refresh .navbar-brand-box {
    background-color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-refresh .logo {
    line-height: 70px;
}

body.theme-refresh[data-sidebar="colored"] .navbar-brand-box .logo-dark {
    display: block !important;
}

body.theme-refresh[data-sidebar="colored"] .navbar-brand-box .logo-light {
    display: none !important;
}

body.theme-refresh #vertical-menu-btn,
body.theme-refresh #vertical-menu-btn.btn,
body.theme-refresh #vertical-menu-btn.btn-sm,
body.theme-refresh #vertical-menu-btn.header-item,
body.theme-refresh #vertical-menu-btn.font-size-24 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin: 0 0 0 10px !important;
    border: 1px solid var(--tr-line) !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    color: var(--tr-navy) !important;
    box-shadow: none !important;
    line-height: 1 !important;
    font-size: 20px !important;
    align-self: center;
}

body.theme-refresh #vertical-menu-btn i {
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: block;
}

body.theme-refresh #vertical-menu-btn:hover,
body.theme-refresh #vertical-menu-btn:focus {
    background: var(--tr-navy) !important;
    border-color: var(--tr-navy) !important;
    color: #fff !important;
}

body.theme-refresh .header-item.noti-icon {
    color: var(--tr-navy) !important;
}

body.theme-refresh .header-item.font-size-16 {
    background-color: var(--tr-navy) !important;
    color: #fff !important;
    border-radius: 2px;
    padding: 8px 14px;
    margin-right: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Sidebar — navy, square items, bold icons
   ========================================================================== */

body.theme-refresh[data-sidebar="colored"] .vertical-menu {
    background: var(--tr-navy) !important;
    box-shadow: none;
    border-right: 1px solid var(--tr-navy-dark);
}

body.theme-refresh #sidebar-menu {
    padding: 8px 0 28px;
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li a {
    color: #d5deea !important;
    border-radius: 0;
    margin: 0;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    border-left: 3px solid transparent;
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li a i {
    color: #e8eef6 !important;
    width: 22px;
    min-width: 22px;
    height: auto;
    line-height: 1;
    text-align: center;
    border-radius: 0;
    background: transparent;
    margin-right: 10px;
    font-size: 15px;
    font-weight: 400;
    -webkit-text-stroke: 0;
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li a:hover {
    color: #fff !important;
    background: var(--tr-navy-mid) !important;
    border-left-color: var(--tr-gold);
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li a:hover i {
    color: #fff !important;
    background: transparent;
}

body.theme-refresh[data-sidebar="colored"] .mm-active > a,
body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul > li > a.mm-active,
body.theme-refresh[data-sidebar="colored"] .mm-active .active {
    color: #fff !important;
    background: var(--tr-navy-dark) !important;
    border-left-color: var(--tr-gold) !important;
}

body.theme-refresh[data-sidebar="colored"] .mm-active > a i,
body.theme-refresh[data-sidebar="colored"] .mm-active .active i {
    color: var(--tr-gold) !important;
    background: transparent;
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li ul.sub-menu {
    padding: 0;
    background: var(--tr-navy-dark);
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li ul.sub-menu li a {
    color: #b8c5d6 !important;
    background: transparent !important;
    margin: 0;
    padding: 9px 18px 9px 48px;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li ul.sub-menu li a:hover,
body.theme-refresh[data-sidebar="colored"] #sidebar-menu ul li ul.sub-menu li a.active {
    color: #fff !important;
    background: var(--tr-navy-mid) !important;
    border-left-color: var(--tr-gold);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

body.theme-refresh .dashboard-wrapper {
    background-color: transparent;
    padding: 18px 22px 36px;
}

body.theme-refresh .dashboard-header {
    background: var(--tr-card);
    border-radius: var(--tr-radius);
    box-shadow: none;
    border: 1px solid var(--tr-line);
    border-top: 4px solid #02a499;
    padding: 18px 20px;
}

body.theme-refresh .dashboard-title {
    color: var(--tr-navy-dark);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0;
}

body.theme-refresh .dashboard-subtitle {
    color: var(--tr-muted);
}

body.theme-refresh .filter-label {
    color: var(--tr-navy);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

body.theme-refresh .date-range-select,
body.theme-refresh .dateRangePicker_dashboard_w1 {
    border: 1px solid var(--tr-line);
    border-radius: 2px;
    background: #fff;
    min-width: 240px;
}

body.theme-refresh .date-range-select:focus {
    border-color: var(--tr-navy);
    box-shadow: none;
}

/* ==========================================================================
   Proper rectangular cards — navy headers, flat
   ========================================================================== */

body.theme-refresh .stats-card {
    background: var(--tr-card);
    border-radius: var(--tr-radius);
    border: 1px solid var(--tr-line);
    box-shadow: none;
    overflow: hidden;
    animation: none;
}

body.theme-refresh .stats-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #b7c4d4;
}

body.theme-refresh .stats-header {
    padding: 14px 16px;
    gap: 12px;
    color: #ffffff;
    background: var(--tr-navy) !important;
    border-bottom: 0;
    border-top: 4px solid #02a499;
    box-shadow: none !important;
}

body.theme-refresh .stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: #02a499;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

body.theme-refresh .stats-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #ffffff;
}

body.theme-refresh .stats-subtitle {
    opacity: 0.9;
    font-weight: 500;
    font-size: 11px;
    color: #d5deea;
}

body.theme-refresh .stats-header .form-select,
body.theme-refresh .stats-header .btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 2px;
}

body.theme-refresh .stats-header .form-select option {
    color: #1e293b;
}

body.theme-refresh .stats-header .btn:hover {
    background: #02a499;
    color: #fff;
    border-color: #02a499;
}

/* Unified header color for every dashboard card */
body.theme-refresh .stats-card .stats-header,
body.theme-refresh .stats-card-primary .stats-header,
body.theme-refresh .stats-card-success .stats-header,
body.theme-refresh .stats-card-info .stats-header,
body.theme-refresh .stats-card-warning .stats-header,
body.theme-refresh .stats-card-danger .stats-header,
body.theme-refresh .stats-card:has(.status-stats-container) .stats-header,
body.theme-refresh .stats-card:has(.finance-stats-container) .stats-header,
body.theme-refresh .stats-card:has(.recruiter-stats-container) .stats-header,
body.theme-refresh .stats-card:has(.manager-stats-container) .stats-header,
body.theme-refresh .stats-card:has(.admin-stats-container) .stats-header,
body.theme-refresh .stats-card:has(.vacancy-stats-container) .stats-header,
body.theme-refresh .stats-card:has(.employee-incentives-container) .stats-header {
    background: var(--tr-navy) !important;
    color: #ffffff !important;
    border-top: 4px solid #02a499;
    box-shadow: none !important;
}

body.theme-refresh .stats-card-reminder .stats-header,
body.theme-refresh .stats-card:has(.reminder-list-container) .stats-header {
    background: #c2410c !important;
    color: #ffffff !important;
    border-top: 4px solid #fbbf24;
    box-shadow: none !important;
}

body.theme-refresh .stats-card-reminder .stats-icon,
body.theme-refresh .stats-card:has(.reminder-list-container) .stats-icon {
    background: #f59e0b;
}

body.theme-refresh .stats-table thead th {
    background: #f3f6f9;
    color: var(--tr-navy);
    border-bottom: 1px solid var(--tr-line);
    font-size: 11px;
    border-radius: 0;
}

body.theme-refresh .stats-table tbody tr:hover {
    background-color: #f4f7fb;
}

body.theme-refresh .stat-badge {
    border-radius: 2px;
    font-weight: 700;
    padding: 4px 9px;
    border: 0;
}

body.theme-refresh .badge-info {
    background-color: #e7f2ff !important;
    color: #1d6fd8 !important;
}

body.theme-refresh .badge-success {
    background-color: #e3f8ee !important;
    color: #148a55 !important;
}

body.theme-refresh .badge-primary {
    background-color: #ecebff !important;
    color: #4c54e0 !important;
}

body.theme-refresh .badge-warning {
    background-color: #fff4d6 !important;
    color: #c48400 !important;
}

body.theme-refresh .badge-danger {
    background-color: #ffe4e4 !important;
    color: #d03a3a !important;
}

body.theme-refresh .status-stats-container tbody tr:nth-child(6n+1) .stat-badge.badge-info {
    background-color: #e7f2ff !important;
    color: #1d6fd8 !important;
}

body.theme-refresh .status-stats-container tbody tr:nth-child(6n+2) .stat-badge.badge-info {
    background-color: #e3f8ee !important;
    color: #148a55 !important;
}

body.theme-refresh .status-stats-container tbody tr:nth-child(6n+3) .stat-badge.badge-info {
    background-color: #fff4d6 !important;
    color: #c48400 !important;
}

body.theme-refresh .status-stats-container tbody tr:nth-child(6n+4) .stat-badge.badge-info {
    background-color: #ffe8dc !important;
    color: #d45a1a !important;
}

body.theme-refresh .status-stats-container tbody tr:nth-child(6n+5) .stat-badge.badge-info {
    background-color: #f3e8ff !important;
    color: #7a3fd4 !important;
}

body.theme-refresh .status-stats-container tbody tr:nth-child(6n) .stat-badge.badge-info {
    background-color: #ffe4e8 !important;
    color: #c73a5a !important;
}

body.theme-refresh .recruiter-stats-container .badge-info,
body.theme-refresh .manager-stats-container .badge-info,
body.theme-refresh .admin-stats-container .badge-info {
    background-color: #e7f2ff !important;
    color: #1d6fd8 !important;
}

body.theme-refresh .employee-avatar {
    background: var(--tr-sky);
    border-radius: 2px;
}

/* ==========================================================================
   Finance inner cards — rectangular
   ========================================================================== */

body.theme-refresh .finance-summary-grid {
    gap: 12px;
    padding: 16px;
}

body.theme-refresh .finance-summary-card {
    border: 1px solid var(--tr-line);
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
}

body.theme-refresh .finance-summary-card:hover {
    box-shadow: none;
    border-color: #b7c4d4;
}

body.theme-refresh .income-card {
    border-left: 4px solid #02a499;
    background: #e9f8f6;
}

body.theme-refresh .expense-card {
    border-left: 4px solid #d97706;
    background: #fff6ea;
}

body.theme-refresh .profit-card {
    border-left: 4px solid #1d6fd8;
    background: #eaf3ff;
}

body.theme-refresh .profit-card.loss-card {
    border-left-color: #dc3545;
    background: #fdecea;
}

body.theme-refresh .finance-icon {
    border-radius: 2px !important;
}

body.theme-refresh .income-card .finance-icon {
    background: #02a499 !important;
    color: #fff;
}

body.theme-refresh .expense-card .finance-icon {
    background: #d97706 !important;
    color: #fff;
}

body.theme-refresh .profit-card .finance-icon {
    background: #1d6fd8 !important;
    color: #fff;
}

body.theme-refresh .profit-card.loss-card .finance-icon {
    background: #dc3545 !important;
}

body.theme-refresh .income-card .finance-amount,
body.theme-refresh .income-card .text-success {
    color: #02a499 !important;
}

body.theme-refresh .expense-card .finance-amount,
body.theme-refresh .expense-card .text-danger {
    color: #d97706 !important;
}

body.theme-refresh .profit-card .finance-amount,
body.theme-refresh .profit-card .text-primary {
    color: #1d6fd8 !important;
}

body.theme-refresh .profit-card.loss-card .finance-amount,
body.theme-refresh .profit-card.loss-card .text-danger {
    color: #dc3545 !important;
}

body.theme-refresh .finance-label {
    color: var(--tr-navy);
    font-weight: 700;
}

body.theme-refresh .row > [class*="col"]:has(.recruiter-stats-container) {
    align-self: flex-start;
}

body.theme-refresh .stats-card:has(.recruiter-stats-container) {
    height: auto !important;
}

body.theme-refresh .recruiter-stats-container .table-container {
    max-height: none !important;
    overflow: visible !important;
}

body.theme-refresh .stats-total-row td {
    background: #eef4fa;
    font-weight: 700;
    border-top: 2px solid var(--tr-navy);
    color: var(--tr-navy);
}

/* ==========================================================================
   Login page — split screen
   ========================================================================== */

body.theme-refresh.login-screen {
    background: #ffffff !important;
    min-height: 100vh;
    margin: 0;
}

body.theme-refresh .login-split {
    display: flex;
    min-height: 100vh;
}

body.theme-refresh .login-split-brand {
    width: 46%;
    background: var(--tr-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
}

body.theme-refresh .login-split-brand::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #02a499;
}

body.theme-refresh .login-split-brand-inner {
    max-width: 420px;
    color: #fff;
}

body.theme-refresh .login-split-brand-inner img {
    max-width: 260px;
    height: auto;
    margin-bottom: 28px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 3px;
}

body.theme-refresh .login-split-brand-inner h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}

body.theme-refresh .login-split-brand-inner p {
    margin: 0;
    color: #c5d0de;
    font-size: 15px;
    line-height: 1.6;
}

body.theme-refresh .login-split-form {
    width: 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: #f4f7fb;
}

body.theme-refresh .login-split-form-inner {
    width: 100%;
    max-width: 380px;
}

body.theme-refresh .login-split-form-inner h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--tr-navy-dark);
    margin: 0 0 6px;
}

body.theme-refresh .login-split-hint {
    color: var(--tr-muted);
    margin-bottom: 24px;
}

body.theme-refresh .login-split-form .form-label {
    color: var(--tr-navy) !important;
    font-weight: 700;
    font-size: 13px;
}

body.theme-refresh .login-split-form .form-control {
    background: #ffffff !important;
    border: 1px solid var(--tr-line) !important;
    border-radius: 3px !important;
    height: 44px;
}

body.theme-refresh .login-split-form .form-control:focus {
    border-color: #02a499 !important;
    box-shadow: 0 0 0 3px rgba(2, 164, 153, 0.18) !important;
}

body.theme-refresh .login-split-form .btn-primary {
    background: #02a499 !important;
    border-color: #02a499 !important;
    border-radius: 3px !important;
    font-weight: 700;
    height: 44px;
    margin-top: 8px;
}

body.theme-refresh .login-split-form .btn-primary:hover,
body.theme-refresh .login-split-form .btn-primary:focus {
    background: var(--tr-navy) !important;
    border-color: var(--tr-navy) !important;
}

body.theme-refresh .login-split-form .login-footer {
    margin-top: 28px;
    color: var(--tr-muted) !important;
    font-size: 12px;
}

body.theme-refresh .login-split-form .login-footer a {
    color: #02a499 !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.theme-refresh .dashboard-wrapper {
        padding: 12px;
    }

    body.theme-refresh .header-item.font-size-16 {
        font-size: 13px !important;
        padding: 6px 10px;
    }

    body.theme-refresh .login-split {
        flex-direction: column;
    }

    body.theme-refresh .login-split-brand,
    body.theme-refresh .login-split-form {
        width: 100%;
        min-height: auto;
        padding: 32px 20px;
    }

    body.theme-refresh .login-split-brand {
        padding-top: 48px;
        padding-bottom: 36px;
    }

    body.theme-refresh .login-split-brand::after {
        display: none;
    }

    body.theme-refresh .login-split-brand-inner h1 {
        font-size: 24px;
    }
}
