/* =================================================================
   style.css - Enhanced Typography Scale & Professional Corporate UI
   ================================================================= */

:root {
    /* ---- Palette ---- */
    --color-bg: #F8FAFC;            /* Clean Slate paper background */
    --color-surface: #FFFFFF;       /* Pure white panels */
    --color-surface-hover: #F1F5F9; /* Subtle hover state */
    --color-ink: #0F172A;           /* Slate Navy - primary text */
    --color-ink-soft: #334155;      /* Secondary dark text */
    --color-muted: #64748B;         /* Metadata / Quiet text */
    --color-border: #E2E8F0;        /* Hairline borders */
    --color-border-subtle: #F1F5F9; /* Table row dividers */

    /* ---- Corporate Accent (Sapphire Blue) ---- */
    --color-accent: #2563EB;        
    --color-accent-hover: #1D4ED8;  
    --color-accent-soft: #EFF6FF;   

    /* ---- Status Colors ---- */
    --color-success: #15803D;       --color-success-soft: #DCFCE7;
    --color-danger:  #B91C1C;       --color-danger-soft:  #FEE2E2;
    --color-warning: #B45309;       --color-warning-soft: #FEF3C7;
    --color-info:    #0369A1;       --color-info-soft:    #E0F2FE;
    --color-neutral: #475569;       --color-neutral-soft: #F1F5F9;

    /* ---- Readable Font Stack ---- */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ---- Spacing & Radius ---- */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --gap: 22px;

    /* ---- Shadows & Depth ---- */
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);

    /* ---- Transitions ---- */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-ink);
    font-size: 15.5px; /* Increased from 14px for improved eye comfort */
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color var(--transition-fast);
}

button, .btn { 
    font-family: inherit; 
    cursor: pointer; 
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

h1, h2, h3 { 
    font-family: var(--font-display); 
    color: var(--color-ink);
    letter-spacing: -0.025em;
}

/* =================================================================
   LAYOUT SHELL
   ================================================================= */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar {
    width: 260px; /* Slightly wider for larger text */
    flex-shrink: 0;
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 8px 24px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seal-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
}
.seal-mark span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: #60A5FA;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.2;
}
.brand-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px; /* Increased from 13.5px */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    transition: all var(--transition-fast);
}
.nav-link svg { 
    width: 20px;
    height: 20px;
    flex-shrink: 0; 
    opacity: 0.8; 
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}
.nav-link:hover svg { 
    opacity: 1; 
}

.nav-link.active {
    background: var(--color-accent);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.nav-link.active svg { 
    opacity: 1; 
    color: #FFFFFF; 
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-footer .user-name { color: #FFFFFF; font-weight: 600; font-size: 14.5px; }
.sidebar-footer .user-role { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; margin-top: 2px; }

/* ---------------- RIGHT SIDE ---------------- */
.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 72px; /* Raised for cleaner spacing */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 9;
}

.topbar-heading {
    font-family: var(--font-display);
    font-size: 20px; /* Increased from 18px */
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notif-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-soft);
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.notif-bell:hover {
    background: var(--color-surface-hover);
    color: var(--color-ink);
}
.notif-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--color-danger);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    box-shadow: 0 0 0 2px var(--color-surface);
}

.topbar-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
}

.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 12.5px; color: var(--color-muted); }

.main-content {
    flex: 1;
    padding: 36px 40px 56px;
    animation: fadeInUp 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 18px; /* Larger click targets */
    font-size: 14.5px;  /* Increased from 13px */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.btn:active {
    transform: translateY(1px);
}

.btn-outline {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-ink);
}
.btn-outline:hover { 
    border-color: var(--color-muted);
    background: var(--color-surface-hover);
}

.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
}
.btn-primary:hover { 
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
}

/* =================================================================
   DASHBOARD - WELCOME BANNER
   ================================================================= */
.welcome-banner {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.welcome-banner h1 {
    font-size: 30px; /* Increased from 26px */
    font-weight: 800;
    margin-top: 2px;
}
.eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}
.muted { color: var(--color-muted); font-size: 15px; margin-top: 4px; }

.today-box { text-align: right; }
.today-date { font-size: 14px; margin: 6px 0 14px; color: var(--color-ink-soft); font-weight: 500; }
.today-actions { display: flex; gap: 10px; }

/* =================================================================
   SECTION HEADINGS
   ================================================================= */
.card-section { margin-bottom: 40px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}
.card-section h2 { font-size: 20px; font-weight: 700; }
.section-note { font-size: 13.5px; color: var(--color-muted); }

/* =================================================================
   STAT CARDS
   ================================================================= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap);
}

.stat-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--accent-color, var(--color-border));
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px; /* Increased from 32px */
    font-weight: 800;
    color: var(--color-ink);
    margin-bottom: 2px;
    line-height: 1.1;
}
.stat-label { font-size: 14px; color: var(--color-muted); font-weight: 500; }

.stat-new      { --accent-color: var(--color-info); }
.stat-open     { --accent-color: var(--color-neutral); }
.stat-resolved { --accent-color: var(--color-success); }
.stat-overdue  { --accent-color: var(--color-danger); }
.stat-pending  { --accent-color: var(--color-warning); }

