@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary: #0423A9;
    --primary-dark: #031b85;
    --primary-light: #0a3ad4;
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --sidebar-bg: var(--primary);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.18);
    --sidebar-text: rgba(255, 255, 255, 0.6);
    --sidebar-text-active: #ffffff;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 20px 20px 0;
    padding: 0 0 1rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
}

.sidebar-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sidebar-brand a img {
    width: 140px;
    height: auto;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.sidebar-nav .nav-label {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.sidebar-nav .nav-item {
    margin: 2px 10px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    color: var(--sidebar-text);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    color: var(--sidebar-text-active);
    background-color: var(--sidebar-hover);
}

.sidebar-nav .nav-link.active {
    color: var(--sidebar-text-active);
    background-color: var(--sidebar-active);
    font-weight: 600;
}

.sidebar-nav .nav-link .nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ================================================================
   TOP NAVBAR
   ================================================================ */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--navbar-height);
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #e9edf5;
    display: flex;
    align-items: center;
    padding-left: 3.5rem;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Logo — shown only on small screens via Bootstrap d-md-none */
.navbar-mobile-logo {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-mobile-logo img {
    height: 25px;
    width: auto;
    object-fit: contain;
    left: 50px;
    position: relative;
}

/* Search Bar */
.navbar-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    left: 35px;
}

.navbar-search .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
}

.navbar-search .form-control {
    padding: 0.55rem 4.5rem 0.55rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.82rem;
    background: #f8fafc;
    color: #334155;
    transition: all 0.2s ease;
}

.navbar-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.08);
    background: #fff;
}

.navbar-search .form-control::placeholder {
    color: #a0aec0;
}

.navbar-search .search-shortcut {
    position: absolute;
    right: 12px;
    pointer-events: none;
}

.navbar-search .search-shortcut kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-family: 'Roboto', sans-serif;
    color: #94a3b8;
    font-weight: 600;
}

/* Icon Buttons */
.navbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #64748b;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-icon-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.navbar-icon-btn .bx {
    font-size: 1.35rem;
}

.badge-dot {
    position: absolute;
    top: 4px;
    right: 3px;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

/* User Dropdown Button */
.navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 5px 12px 5px 5px;
    border-radius: 50px;
    border: 1.5px solid #e9edf5;
    transition: all 0.2s ease;
    background: #fff;
}

.navbar-user-btn::after {
    display: none;
}

.navbar-user-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.user-role {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Dropdown Menu */
.navbar-dropdown {
    border: 1px solid #e9edf5;
    border-radius: 14px;
    padding: 0.5rem 0;
    min-width: 240px;
    margin-top: 8px !important;
}

.navbar-dropdown .dropdown-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.user-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.navbar-dropdown .dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    border-radius: 0;
    color: #334155;
    font-weight: 500;
}

.navbar-dropdown .dropdown-item:hover {
    background: #f8fafc;
}

.navbar-dropdown .dropdown-item .bx {
    font-size: 1.15rem;
    color: #94a3b8;
}

.navbar-dropdown .dropdown-item.text-danger .bx {
    color: #ef4444;
}

.navbar-dropdown .dropdown-divider {
    margin: 0.35rem 0;
    border-color: #f1f5f9;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--navbar-height);
    min-height: 100vh;
    background-color: #f4f6fb;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content .content-wrapper {
    padding: 1.5rem;
}

/* Dashboard Hero Banner */
.dashboard-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -120px;
    right: -60px;
}

.dashboard-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    color: #fff;
}

.dashboard-hero .hero-badge .bx {
    font-size: 0.9rem;
}

.dashboard-hero h2 {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.dashboard-hero p {
    opacity: 0.8;
    font-size: 0.88rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* ================================================================
   FOOTER
   ================================================================ */
.main-footer {
    margin-left: var(--sidebar-width);
    padding: 1rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e9edf5;
    font-size: 0.78rem;
    color: #94a3b8;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   GUEST / LOGIN LAYOUT
   ================================================================ */
.guest-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.guest-wrapper::before,
.guest-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: #fff;
}

.guest-wrapper::before {
    width: 500px;
    height: 500px;
    top: -180px;
    right: -120px;
}

.guest-wrapper::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: visible;
    position: relative;
    z-index: 1;
    background: #fff;
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -40px;
    margin-bottom: 10px;
}

.login-logo-box {
    background: #fff;
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-logo-box img {
    height: 40px;
    width: auto;
}

.login-subtitle {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 1.75rem;
}

.login-card .card-body {
    padding: 0 2.25rem 2rem;
}

.login-card .form-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #333;
    margin-bottom: 0.4rem;
}

.login-card .form-control {
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    background: #f8f9fb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.1);
    background: #fff;
}

.login-card .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.83rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 22px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #555;
}