/* =================================================================
   ADMISSIONS FUNNEL
   ================================================================= */
.funnel-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.funnel {
    display: flex;
    position: relative;
    min-width: 660px;
}

.funnel::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--color-border);
}

.funnel-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.funnel-node {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth);
}
.funnel-step:hover .funnel-node {
    transform: scale(1.08);
}

.funnel-step:first-child .funnel-node,
.funnel-step:last-child .funnel-node {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.funnel-label {
    font-size: 13.5px;
    color: var(--color-muted);
    font-weight: 500;
}

/* =================================================================
   PAGE HEADER
   ================================================================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.page-subtitle { color: var(--color-muted); font-size: 14.5px; margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =================================================================
   FILTER FORM
   ================================================================= */
.filter-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filter-row:last-child { margin-bottom: 0; }

.filter-field { display: flex; flex-direction: column; gap: 8px; }
.filter-field-grow { flex: 1; min-width: 240px; }
.filter-field label { font-size: 13px; font-weight: 600; color: var(--color-ink-soft); }

.filter-field select,
.filter-field input[type="text"] {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14.5px; /* Increased from 13.5px */
    font-family: inherit;
    min-width: 200px;
    background: var(--color-surface);
    color: var(--color-ink);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.filter-field select:focus,
.filter-field input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-ink-soft);
    cursor: pointer;
}

/* =================================================================
   DATA TABLE
   ================================================================= */
.table-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
    text-align: left;
    font-size: 13px; /* Increased from 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    background: var(--color-bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
}
.data-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: 15px; /* Increased from 13.5px */
    transition: background var(--transition-fast);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-surface-hover); }

.truncate {
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.empty-row { text-align: center; color: var(--color-muted); padding: 48px !important; }

/* Status Indicators */
.severity-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
}
.severity-low      { background: var(--color-neutral); }
.severity-medium   { background: var(--color-warning); }
.severity-high     { background: #D97706; }
.severity-critical { background: var(--color-danger); }

.status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 13px; /* Increased from 12px */
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}

.status-new      { background: var(--color-info-soft);    color: var(--color-info); }
.status-open     { background: var(--color-neutral-soft); color: var(--color-neutral); }
.status-resolved { background: var(--color-success-soft); color: var(--color-success); }
.status-overdue  { background: var(--color-danger-soft);  color: var(--color-danger); }
.status-pending  { background: var(--color-warning-soft); color: var(--color-warning); }

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        width: 76px;
        padding: 20px 10px;
    }
    .sidebar-brand { justify-content: center; padding: 0 0 18px; }
    .brand-name, .brand-sub, .sidebar-footer .user-name, .sidebar-footer .user-role,
    .nav-link span { display: none; }
    .nav-link { justify-content: center; padding: 14px; }
}

@media (max-width: 640px) {
    .main-content { padding: 24px 20px; }
    .welcome-banner { flex-direction: column; align-items: flex-start; }
    .today-box { text-align: left; }
    .topbar { padding: 0 20px; }
}


/* ================================================================
   MODERN ACTION MENU DROPDOWN STYLES
   ================================================================ */
.action-dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}

.btn-action-trigger {
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    color: var(--color-text, #1e293b);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-action-trigger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-action-trigger::after {
    content: "▾";
    font-size: 10px;
    color: #64748b;
}

.action-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 6px 0;
    animation: fadeIn 0.15s ease-out;
}

.action-dropdown.active .action-menu {
    display: block;
}

.action-menu-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 6px 14px 4px 14px;
}

.action-menu-item {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 8px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.action-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.action-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   COMPLAINT MODAL POPUP STYLES
   ================================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-ref-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary, #2563eb);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #0f172a;
}

.modal-body {
    padding: 20px 24px 24px 24px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-meta-grid label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
}

.modal-description-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.modal-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13.5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================================================================
   MODAL COMMENTS SECTION
   ================================================================ */
.modal-comments-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.comment-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-meta {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.comment-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    white-space: pre-wrap;
}

.comment-textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}


/* ================================================================
   TYPOGRAPHY & BRANDING IMPROVEMENTS
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0f172a;
    background-color: #f8fafc;
}

h1, h2, h3, h4, .page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

th {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

td {
    font-size: 13.5px;
    font-weight: 400;
    color: #334155;
}

/* ================================================================
   ACTION VIEW BUTTON WITH ICON
   ================================================================ */
.btn-view-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-view-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-view-action svg {
    width: 14px;
    height: 14px;
    stroke: #64748b;
    transition: stroke 0.15s ease;
}

.btn-view-action:hover svg {
    stroke: #2563eb;
}

/* ================================================================
   MODAL COMMENTS SECTION
   ================================================================ */
.modal-comments-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.comment-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-meta {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.comment-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    white-space: pre-wrap;
}

.comment-textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}


/* ================================================================
   LAYOUT FIX FOR SIDEBAR & MAIN CONTENT ALIGNMENT
   ================================================================ */
body {
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.main-content, 
.page-container, 
main {
    margin-left: 250px;
    flex: 1;
    width: calc(100% - 250px);
    box-sizing: border-box;
    padding: 24px;
}