.forgot-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(4, 35, 169, 0.35);
    color: #fff;
}

.login-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.25rem 1.75rem;
}

.login-footer-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
}

.login-footer-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* ================================================================
   SIDEBAR TOGGLE BUTTON & OVERLAY
   ================================================================ */

/* Desktop toggle — sits in the navbar area */
.sidebar-toggle-btn {
    position: fixed;
    top: 14px;
    left: calc(var(--sidebar-width) + 14px);
    z-index: 1035;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease,
                color 0.2s ease;
    padding: 0;
}

.sidebar-toggle-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-toggle-btn .toggle-icon-menu {
    font-size: 1.35rem;
}

/* When collapsed on desktop, move button to left edge */
body.sidebar-collapsed .sidebar-toggle-btn {
    left: 14px;
}

/* Sidebar close button (mobile only, inside sidebar header) */
.sidebar-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-close-btn .bx {
    font-size: 1.2rem;
}

/* Sidebar brand needs relative for close btn positioning */
.sidebar-brand {
    position: relative;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ================================================================
   BOOTSTRAP OVERRIDES
   ================================================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* ================================================================
   USER MANAGEMENT
   ================================================================ */

/* Hero Add Button */
.hero-actions {
    position: absolute;
    top: 2rem;
    right: 2.25rem;
    z-index: 1;
}

.btn-hero-add {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-hero-add:hover {
    background: #f0f4ff;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero-add .bx {
    font-size: 1.1rem;
}

/* Hero Breadcrumb */
.hero-breadcrumb {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.35rem;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-breadcrumb .separator {
    margin: 0 0.5rem;
}

/* Search & Export Toolbar */
.users-toolbar {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f2f8;
}

.users-search {
    position: relative;
    flex: 1;
    max-width: 450px;
}

.users-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
}

.users-search .form-control {
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.82rem;
    background: #f8fafc;
}

.users-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.08);
    background: #fff;
}

.btn-export {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-export:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-export .bx {
    font-size: 1.1rem;
}

/* User Card (horizontal list layout) */
/* ── User Card ─────────────────────────────────────── */
.user-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef1f6;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.user-card:hover {
    box-shadow: 0 4px 20px rgba(4, 35, 169, 0.06);
    border-color: #dde3ed;
}

/* Left Section: Avatar + Info */
.user-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.user-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    border-radius: 50%;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-card-info {
    min-width: 0;
}

.user-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.user-card-email {
    font-size: 0.73rem;
    color: #94a3b8;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Center Section: Meta Columns */
.user-card-meta {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    flex-shrink: 0;
}

.meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 72px;
}

.meta-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a0aec0;
    line-height: 1;
    margin-bottom: 15px;
}

.meta-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1;
}

/* Status Badge */
.meta-badge {
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.meta-badge-active {
    color: #059669;
}

.meta-badge-active .meta-dot {
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.meta-badge-inactive {
    color: #dc2626;
}

.meta-badge-inactive .meta-dot {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Action Column */
.meta-col-actions {
    border-left: 1px solid #f0f2f8;
    padding-left: 1.25rem;
    margin-left: 0.75rem;
}

/* Action Buttons */
.user-card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-divider {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
    margin: 0 2px;
}

.btn-card-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none;
    background: transparent;
    color: #b0b8c9;
}

.btn-card-action .bx {
    font-size: 1.15rem;
}

.btn-action-edit:hover {
    background: #fff7ed;
    color: #ea580c;
}

.btn-action-delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Form Card (Create/Edit User) */
.form-card {
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.form-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card-title .bx {
    font-size: 1.3rem;
    color: var(--primary);
}

.form-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0 1.25rem;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.form-section-divider span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.form-card .form-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #333;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.form-card .form-label .bx {
    font-size: 1rem;
    color: var(--primary);
}

.form-card .form-label .required {
    color: #dc2626;
    font-weight: 700;
}

.form-card .form-control,
.form-card .form-select {
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    background: #f8f9fb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.1);
    background: #fff;
}

/* Form Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.btn-form-cancel {
    background: #fff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-form-cancel:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-form-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 35, 169, 0.3);
    color: #fff;
}

/* Status Toggle */
.status-toggle-wrapper {
    background: #f8f9fb;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-toggle-wrapper .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
}

.status-toggle-wrapper .form-check-input:checked {
    background-color: #059669;
    border-color: #059669;
}

.status-toggle-wrapper .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

/* Success Alert */
.alert-success-custom {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success-custom .bx {
    font-size: 1.15rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state .bx {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    gap: 0.25rem;
}

.pagination-wrapper .page-link {
    border-radius: 8px;
    font-size: 0.78rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.75rem;
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.ProfilePicture{
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ================================================================
   VALUATION CASES
   ================================================================ */

/* Case Card */
.case-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef1f6;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.case-card:hover {
    box-shadow: 0 4px 20px rgba(4, 35, 169, 0.06);
    border-color: #dde3ed;
}

.case-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.case-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.case-card-info {
    min-width: 0;
}

.case-card-id {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.case-card-address {
    font-size: 0.73rem;
    color: #94a3b8;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-card-meta {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    flex-shrink: 0;
}

/* Priority Badges */
.priority-high {
    color: #dc2626;
}

.priority-high .meta-dot {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.priority-medium {
    color: #d97706;
}

.priority-medium .meta-dot {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.priority-low {
    color: #059669;
}

.priority-low .meta-dot {
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

/* View Action Button */
.btn-action-view:hover {
    background: #eff6ff;
    color: var(--primary);
}

/* Property Type Grid */
.property-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}

.property-type-option {
    cursor: pointer;
}

.property-type-option input[type="radio"] {
    display: none;
}

.property-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fb;
    transition: all 0.2s ease;
    text-align: center;
}

.property-type-card .bx {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.property-type-card span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

.property-type-option:hover .property-type-card {
    border-color: var(--primary);
    background: #f0f4ff;
}

.property-type-option:hover .property-type-card .bx {
    color: var(--primary);
}

.property-type-option.selected .property-type-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(4, 35, 169, 0.06) 0%, rgba(4, 35, 169, 0.02) 100%);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.08);
}

.property-type-option.selected .property-type-card .bx {
    color: var(--primary);
}

.property-type-option.selected .property-type-card span {
    color: var(--primary);
    font-weight: 700;
}

/* Priority Selector */
.priority-selector {
    display: flex;
    gap: 0.75rem;
}

.priority-option {
    flex: 1;
    cursor: pointer;
}

.priority-option input[type="radio"] {
    display: none;
}

.priority-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8f9fb;
    transition: all 0.2s ease;
}

.priority-card .bx {
    font-size: 1rem;
}

.priority-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* Low */
.priority-option:hover .priority-card.priority-low,
.priority-option.selected .priority-card.priority-low {
    border-color: #059669;
    background: #ecfdf5;
}

.priority-option:hover .priority-card.priority-low .bx,
.priority-option:hover .priority-card.priority-low span,
.priority-option.selected .priority-card.priority-low .bx,
.priority-option.selected .priority-card.priority-low span {
    color: #059669;
}

/* Medium */
.priority-option:hover .priority-card.priority-medium,
.priority-option.selected .priority-card.priority-medium {
    border-color: #d97706;
    background: #fffbeb;
}

.priority-option:hover .priority-card.priority-medium .bx,
.priority-option:hover .priority-card.priority-medium span,
.priority-option.selected .priority-card.priority-medium .bx,
.priority-option.selected .priority-card.priority-medium span {
    color: #d97706;
}

/* High */
.priority-option:hover .priority-card.priority-high,
.priority-option.selected .priority-card.priority-high {
    border-color: #dc2626;
    background: #fef2f2;
}

.priority-option:hover .priority-card.priority-high .bx,
.priority-option:hover .priority-card.priority-high span,
.priority-option.selected .priority-card.priority-high .bx,
.priority-option.selected .priority-card.priority-high span {
    color: #dc2626;
}

/* Document Upload Area */
.document-upload-area {
    position: relative;
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.document-upload-area:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.document-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-hint {
    pointer-events: none;
}

.upload-hint .bx {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.upload-hint p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.upload-hint small {
    font-size: 0.72rem;
    color: #a0aec0;
}

/* File List */
.file-list {
    margin-top: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #f8f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-item-info .bx {
    font-size: 1.15rem;
    color: var(--primary);
}

.file-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.file-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 0.5rem;
}

/* ================================================================
   CHOICES.JS — Custom Theme
   ================================================================ */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    background: #f8f9fb;
    min-height: unset;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choices.is-focused .choices__inner,
.choices[data-type*="select-one"].is-open .choices__inner {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.1);
    background: #fff;
}

.choices__list--single {
    padding: 0;
}

.choices__list--single .choices__item {
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
}

.choices__list--single .choices__placeholder {
    color: #a0aec0;
    opacity: 1;
}

.choices[data-type*="select-one"]::after {
    border-color: #94a3b8 transparent transparent transparent;
    right: 14px;
    top: 50%;
    margin-top: -2.5px;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--primary) transparent;
    margin-top: -7.5px;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
    background: #fff;
    overflow: hidden;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
    color: #334155;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: rgba(4, 35, 169, 0.06);
    color: var(--primary);
}

.choices__list--dropdown .choices__item--selectable.is-selected {
    background: rgba(4, 35, 169, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input {
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    border-bottom: 1.5px solid #f1f5f9;
    background: #fafbfc;
}

.choices__list--dropdown .choices__input:focus {
    outline: none;
}

/* Choices.js Validation Error State */
.choices.is-invalid .choices__inner {
    border-color: #dc3545;
}

.choices.is-invalid.is-focused .choices__inner {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* ================================================================
   FLATPICKR — Custom Theme
   ================================================================ */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1.5px solid #e2e8f0;
    font-family: 'Roboto', sans-serif;
    width: 300px;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months {
    padding: 0.5rem 0.25rem 0;
}

.flatpickr-months .flatpickr-month {
    height: 36px;
}

.flatpickr-current-month {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    padding-top: 4px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
    font-size: 0.88rem;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 8px;
    fill: #64748b;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: var(--primary);
}

span.flatpickr-weekday {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flatpickr-day {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    height: 36px;
    line-height: 36px;
    max-width: 36px;
}

.flatpickr-day:hover {
    background: rgba(4, 35, 169, 0.06);
    border-color: transparent;
}

.flatpickr-day.today {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: rgba(4, 35, 169, 0.06);
    color: var(--primary);
    border-color: var(--primary);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.flatpickr-day.flatpickr-disabled {
    color: #cbd5e1;
}

/* Flatpickr alt input styling */
.form-card input.flatpickr-input[readonly] {
    background: #f8f9fb;
    cursor: pointer;
}

.form-card input.flatpickr-input[readonly]:focus {
    background: #fff;
}

/* Datepicker Wrapper with Icon */
.datepicker-wrapper {
    position: relative;
}

.datepicker-wrapper .form-control,
.datepicker-wrapper input.flatpickr-input {
    padding-right: 44px;
}

.datepicker-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 3;
    transition: color 0.2s ease;
}

.datepicker-wrapper:hover .datepicker-icon,
.datepicker-wrapper .form-control:focus ~ .datepicker-icon {
    color: var(--primary);
}

/* ================================================================
   VALUATION CASES — Stat Cards
   ================================================================ */
.vcase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.vcase-stat-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.25s ease;
    position: relative;
}

.vcase-stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(4, 35, 169, 0.08), 0 8px 24px rgba(4, 35, 169, 0.06);
    transform: translateY(-2px);
}

/* Top row: number left, icon right */
.vcase-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vcase-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.vcase-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.vcase-stat-icon.stat-total {
    background: rgba(4, 35, 169, 0.07);
    color: var(--primary);
}

.vcase-stat-icon.stat-active {
    background: rgba(4, 35, 169, 0.07);
    color: var(--primary);
}

.vcase-stat-icon.stat-done {
    background: rgba(4, 35, 169, 0.07);
    color: var(--primary);
}

/* Title */
.vcase-stat-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 2px;
}

/* Subtitle */
.vcase-stat-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .vcase-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 767.98px) {
    .vcase-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .vcase-stat-card {
        padding: 18px 20px 16px;
    }

    .vcase-stat-number {
        font-size: 1.8rem;
    }

    .vcase-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ================================================================
   VALUATION CASES — Table Card Design
   ================================================================ */

/* Table Card Container */
.vcase-table-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

/* ── Toolbar ─────────────────────────────────────────── */
.vcase-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1.5px solid #f1f5f9;
    flex-wrap: wrap;
}

.vcase-search {
    position: relative;
    flex: 0 0 220px;
}

.vcase-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: #94a3b8;
}

.vcase-search input {
    width: 100%;
    height: 36px;
    padding: 0 0.75rem 0 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: inherit;
    color: #334155;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vcase-search input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.06);
}

.vcase-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.vcase-filter {
    height: 36px;
    padding: 0 1.8rem 0 0.65rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.76rem;
    font-family: inherit;
    color: #475569;
    background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.5rem center / 10px 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    white-space: nowrap;
    width: 160px;
}

.vcase-filter:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.06);
}

/* ── Case Cards Grid ─────────────────────────────────── */
.vcase-cards {
    display: flex;
    flex-direction: column;
}

.vcase-card {
    border-bottom: 1.5px solid #e5e5e5;
    transition: background-color 0.15s ease;
}

.vcase-card:last-child {
    border-bottom: none;
}

.vcase-card:hover {
    background-color: #fafbfd;
}

/* Card Header */
.vcase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0;
}

.vcase-card-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Card Body — data grid */
.vcase-card-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem 1.5rem;
    padding: 0.75rem 1.25rem;
}

.vcase-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vcase-card-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.vcase-card-value {
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
}

.vcase-card-value.client-name {
    font-weight: 600;
    color: #1e293b;
}

.vcase-card-value .sub-text {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Card Footer — action pills */
.vcase-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0.6rem 1.25rem 1rem;
    justify-content: space-between;
}

/* ── Cell Styles ─────────────────────────────────────── */

/* Case ID Link */
.vcase-id-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.vcase-id-link i {
    font-size: 1.05rem;
    opacity: 0.6;
}

.vcase-id-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Ref */
.vcase-ref {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

/* Client */
.vcase-client {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vcase-client-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.vcase-client-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Team */
.vcase-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vcase-team-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.2;
}

.vcase-team-row i {
    font-size: 0.85rem;
    color: #94a3b8;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Location */
.vcase-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.vcase-location i {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Status Badges */
.case-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Case Created — blue */
.status-created {
    background: #eff6ff;
    color: #2563eb;
}
.status-created .status-dot { background: #2563eb; }

/* Survey Scheduled — indigo */
.status-scheduled {
    background: #eef2ff;
    color: #4f46e5;
}
.status-scheduled .status-dot { background: #4f46e5; }

/* Survey Completed — teal */
.status-survey-done {
    background: #f0fdfa;
    color: #0d9488;
}
.status-survey-done .status-dot { background: #0d9488; }

/* Drafting In Progress — sky */
.status-drafting {
    background: #f0f9ff;
    color: #0284c7;
}
.status-drafting .status-dot { background: #0284c7; }

/* Valuation Calculation Draft Ready — violet */
.status-draft-ready {
    background: #f5f3ff;
    color: #7c3aed;
}
.status-draft-ready .status-dot { background: #7c3aed; }

/* Manager Review — amber */
.status-review {
    background: #fffbeb;
    color: #d97706;
}
.status-review .status-dot { background: #d97706; }

/* Partner Sign Off — orange */
.status-signoff {
    background: #fff7ed;
    color: #ea580c;
}
.status-signoff .status-dot { background: #ea580c; }

/* Report Sent — emerald */
.status-sent {
    background: #ecfdf5;
    color: #059669;
}
.status-sent .status-dot { background: #059669; }

/* Case Completed — green */
.status-completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.status-completed .status-dot { background: #16a34a; }

/* Hold — slate */
.status-hold {
    background: #f1f5f9;
    color: #475569;
}
.status-hold .status-dot { background: #475569; }

/* Document Awaited / Survey Confirmation Awaited — rose */
.status-awaited {
    background: #fff1f2;
    color: #e11d48;
}
.status-awaited .status-dot { background: #e11d48; }

/* ── Inline Status Dropdown ─────────────────────────── */
.vcase-status-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 0.22rem 1.8rem 0.22rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 10px 6px;
    white-space: nowrap;
    max-width: 240px;
}

.vcase-status-select:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vcase-status-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 35, 169, 0.08);
}

/* Color-code the select based on current status */
.vcase-status-select.status-created { background-color: #eff6ff; color: #2563eb; }
.vcase-status-select.status-scheduled { background-color: #eef2ff; color: #4f46e5; }
.vcase-status-select.status-survey-done { background-color: #f0fdfa; color: #0d9488; }
.vcase-status-select.status-drafting { background-color: #f0f9ff; color: #0284c7; }
.vcase-status-select.status-draft-ready { background-color: #f5f3ff; color: #7c3aed; }
.vcase-status-select.status-review { background-color: #fffbeb; color: #d97706; }
.vcase-status-select.status-signoff { background-color: #fff7ed; color: #ea580c; }
.vcase-status-select.status-sent { background-color: #ecfdf5; color: #059669; }
.vcase-status-select.status-completed { background-color: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.vcase-status-select.status-hold { background-color: #f1f5f9; color: #475569; }
.vcase-status-select.status-awaited { background-color: #fff1f2; color: #e11d48; }

/* ── Pill Action Buttons ─────────────────────────────── */
.vcase-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border-radius: 20px;
    border: 1.5px solid transparent;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.vcase-pill i {
    font-size: 0.92rem;
    line-height: 1;
}

.vcase-pill:hover {
    transform: translateY(-1px);
}

/* Core group — blue */
.vcase-pill-core {
    background: rgba(4, 35, 169, 0.06);
    color: var(--primary);
    border-color: rgba(4, 35, 169, 0.15);
}

.vcase-pill-core:hover {
    background: rgba(4, 35, 169, 0.14);
    color: var(--primary);
    border-color: rgba(4, 35, 169, 0.3);
    box-shadow: 0 2px 8px rgba(4, 35, 169, 0.1);
}

/* Survey group — indigo */
.vcase-pill-survey {
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.15);
}

.vcase-pill-survey:hover {
    background: rgba(99, 102, 241, 0.14);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

/* Report group — teal */
.vcase-pill-report {
    background: rgba(20, 184, 166, 0.06);
    color: #0d9488;
    border-color: rgba(20, 184, 166, 0.15);
}

.vcase-pill-report:hover {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.1);
}

/* Valuation group — amber */
.vcase-pill-calc {
    background: rgba(245, 158, 11, 0.06);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.15);
}

.vcase-pill-calc:hover {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

/* Delete — red */
.vcase-pill-delete {
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.12);
}

.vcase-pill-delete:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

/* Group divider */
.vcase-pill-divider {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 2px;
}

/* ── Custom Tooltips ────────────────────────────────── */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

/* Tooltip bubble */
[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    letter-spacing: 0.2px;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Tooltip arrow */
[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

/* Show on hover */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

[data-tooltip]:hover::before {
    transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Delete pill — red-tinted tooltip */
.vcase-pill-delete[data-tooltip]::before {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.vcase-pill-delete[data-tooltip]::after {
    border-top-color: #991b1b;
}

/* ── Empty State ─────────────────────────────────────── */
.vcase-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.vcase-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.vcase-empty p {
    font-size: 0.85rem;
    margin: 0;
}

/* ── Pagination ──────────────────────────────────────── */
.vcase-pagination {
    padding: 0.75rem 1.25rem;
    border-top: 1.5px solid #f1f5f9;
}

/* ── Mobile Cards (hidden on desktop) ────────────────── */
.vcase-mobile-cards {
    display: none;
}

.vcase-mcard {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
}

.vcase-mcard:last-child {
    border-bottom: none;
}

.vcase-mcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.vcase-mcard-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    margin-bottom: 0.6rem;
}

.vcase-mcard-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vcase-mcard-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.vcase-mcard-value {
    font-size: 0.8rem;
    color: #334155;
    font-weight: 500;
}

.vcase-mcard-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Case Detail Top Bar */
.case-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.case-detail-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Detail Labels & Values (show page) */
.detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
}

/* ================================================================
   RESPONSIVE — Cases Index
   ================================================================ */
@media (max-width: 991.98px) {
    .vcase-cards {
        display: none;
    }
    .vcase-mobile-cards {
        display: block;
    }
    .vcase-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .vcase-search {
        flex: 1 1 100%;
    }
    .vcase-filters {
        margin-left: 0;
        width: 100%;
    }
    .vcase-filter {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .vcase-card-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .vcase-filters {
        flex-direction: column;
    }
    .vcase-mcard-body {
        grid-template-columns: 1fr;
    }
    .case-detail-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .vcase-card-body {
        grid-template-columns: 1fr;
    }
    .vcase-pill span {
        display: none;
    }
    .vcase-pill {
        padding: 0 8px;
    }
}

/* Responsive styles in responsive.css */
