/**
 * Modern UI Enhancements for Recruit Application
 * ------------------------------------------------
 * Pure CSS cosmetic upgrades - no layout changes
 * Compatible with AdminLTE 4 + Bootstrap 5
 *
 * @version 1.0.0
 * @date 2026-01-26
 */

/* ==========================================================================
   GLOBAL ENHANCEMENTS
   ========================================================================== */

/* Body styles defined in design-tokens.css */

/* Tighter content spacing */
.app-main {
    padding: 0.75rem !important;
}

.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Reduce row gaps - keep for grid density */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row>[class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* NOTE: Removed aggressive margin overrides (.mb-3, .mb-4, etc.)
   that were breaking Bootstrap spacing - let Bootstrap defaults work */

/* ==========================================================================
   BUTTON SPACING & ACTION TOOLBAR
   ========================================================================== */

/* Horizontal button spacing - buttons next to each other */
.btn+.btn {
    margin-left: 0.5rem;
}

/* Vertical button stacks - buttons stacked on top of each other */
.d-grid .btn+.btn,
.btn-stack .btn+.btn {
    margin-top: 0.75rem;
    margin-left: 0;
}

/* Force d-grid buttons to be full width (clean vertical stack) */
.d-grid .btn {
    width: 100%;
}

/* Quick actions card - dashboard and sidebars */
.card-body>.d-grid {
    gap: 0.75rem;
}

/* ==========================================================================
   ACTION TOOLBAR - Professional button container for view pages
   ========================================================================== */

/* Action toolbar wrapper - groups primary and secondary actions */
.action-toolbar {
    background: var(--bg-subtle);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-subtle);
}

/* Action toolbar - flexbox container with proper wrapping */
.action-buttons,
.card-body>div:first-child:not(.d-grid):not(.row):not(.action-toolbar),
.mt-4.border-top.pt-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Minimum button width for consistency */
.action-buttons .btn,
.mt-4.border-top.pt-3 .btn {
    min-width: 130px;
}

/* Primary actions group - slight visual separation */
.action-toolbar-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

/* Secondary actions (back, cancel, etc.) */
.action-toolbar-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

/* Compact button sizing within action toolbar */
.action-toolbar .btn {
    font-size: var(--font-size-base);
    padding: 0.25rem 0.625rem;
    white-space: nowrap;
}

/* Card footer buttons */
.card-footer .btn+.btn {
    margin-left: 0.5rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better text rendering */
* {
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   CARDS - Subtle, professional styling
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base);
    overflow: hidden;
    margin-bottom: var(--section-gap);
}

/* Only interactive cards get hover elevation */
.card-interactive:hover,
.card[role="link"]:hover,
.card[onclick]:hover,
a.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    padding: var(--space-4) var(--card-padding);
    min-height: 56px;
}

/* Card header title - flex:1 ensures title takes available space */
.card-header .card-title,
.card-header h3.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: var(--line-height-tight);
}

/* Card header tools (buttons) - pushed to the right via margin-left:auto */
.card-header .card-tools {
    margin-right: 0;
    margin-left: auto;
}

.card-header .card-tools .btn {
    padding: 0.35rem 0.75rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    min-height: auto;
}

.card-primary.card-outline {
    border-top: 3px solid var(--color-primary);
}

.card-success.card-outline {
    border-top: 3px solid var(--color-success);
}

.card-warning.card-outline {
    border-top: 3px solid var(--color-warning);
}

.card-danger.card-outline {
    border-top: 3px solid var(--color-danger);
}

.card-info.card-outline {
    border-top: 3px solid var(--color-info);
}

.card-title {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

/* card-body padding set in components.css */

/* ==========================================================================
   Card Collapse Animation - Smooth transitions for AdminLTE cards
   ========================================================================== */

/* Smooth transitions for collapsible card body */
.card .card-body {
    transition: opacity 0.25s ease-in-out, padding 0.25s ease-in-out;
}

/* Collapsed card body - smooth hide */
.card.collapsed-card .card-body {
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Override AdminLTE's default display:none with visibility for smooth transitions */
.card.collapsed-card .card-body[style*="display: none"] {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Smooth toggle button icon rotation */
.card .card-tools .btn-tool {
    transition: transform 0.2s ease-in-out, background-color 0.15s ease-in-out;
}

.card .card-tools .btn-tool i {
    transition: transform 0.25s ease-in-out;
}

/* Rotate icon when collapsed */
.card.collapsed-card .card-tools .btn-tool i.fa-minus {
    transform: rotate(180deg);
}

/* Small boxes (Dashboard stats) */
.small-box {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base);
    margin-bottom: var(--section-gap);
    position: relative;
    border: 1px solid var(--border-subtle);
}

.small-box .inner {
    padding: 1rem 1rem;
    min-height: 80px;
}

.small-box .inner h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

.small-box .inner p {
    font-size: var(--font-size-md);
    font-weight: 500;
}

.small-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.small-box .icon {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.small-box .icon > i {
    font-size: 60px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.small-box:hover .icon {
    color: rgba(255, 255, 255, 0.9);
}

.small-box-footer {
    background: rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.small-box-footer:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   BUTTONS - Modern Rounded Design
   ========================================================================== */

.btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Larger action buttons - more prominent with generous padding */
.btn:not(.btn-xs):not(.btn-sm) {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
}

/* Large action buttons (view page footer) - pill-like rounded */
.action-buttons .btn,
.mt-4.border-top.pt-3 .btn,
.d-flex.gap-2 .btn,
.d-flex.gap-3 .btn {
    border-radius: 10px;
    padding: 0.75rem 1.75rem;
    font-size: var(--font-size-md);
    font-weight: 500;
    min-height: 48px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Smooth hover transitions */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Icon alignment in buttons */
.btn i,
.btn .fas,
.btn .far,
.btn .fa {
    font-size: 0.9em;
}

/* Primary Button - Enterprise blue with gradient */
.btn-primary {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary) 100%);
    color: var(--text-inverse);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.4);
}

/* Success Button - Professional green with gradient */
.btn-success {
    background: linear-gradient(180deg, var(--color-success) 0%, var(--color-success) 100%);
    color: var(--text-inverse);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(54, 179, 126, 0.3);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(180deg, var(--color-success) 0%, var(--color-success-hover) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(54, 179, 126, 0.4);
}

/* Danger Button - Professional red with gradient */
.btn-danger {
    background: linear-gradient(180deg, var(--color-danger) 0%, var(--color-danger) 100%);
    color: var(--text-inverse);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(222, 53, 11, 0.3);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(180deg, var(--color-danger) 0%, var(--color-danger-hover) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(222, 53, 11, 0.4);
}

/* Warning Button - Amber with gradient */
.btn-warning {
    background: linear-gradient(180deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--text-primary);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(255, 171, 0, 0.3);
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(180deg, var(--color-warning) 0%, var(--color-warning-hover) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(255, 171, 0, 0.4);
}

/* Info Button - Teal with gradient */
.btn-info {
    background: linear-gradient(180deg, var(--color-info) 0%, var(--color-info) 100%);
    color: var(--text-inverse);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 184, 217, 0.3);
}

.btn-info:hover,
.btn-info:focus {
    background: linear-gradient(180deg, var(--color-info) 0%, var(--color-info-hover) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(0, 184, 217, 0.4);
}

/* Secondary/Default Button - Subtle gray with border */
.btn-secondary,
.btn-default {
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-hover) 100%);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-default:hover,
.btn-default:focus {
    background: linear-gradient(180deg, var(--bg-hover) 0%, var(--border-subtle) 100%);
    color: var(--text-primary);
    border-color: var(--border-standard);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Dark Button - for special actions */
.btn-dark {
    background: linear-gradient(180deg, var(--text-secondary) 0%, var(--text-primary) 100%);
    color: var(--text-inverse);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(52, 69, 99, 0.3);
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-primary) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(52, 69, 99, 0.4);
}

/* Outline Buttons - Modern rounded style */
.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}

.btn-outline-secondary {
    border: 2px solid var(--border-emphasis);
    color: var(--text-secondary);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline-success {
    border: 2px solid var(--color-success);
    color: var(--color-success);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-success:hover {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(54, 179, 126, 0.25);
}

.btn-outline-danger {
    border: 2px solid var(--color-danger);
    color: var(--color-danger);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-danger:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(222, 53, 11, 0.25);
}

/* ============================================
   DISABLED BUTTON VISIBILITY FIX
   Ensures disabled buttons remain readable
   ============================================ */

/* Disabled button base - improve contrast */
.btn.disabled,
.btn:disabled,
.btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: auto; /* Allow tooltip to show */
}

/* Disabled secondary buttons - need darker text for visibility */
.btn-secondary.disabled,
.btn-secondary:disabled,
.btn.btn-secondary[disabled],
span.btn.btn-secondary.disabled {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-color: var(--border-standard);
    opacity: 0.9;
}

/* Disabled outline secondary - clearer styling */
.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-emphasis);
    opacity: 0.85;
}

/* Info-style disabled buttons (informational, not actionable) */
.btn.disabled[data-bs-toggle="tooltip"],
span.btn.disabled[data-bs-toggle="tooltip"] {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary-light);
    opacity: 1;
}

/* Disabled action buttons in grids/tables - subtle but visible */
.action-icons-cell .btn.disabled,
.action-column .btn.disabled,
td .btn.btn-secondary.disabled {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    opacity: 0.8;
}

/* Disabled outline-info buttons - informational/helper style */
.btn-outline-info.disabled,
.btn-outline-info:disabled,
span.btn.btn-outline-info.disabled {
    background: var(--color-info-light);
    color: var(--color-info);
    border: 1px solid var(--color-info-light);
    opacity: 1;
    cursor: help;
}

.btn-outline-warning {
    border: 2px solid var(--color-warning);
    color: var(--color-warning-dark);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-warning:hover {
    background: var(--color-warning);
    border-color: var(--color-warning);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(255, 171, 0, 0.25);
}

.btn-outline-info {
    border: 2px solid var(--color-info);
    color: var(--color-info);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-info:hover {
    background: var(--color-info);
    border-color: var(--color-info);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(0, 184, 217, 0.25);
}

.btn-outline-dark {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    border-radius: 8px;
}

.btn-outline-dark:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(52, 69, 99, 0.25);
}

/* Small Buttons - Compact but still rounded */
.btn-sm {
    border-radius: 6px;
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.85rem;
    min-height: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-xs {
    border-radius: 5px;
    font-size: var(--font-size-sm);
    padding: 0.3rem 0.6rem;
    min-height: 26px;
    box-shadow: none;
}

/* Quick Filter Buttons - Spaced and responsive */
.quick-filters .d-flex.gap-2 {
    gap: 0.5rem !important;
}

.quick-filter-btn {
    transition: all 0.2s ease;
    position: relative;
}

.quick-filter-btn.filter-active,
.quick-filter-btn.active {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 0 0 5px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.15);
    z-index: 2;
}

.quick-filter-btn:hover:not(.filter-active) {
    transform: translateY(-1px);
}

/* Loading state for filter transitions */
#jobs-grid-pjax,
#resumes-grid-pjax,
#applications-grid-pjax,
#interview-stage-pjax {
    transition: opacity 0.15s ease;
}

/* Remove hover animations from small buttons */
.btn-xs:hover,
.btn-sm:hover {
    transform: none;
    box-shadow: none;
}

.btn-xs::before,
.btn-sm::before {
    display: none;
}

/* Icon-only buttons (action buttons in tables) - Use design tokens */
.btn-xs.btn-primary,
.btn-xs.btn-info {
    background: var(--color-primary);
}

.btn-xs.btn-success {
    background: var(--color-success);
}

.btn-xs.btn-warning {
    background: var(--color-warning);
    color: var(--text-primary);
}

.btn-xs.btn-danger {
    background: var(--color-danger);
}

.btn-xs:hover {
    filter: brightness(0.85);
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   TABLES - Clean, professional data display
   ========================================================================== */

.table {
    font-size: var(--font-size-base);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--bg-card);
}

.table thead th {
    background: var(--bg-subtle);
    border-bottom: 2px solid var(--border-standard);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-secondary);
    padding: var(--space-3) var(--space-4);
    white-space: nowrap;
}

/* Round table corners to match card container */
.card .table thead th:first-child,
.card-body .table thead th:first-child {
    border-top-left-radius: var(--radius-md);
}

.card .table thead th:last-child,
.card-body .table thead th:last-child {
    border-top-right-radius: var(--radius-md);
}

/* Tables directly in card-body (no table-responsive wrapper) */
.card-body > .table,
.card-body > .grid-view > .table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Tables in table-responsive wrapper */
.table-responsive {
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.table-responsive > .table {
    margin-bottom: 0;
}

.table-responsive > .table thead th:first-child {
    border-top-left-radius: var(--radius-md);
}

.table-responsive > .table thead th:last-child {
    border-top-right-radius: var(--radius-md);
}

.table tbody tr {
    background: var(--bg-card);
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-hover);
    /* Removed transform scale - too playful */
}

.table tbody td {
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-3) var(--space-4);
    vertical-align: middle;
    color: var(--text-primary);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
}

/* Remove bottom border from last row for clean rounded corners */
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Round bottom corners of last row in tables */
.card .table tbody tr:last-child td:first-child,
.card-body .table tbody tr:last-child td:first-child,
.table-responsive > .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.card .table tbody tr:last-child td:last-child,
.card-body .table tbody tr:last-child td:last-child,
.table-responsive > .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

/* Remove default table borders */
.table-bordered,
.table-bordered th,
.table-bordered td {
    border-top: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-left: none !important;
}

/* Striped tables - subtle alternation */
.table-striped tbody tr:nth-of-type(odd) td {
    background: var(--bg-subtle);
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   GRIDVIEW / TABLE ENHANCEMENTS (25% larger for visual priority)
   Scoped to .grid-view .table so only Yii2 GridView tables are affected.
   ========================================================================== */

/* Cell padding and font size - 25% larger */
.grid-view .table td,
.grid-view .table th {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-md);
}

/* Table headers unified style applied below instead of here */

/* Serial number column - wider and centered */
.grid-view .table td:first-child,
.grid-view .table th:first-child {
    width: 50px;
    text-align: center;
    padding-left: 1.25rem;
}

/* Add left padding to table for better spacing */
.table thead th:first-child,
.table tbody td:first-child {
    padding-left: 1.25rem;
}

/* Action column - prevent wrapping */
.grid-view .table .action-icons-cell {
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
    width: auto;
}

/* Column separators - subtle vertical lines between columns */
.grid-view .table th:not(:last-child),
.grid-view .table td:not(:last-child) {
    border-right: 1px solid var(--bg-hover);
}

.grid-view .table thead th:not(:last-child) {
    border-right: 1px solid var(--border-subtle);
}

/* Ensure table-bordered doesn't override column separators */
.table-bordered th:not(:last-child),
.table-bordered td:not(:last-child) {
    border-right: 1px solid var(--bg-hover);
}

/* GridView visual priority - make data table prominent */
/* Only apply card-like styling to standalone grid-views, not those inside cards */
.grid-view {
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

/* When grid-view is inside a card-body or table-responsive, remove card-like styling */
.card-body .grid-view,
.card-body .table-responsive .grid-view,
.table-responsive .grid-view {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
}

.grid-view .table {
    margin-bottom: 0;
    width: 100%;
}

/* Ensure tables in card bodies occupy full width */
.card-body .table,
.card-body .table-responsive .table,
.table-responsive .table,
.grid-view .table {
    width: 100%;
}

/* Stronger table headers for visual hierarchy - unified with Jobs view */
.table thead th,
.grid-view .table thead th,
.table-bordered thead th,
.table-bordered thead td {
    background: var(--bg-subtle) !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-sm) !important; /* Slightly more readable than 0.7rem */
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    border-color: var(--border-subtle) !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 12px 16px !important;
}

/* Row hover effect for better UX - uses enterprise blue */
.grid-view .table tbody tr:hover td {
    background-color: var(--color-primary-light);
}

/* Remove underline on links in table cells */
.table a,
.table tbody a,
.grid-view .table a,
.grid-view .table tbody td a {
    text-decoration: none;
}

.table a:hover,
.table tbody a:hover,
.grid-view .table a:hover,
.grid-view .table tbody td a:hover {
    text-decoration: none;
    color: var(--color-primary-hover);
}

/* Responsive: reduce on small screens but keep readable */
@media (max-width: 768px) {
    .grid-view .table td,
    .grid-view .table th {
        padding: 0.35rem 0.5rem;
        font-size: var(--font-size-base);
    }

    .grid-view .table thead th {
        padding: 0.35rem 0.5rem;
        font-size: var(--font-size-sm);
    }
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-control {
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-md);
    transition: all var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--color-primary);
    background: var(--bg-card);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 3px var(--color-primary-light);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-control:disabled,
.form-control[readonly] {
    background: var(--bg-subtle);
    opacity: 0.8;
}

/* Form labels */
label {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Input groups */
.input-group .form-control {
    border-radius: var(--radius-md);
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-text {
    border: 2px solid var(--bg-hover);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

/* Ensure input-group items align properly */
.input-group {
    align-items: stretch;
}

/* Standardized height for all input-group elements */
.input-group > .form-control,
.input-group > .form-select,
.input-group > select.form-control {
    min-height: 42px;
    height: 42px;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}

/* Fix select height in input-groups to match text inputs */
.input-group select.form-control,
.input-group .form-select {
    min-height: 42px;
    height: 42px;
    padding: 0.5rem 0.75rem;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > select.form-control {
    flex: 1 1 auto;
    width: 1%;
}

/* Country code dropdown specific fix */
.input-group select.form-control[name*="country_code"],
.input-group select.form-control:first-child {
    flex: 0 0 auto;
    width: auto;
    min-width: 145px;
    max-width: 160px !important; /* Override inline styles */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* intl-tel-input library fixes */
.iti {
    width: 100% !important;
    display: block;
}

.iti__flag-container {
    z-index: 1010;
}

.iti__country-list {
    z-index: 1020;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
}

.iti__country {
    padding: 8px 12px;
    transition: background-color 0.15s ease;
}

.iti__country:hover {
    background-color: var(--bg-subtle);
}

.iti__selected-flag {
    padding: 0 10px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--bg-subtle);
}

.iti__selected-flag:hover {
    background: var(--bg-subtle);
}

/* Ensure intl-tel-input dropdown appears above modals */
.iti--container {
    z-index: 1060;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Select - Remove custom arrow to avoid duplicates */
.form-select,
select.form-control {
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: var(--font-size-md);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-select:focus,
select.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 3px var(--color-primary-light);
}

/* Checkboxes & Radios */
.form-check-input {
    width: 1.15em;
    height: 1.15em;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.15);
}

/* iCheck - AdminLTE custom checkboxes */
.icheck-primary>input:checked+label::before {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==========================================================================
   SELECT2 ENHANCEMENTS
   ========================================================================== */

.select2-container--bootstrap-5 .select2-selection,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 2px solid var(--bg-hover) !important;
    border-radius: var(--radius-md) !important;
    min-height: 42px !important;
    transition: all var(--transition-fast);
    background: var(--bg-subtle) !important;
}

.select2-container--bootstrap-5 .select2-selection:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.15) !important;
    background: var(--bg-card) !important;
}

.select2-dropdown {
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-xl) !important;
    overflow: hidden;
    margin-top: 4px;
}

.select2-results__option {
    padding: 10px 14px;
    transition: all var(--transition-fast);
}

.select2-results__option--highlighted,
.select2-results__option--selected {
    background: var(--color-primary) !important;
    color: var(--text-inverse) !important;
}

.select2-selection__choice {
    background: var(--color-primary) !important;
    border: none !important;
    border-radius: 4px !important;
    color: var(--text-inverse) !important;
    padding: 4px 10px !important;
    font-size: var(--font-size-base) !important;
}

.select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-right: 6px !important;
}

.select2-selection__choice__remove:hover {
    color: var(--text-inverse) !important;
}

/* ==========================================================================
   BADGES - Professional muted colors (light background + dark text)
   Enterprise standard: subtle, readable, not harsh bright colors
   ========================================================================== */

.badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xs);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Primary badge - Light blue bg, dark blue text */
.bg-primary:not(.small-box):not(.card) {
    background: var(--badge-primary-bg) !important;
    color: var(--badge-primary-text) !important;
}

/* Success badge - Light green bg, dark green text */
.bg-success:not(.small-box):not(.card) {
    background: var(--badge-success-bg) !important;
    color: var(--badge-success-text) !important;
}

/* Danger badge - Light red bg, dark red text */
.bg-danger:not(.small-box):not(.card) {
    background: var(--badge-danger-bg) !important;
    color: var(--badge-danger-text) !important;
}

/* Warning badge - Light amber bg, dark text */
.bg-warning:not(.small-box):not(.card) {
    background: var(--badge-warning-bg) !important;
    color: var(--badge-warning-text) !important;
}

/* Info badge - Light teal bg, dark blue text */
.bg-info:not(.small-box):not(.card) {
    background: var(--badge-info-bg) !important;
    color: var(--badge-info-text) !important;
}

/* Secondary badge - Light gray bg, dark gray text */
.bg-secondary:not(.small-box):not(.card) {
    background: var(--badge-secondary-bg) !important;
    color: var(--badge-secondary-text) !important;
}

/* Dark badge - Keep solid for contrast where needed */
.bg-dark:not(.small-box):not(.card) {
    background: var(--text-primary) !important;
    color: var(--text-inverse) !important;
}

/* Light badge for subtle labels */
.bg-light {
    background: var(--bg-subtle) !important;
    color: var(--text-secondary) !important;
}

/* Badge pills */
.rounded-pill {
    border-radius: 50rem;
    padding: 4px 10px;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-left: 5px solid;
    padding: 1rem 1.25rem;
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--color-success-light);
    border-left-color: var(--color-success);
    color: var(--color-success-text);
}

.alert-danger,
.alert-error {
    background: var(--color-danger-light);
    border-left-color: var(--color-danger);
    color: var(--color-danger-text);
}

.alert-warning {
    background: var(--color-warning-light);
    border-left-color: var(--color-warning);
    color: var(--text-primary);
}

.alert-info {
    background: var(--color-info-light);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

/* Callout styles for better visibility */
.callout {
    border-left: 5px solid;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.callout-info {
    background: var(--color-info-light);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

.callout-warning {
    background: var(--color-warning-light);
    border-left-color: var(--color-warning);
    color: var(--text-primary);
}

.callout-success {
    background: var(--color-success-light);
    border-left-color: var(--color-success);
    color: var(--color-success-text);
}

.callout-danger {
    background: var(--color-danger-light);
    border-left-color: var(--color-danger);
    color: var(--color-danger-text);
}

.alert .btn-close {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    color: inherit;
    font-weight: bold;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */

.app-sidebar {
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   NAVIGATION SIDEBAR STYLES
   ===========================================
   NOTE: Navigation styling is now handled by adminlte3-navigation-scoped.css
   which uses scoped AdminLTE 3 styles for better stability.
   The previous AdminLTE 4 navigation CSS fixes have been removed
   to avoid conflicts with the scoped AdminLTE 3 CSS.

   See: frontend-service/web/css/adminlte3-navigation-scoped.css
   Added: 2026-02-06
   =========================================== */

/* Fix for click intercept issues - ensure hover effects don't block clicks */
.hover-line,
div.hover-line {
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Ensure all nav links are clickable above any decorative elements */
.nav-link,
.sidebar-wrapper a,
.nav-sidebar a {
    position: relative;
    z-index: 10;
}

/* Brand link */
.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem;
}

.brand-image {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* User panel */
.user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.user-panel .image img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.app-header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: none !important;
}

.app-header .nav-link {
    transition: all var(--transition-fast);
}

.app-header .nav-link:hover {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}

/* Navbar icon spacing - prevent text overlap */
.app-header .nav-link i {
    margin-right: 0.35rem;
}

/* Dropdown menus in header */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    overflow: hidden;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all var(--transition-fast);
}

/* Dropdown item icon spacing - prevent text overlap */
.dropdown-item i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--bg-subtle);
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--color-primary);
    color: var(--text-inverse);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--bg-hover);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
/* .pagination gap set in components.css */

.pagination .page-link {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    padding: 8px 14px;
}

.pagination .page-link:hover {
    background: var(--color-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
    /* Removed translateY for professional feel */
}

.pagination .page-item.active .page-link {
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
    border: none;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-subtle);
    color: var(--text-tertiary);
    box-shadow: none;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--color-primary);
    color: var(--text-inverse);
    border: none;
    padding: 1.25rem;
}

.modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* modal-body padding set in components.css */

.modal-footer {
    border-top: 1px solid var(--bg-hover);
    padding: 1rem 1.25rem;
    background: var(--bg-subtle);
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* ==========================================================================
   TABS & NAV
   ========================================================================== */

.nav-tabs {
    border-bottom: 2px solid var(--bg-hover);
    gap: 4px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 10px 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    background: transparent;
    position: relative;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    border-radius: 3px 3px 0 0;
}

.nav-tabs .nav-link:hover {
    background: var(--bg-subtle);
    color: var(--color-primary);
}

.nav-tabs .nav-link.active {
    background: var(--bg-card);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    transform: scaleX(1);
}

/* Pills */
.nav-pills {
    gap: 8px;
}

.nav-pills .nav-link {
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
    background: var(--bg-subtle);
}

.nav-pills .nav-link.active {
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

/* breadcrumb base reset in components.css */

.breadcrumb-item+.breadcrumb-item::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--color-primary-hover);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   TOOLTIPS & POPOVERS
   ========================================================================== */

.tooltip-inner {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    background: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.popover {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.popover-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--bg-hover);
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ==========================================================================
   PROGRESS BARS
   ========================================================================== */

.progress {
    height: 10px;
    border-radius: 50rem;
    background: var(--bg-hover);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-brand);
    border-radius: 50rem;
    transition: width var(--transition-slow);
}

.progress-bar-success {
    background: linear-gradient(180deg, var(--color-success) 0%, var(--color-success-hover) 100%);
}

.progress-bar-danger {
    background: linear-gradient(180deg, var(--color-danger) 0%, var(--color-danger-hover) 100%);
}

.progress-bar-warning {
    background: linear-gradient(180deg, var(--color-warning) 0%, var(--color-warning-hover) 100%);
}

.progress-bar-info {
    background: linear-gradient(180deg, var(--color-info) 0%, var(--color-info-hover) 100%);
}

/* ==========================================================================
   LISTS
   ========================================================================== */

.list-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid var(--bg-hover);
    padding: 14px 18px;
    transition: all var(--transition-fast);
}

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

.list-group-item:hover {
    background: var(--bg-subtle);
}

.list-group-item.active {
    background: var(--color-primary);
    border-color: transparent;
    color: var(--text-inverse);
}

/* ==========================================================================
   CONTENT HEADER
   ========================================================================== */

.content-header {
    padding: 0.75rem 1rem;
}

.content-header h1 {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

.content-header .breadcrumb {
    margin-bottom: 0;
    font-size: var(--font-size-base);
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-page {
    background: var(--bg-hover);
    min-height: 100vh;
}

.login-box {
    width: 420px;
}

.login-box .card {
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-box .card-header {
    background: transparent;
    border: none;
    padding: 2rem 2rem 0;
}

.login-box .card-body {
    padding: 1.5rem 2rem 2rem;
}

.login-logo a {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
}

.login-box-msg {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
    border-top: 1px solid var(--bg-hover);
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Modern shadows */
.shadow-modern-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-modern-md {
    box-shadow: var(--shadow-md);
}

.shadow-modern-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-modern-xl {
    box-shadow: var(--shadow-xl);
}

/* Rounded corners */
.rounded-modern-sm {
    border-radius: var(--radius-sm);
}

.rounded-modern-md {
    border-radius: var(--radius-md);
}

.rounded-modern-lg {
    border-radius: var(--radius-lg);
}

.rounded-modern-xl {
    border-radius: var(--radius-xl);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--gradient-brand);
}

.bg-gradient-success {
    background: linear-gradient(180deg, var(--color-success) 0%, var(--color-success-hover) 100%);
}

.bg-gradient-danger {
    background: linear-gradient(180deg, var(--color-danger) 0%, var(--color-danger-hover) 100%);
}

.bg-gradient-warning {
    background: linear-gradient(180deg, var(--color-warning) 0%, var(--color-warning-hover) 100%);
}

.bg-gradient-info {
    background: linear-gradient(180deg, var(--color-info) 0%, var(--color-info-hover) 100%);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Apply subtle fade-in to cards on page load */
.card {
    animation: fadeIn 0.4s ease-out;
}

/* Loading shimmer effect */
.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-subtle) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .card {
        border-radius: var(--radius-md);
    }

    .btn {
        padding: 8px 14px;
    }

    .table thead th {
        font-size: var(--font-size-xs);
        padding: 10px 8px;
    }

    .table tbody td {
        padding: 10px 8px;
    }

    .login-box {
        width: 95%;
        margin: 0 auto;
    }
}

/* Stat mini-cards in the pipeline summary */
.pipeline-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-hover);
    transition: all var(--transition-fast);
}

.pipeline-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pipeline-stat-card .stat-value {
    font-size: var(--font-size-md);
    font-weight: 800;
    line-height: 1.2;
}

.pipeline-stat-card .stat-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Funnel stage rows */
.funnel-stage {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-subtle);
    transition: all var(--transition-fast);
}

.funnel-stage:last-child {
    border-bottom: none;
}

.funnel-stage:hover {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.funnel-stage .stage-label {
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    min-width: 90px;
}

.funnel-stage .progress {
    height: 18px;
    border-radius: 50rem;
    background: var(--bg-subtle);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.funnel-stage .progress-bar {
    border-radius: 50rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stage color gradients */
.funnel-stage .progress-bar.stage-l1 {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-hover) 100%);
}

.funnel-stage .progress-bar.stage-l2 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

.funnel-stage .progress-bar.stage-hr {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-hover) 100%);
}

.funnel-stage .progress-bar.stage-l1-l2 {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
    color: var(--text-primary);
}

.funnel-stage .progress-bar.stage-ta-l2 {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-hover) 100%);
}

.funnel-stage .stage-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50rem;
    font-size: var(--font-size-sm);
    font-weight: 800;
    color: var(--text-inverse);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   PENDING ACTIONS WIDGET - MODERN DESIGN
   ========================================================================== */

/* New modern pending actions card */
.pending-actions-modern {
    border-radius: 12px;
    background: var(--bg-card);
}

/* Ensure card-header spans full width for flex to work */
.pending-actions-modern > .card-header {
    display: block;
    width: 100%;
}

.pending-actions-modern > .card-header > div {
    display: flex;
    width: 100%;
}

.pending-actions-modern .pending-action-row {
    transition: background-color 0.15s ease;
}

.pending-actions-modern .pending-action-row:hover {
    background-color: var(--bg-subtle);
}

.pending-actions-modern .pending-action-row:last-child {
    border-bottom: none;
}

/* Subtle status badge colors */
.bg-warning-subtle {
    background-color: var(--color-warning-light) !important;
}
.text-warning-emphasis {
    color: var(--color-warning-dark) !important;
}
.bg-danger-subtle {
    background-color: var(--color-danger-light) !important;
}
.bg-secondary-subtle {
    background-color: var(--bg-subtle) !important;
}

/* Responsive stacking for pending actions */
@media (max-width: 767.98px) {
    .pending-actions-modern .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--border-subtle) !important;
    }
}

/* Legacy pending actions card (backward compatibility) */
.pending-actions-card {
    border-top: 3px solid var(--color-warning);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pending-actions-card .card-header {
    background: linear-gradient(135deg, var(--color-warning-light) 0%, var(--color-warning-light) 100%);
    border-bottom: 1px solid rgba(255, 171, 0, 0.2);
}

.pending-actions-card .section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-align: left;
    /* Visual separation from action rows */
    background: var(--bg-subtle);
    border-bottom: 2px solid var(--bg-hover);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.5rem;
}

.pending-actions-card .section-header .section-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    color: var(--text-inverse);
    flex-shrink: 0;
}

.pending-actions-card .action-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--bg-subtle);
    gap: 0.75rem;
}

.pending-actions-card .action-row:last-child {
    border-bottom: none;
}

.pending-actions-card .action-row:hover {
    background: var(--bg-hover);
    /* Removed transform - subtle professional hover */
}

.pending-actions-card .action-row .action-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--font-size-base);
}

.pending-actions-card .action-row .action-details {
    flex: 1;
    min-width: 0;
}

.pending-actions-card .action-row .action-title {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-actions-card .action-row .action-meta {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.pending-actions-card .view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    border-top: 1px solid var(--bg-hover);
    transition: all var(--transition-fast);
}

.pending-actions-card .view-all-link:hover {
    background: var(--bg-subtle);
    text-decoration: none;
    color: var(--color-primary-hover);
}

/* Column separator for pending actions two-column layout */
.pending-actions-card .border-right,
.pending-actions-card .border-end {
    border-right: 2px solid var(--bg-hover) !important;
    padding-right: 1.5rem;
}

/* Add left padding to second column for balance */
.pending-actions-card .row > div:last-child:not(:first-child) {
    padding-left: 1.5rem;
}

/* Responsive: Remove vertical border on mobile, add horizontal border */
@media (max-width: 991.98px) {
    .pending-actions-card .border-right,
    .pending-actions-card .border-end {
        border-right: none !important;
        border-bottom: 2px solid var(--bg-hover) !important;
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .pending-actions-card .row > div:last-child:not(:first-child) {
        padding-left: 0;
    }
}

/* ==========================================================================
   QUICK FILTER PILLS
   ========================================================================== */

.quick-filters {
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bg-hover);
}

.quick-filters .filter-group-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.quick-filters .btn-group .btn {
    box-shadow: none;
    font-size: var(--font-size-sm);
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.15s ease;
    border-radius: 0.25rem !important;
}

.quick-filters .btn-group {
    gap: 2px;
}

/* Status filter buttons - semantic colors
   NOTE: Final override rules are at end of file (QUICK FILTER BUTTON COLORS section) */

.quick-filters .btn-group .btn:hover {
    transform: none;
    filter: brightness(1.1);
    z-index: 1;
}

.quick-filters .btn-group .btn::before {
    display: none;
}

.quick-filters .btn-group .btn.active {
    z-index: 2;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 0 0 5px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25) !important;
    filter: brightness(1.1) saturate(1.15);
    transform: scale(1.05);
}

.quick-filters .filter-separator {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
    margin: 0 0.75rem;
}

/* ==========================================================================
   FEEDBACK VIEW MODAL
   ========================================================================== */

.feedback-view-modal .modal-header {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-hover) 100%);
    padding: 1.25rem 1.5rem;
}

.feedback-view-modal .modal-title {
    font-size: var(--font-size-md);
    font-weight: 700;
}

.feedback-view-modal .context-bar {
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-subtle) 100%);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
    margin-bottom: 1.25rem;
}

.feedback-view-modal .context-bar .context-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-view-modal .context-bar .context-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-tertiary);
}

.feedback-view-modal .context-bar .context-value {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.feedback-view-modal .feedback-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.feedback-view-modal .feedback-section-title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-subtle);
}

.feedback-view-modal .feedback-section-title i {
    margin-right: 0.4rem;
    color: var(--color-primary);
}

.feedback-view-modal .feedback-field {
    margin-bottom: 0.75rem;
}

.feedback-view-modal .feedback-field:last-child {
    margin-bottom: 0;
}

.feedback-view-modal .feedback-field-label {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.feedback-view-modal .feedback-field-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.5;
}

.feedback-view-modal .rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.feedback-view-modal .rating-display .fa-star {
    font-size: var(--font-size-md);
}

.feedback-view-modal .rating-display .rating-text {
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.feedback-view-modal .result-badge-lg {
    font-size: var(--font-size-base);
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.feedback-view-modal .text-block {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    border-left: 3px solid var(--color-primary);
}

.feedback-view-modal .skill-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--bg-subtle);
}

.feedback-view-modal .skill-rating-row:last-child {
    border-bottom: none;
}

.feedback-view-modal .modal-footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--bg-hover);
}

.feedback-view-modal .read-only-notice {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    font-style: italic;
}

/* Clickable feedback items in application timeline */
.view-feedback-btn {
    transition: all var(--transition-fast);
    cursor: pointer;
    border-left: 4px solid var(--color-primary);
}

.view-feedback-btn:hover {
    background: var(--color-primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.view-feedback-btn::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: var(--font-size-sm);
}

.view-feedback-btn:hover::after {
    opacity: 0.6;
}

/* ==========================================================================
   ACTION ICON BUTTONS (Table Row Actions)
   ========================================================================== */

.action-icons-cell {
    white-space: nowrap;
    text-align: center;
    width: 140px;
    padding: 0.4rem 0.5rem;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 0 1px;
}

.action-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.action-icon-primary {
    color: var(--color-primary);
}

.action-icon-primary:hover {
    background: var(--color-primary);
    color: var(--text-inverse);
    border-color: var(--color-primary);
}

.action-icon-info {
    color: var(--color-info);
}

.action-icon-info:hover {
    background: var(--color-info);
    color: var(--text-inverse);
    border-color: var(--color-info);
}

.action-icon-warning {
    color: var(--color-warning-hover);
}

.action-icon-warning:hover {
    background: var(--color-warning);
    color: var(--text-primary);
    border-color: var(--color-warning);
}

.action-icon-danger {
    color: var(--color-danger);
}

.action-icon-danger:hover {
    background: var(--color-danger);
    color: var(--text-inverse);
    border-color: var(--color-danger);
}

/* ==========================================================================
   PIPELINE FUNNEL WIDGET (Redesigned)
   ========================================================================== */

.pipeline-funnel-card {
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
}

.pipeline-funnel-card .card-header {
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-subtle) 100%);
    border-bottom: 1px solid rgba(0, 123, 255, 0.08);
    padding: 0.75rem 1rem;
}

.pipeline-funnel-card .card-header .card-title {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-primary);
}

/* Stat cards row */
/* Pipeline stat row grid — consolidated with primary rules above (lines ~1548-1650) */
.pipeline-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Funnel stages container */
.pipeline-funnel {
    padding: 0;
}

/* Ghost stage (0 candidates) */
.funnel-stage.funnel-stage-empty .stage-label {
    color: var(--text-disabled);
}

.funnel-stage.funnel-stage-empty .progress {
    opacity: 0.5;
}

.funnel-stage.funnel-stage-empty .stage-count-badge {
    opacity: 0.4;
}

/* ==========================================================================
   METRIC CARD SYSTEM (Replaces AdminLTE2 small-box / info-box)
   ========================================================================== */

.metric-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-fast);
    overflow: hidden;
    position: relative;
    height: 100%;
    border-left: 4px solid var(--card-accent-color, var(--color-primary));
}

.metric-card:hover {
    box-shadow: var(--shadow-card-hover);
    /* Removed translateY - more professional/subtle */
}

.metric-card-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

.metric-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin-right: 1rem;
    flex-shrink: 0;
}

.metric-card-content {
    flex: 1;
    min-width: 0;
}

.metric-card-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
    /* Allow text to wrap instead of truncate */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.metric-card-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.metric-card-value small {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-tertiary);
}

.metric-card-footer {
    padding: 0.5rem 1.25rem;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--border-subtle);
}

.metric-card-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.metric-card-footer a:hover {
    color: var(--color-primary);
}

/* Metric card color variants - circular icons with transparent backgrounds */
.metric-card-primary { --card-accent-color: var(--color-primary); }
.metric-card-primary .metric-card-icon { background: rgba(0, 82, 204, 0.1); color: var(--color-primary); }

.metric-card-success { --card-accent-color: var(--color-success); }
.metric-card-success .metric-card-icon { background: rgba(54, 179, 126, 0.1); color: var(--color-success); }

.metric-card-warning { --card-accent-color: var(--color-warning); }
.metric-card-warning .metric-card-icon { background: rgba(255, 171, 0, 0.1); color: var(--color-warning-dark); }

.metric-card-danger { --card-accent-color: var(--color-danger); }
.metric-card-danger .metric-card-icon { background: rgba(222, 53, 11, 0.1); color: var(--color-danger); }

.metric-card-info { --card-accent-color: var(--color-info); }
.metric-card-info .metric-card-icon { background: rgba(0, 184, 217, 0.1); color: var(--color-info); }

/* Compact metric card variant */
.metric-card-compact .metric-card-header {
    padding: 1rem;
}

.metric-card-compact .metric-card-icon {
    width: 42px;
    height: 42px;
    font-size: var(--font-size-lg);
}

.metric-card-compact .metric-card-value {
    font-size: var(--font-size-xl);
}

/* Metric card row - CSS Grid for equal-height cards */
.metric-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   SEARCH / FILTER PANEL
   ========================================================================== */

.search-panel {
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--bg-hover);
}

.search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0;
}

.search-panel-header h5 {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.search-panel-header .toggle-icon {
    transition: transform var(--transition-fast);
    color: var(--text-tertiary);
}

.search-panel-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.search-panel-body {
    padding-top: 1rem;
}

/* ==========================================================================
   FORM ACTIONS & SECTION HEADERS
   ========================================================================== */

.form-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.form-actions .btn {
    min-width: 100px;
}

.form-section-header {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.form-section-header:first-child {
    margin-top: 0;
}

.form-section-header i {
    margin-right: 0.5rem;
    color: var(--color-primary);
}

/* ==========================================================================
   ADDITIONAL ACTION ICON COLORS
   ========================================================================== */

.action-icon-secondary {
    color: var(--text-tertiary);
}

.action-icon-secondary:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.action-icon-purple {
    color: var(--color-purple, #6f42c1);
}

.action-icon-purple:hover {
    color: var(--color-primary-hover);
    background: rgba(111, 66, 193, 0.1);
}

.action-icon-teal {
    color: var(--color-teal, #20c997);
}

.action-icon-teal:hover {
    color: var(--color-teal-hover, #1aa179);
    background: rgba(32, 201, 151, 0.1);
}

/* ==========================================================================
   DASHBOARD SECTION CARD
   ========================================================================== */

.dashboard-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    width: 100%;
}

/* When used with h-100, ensure full column fill */
.dashboard-section.h-100 {
    display: flex;
    flex-direction: column;
}

.dashboard-section.h-100 .dashboard-section-body {
    flex: 1;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bg-hover);
    background: var(--bg-subtle);
}

.dashboard-section-header h5 {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-section-header .badge {
    font-size: var(--font-size-sm);
}

.dashboard-section-body {
    padding: 1.25rem;
}

.dashboard-section-body .table {
    margin-bottom: 0;
}

.dashboard-section-footer {
    padding: 0.75rem 1.25rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--bg-hover);
    text-align: right;
}

/* ==========================================================================
   QUICK ACTIONS ROW
   ========================================================================== */

.quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.quick-actions-row .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.quick-actions-row .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   INFO BOX (Modernized from AdminLTE2)
   ========================================================================== */

.info-box-modern {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--text-disabled);
    margin-bottom: 1rem;
    transition: box-shadow var(--transition-fast);
}

.info-box-modern:hover {
    box-shadow: var(--shadow-md);
}

.info-box-modern-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin-right: 1rem;
    flex-shrink: 0;
    background: var(--bg-subtle);
    color: var(--text-secondary);
}

.info-box-modern-content {
    flex: 1;
}

.info-box-modern-label {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.info-box-modern-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.info-box-modern-primary { border-left-color: var(--color-primary); }
.info-box-modern-primary .info-box-modern-icon { background: rgba(0, 123, 255, 0.1); color: var(--color-primary); }

.info-box-modern-success { border-left-color: var(--color-success); }
.info-box-modern-success .info-box-modern-icon { background: rgba(40, 167, 69, 0.1); color: var(--color-success); }

.info-box-modern-warning { border-left-color: var(--color-warning); }
.info-box-modern-warning .info-box-modern-icon { background: rgba(255, 193, 7, 0.1); color: var(--color-warning-dark); }

.info-box-modern-danger { border-left-color: var(--color-danger); }
.info-box-modern-danger .info-box-modern-icon { background: rgba(220, 53, 69, 0.1); color: var(--color-danger); }

.info-box-modern-info { border-left-color: var(--color-info); }
.info-box-modern-info .info-box-modern-icon { background: rgba(23, 162, 184, 0.1); color: var(--color-info); }

/* ==========================================================================
   RESPONSIVE: METRIC CARDS, ACTIONS, FORMS
   ========================================================================== */

@media (max-width: 767px) {
    .metric-card-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-card-value {
        font-size: var(--font-size-xl);
    }

    .metric-card-label {
        font-size: var(--font-size-xs);
    }

    .action-icons-cell {
        width: auto;
    }

    .action-icons-cell .action-icon {
        margin: 2px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .quick-actions-row {
        flex-direction: column;
    }

    .quick-actions-row .btn {
        justify-content: center;
    }

    .search-panel {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .metric-card-row {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================================
   REPORT PAGE STYLES
   ========================================================================== */

/* Report index metric cards - uses generic .metric-card-row grid */

.report-index .metric-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.report-index .metric-card:hover {
    transform: translateY(-3px);
}

/* Metric card footer link (report-scoped override) */
a.metric-card-footer {
    display: block;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: background var(--transition-fast), color var(--transition-fast);
}

a.metric-card-footer:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary);
    text-decoration: none;
}

a.metric-card-footer i {
    margin-left: 0.25rem;
}

/* ==========================================================================
   REPORT TABLE ENHANCEMENTS
   ========================================================================== */

.report-ta-performance .card .table thead th {
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
    white-space: nowrap;
}

.report-ta-performance .card .table tbody td {
    vertical-align: middle;
    font-size: var(--font-size-base);
}

/* Skill badges in reports */
.report-ta-performance .badge-skill {
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    font-weight: 400;
    font-size: var(--font-size-sm);
    margin-bottom: 2px;
    display: inline-block;
}

/* ==========================================================================
   FILTER PANEL (Collapsible)
   ========================================================================== */

.filter-panel {
    margin-bottom: 1rem;
}

.filter-panel .card-header {
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.filter-panel .card-body {
    padding: 1rem;
}

/* ==========================================================================
   COMPACT SEARCH/FILTER FORMS
   Makes search filter cards minimal - GridView takes visual priority
   Reduced to ~75% of standard size
   ========================================================================== */

/* Search filter card - ultra compact */
.card:has(.form-control):not(.card-primary):not(.card-info) {
    margin-bottom: 0.5rem;
}

.card:has(.form-control):not(.card-primary):not(.card-info) .card-header {
    padding: 0.25rem 0.5rem;
    min-height: auto;
}

.card:has(.form-control):not(.card-primary):not(.card-info) .card-header h3,
.card:has(.form-control):not(.card-primary):not(.card-info) .card-header h5 {
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Ultra compact form controls in search cards */
.card .form-control,
.card .form-select {
    padding: 0.15rem 0.35rem;
    font-size: var(--font-size-xs);
    height: auto;
    min-height: 1.5rem;
}

/* Tighter row spacing */
.card-body .row .col-md-2,
.card-body .row .col-md-3,
.card-body .row .col-md-4,
.card-body .row .col-md-6 {
    margin-bottom: 0.25rem;
}

/* Smaller labels in filter forms */
.card-body label {
    font-size: var(--font-size-xs);
    margin-bottom: 0.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}

/* Compact button groups in filter cards */
.card-body .btn-group .btn {
    padding: 0.15rem 0.4rem;
    font-size: var(--font-size-xs);
}

/* Minimal card body padding for filter/search sections */
.card:has(.form-control) .card-body {
    padding: 0.35rem 0.5rem;
}

/* Compact search/filter action buttons */
.card-body .btn[type="submit"],
.card-body .btn[type="reset"],
.card-body a.btn.btn-secondary {
    padding: 0.2rem 0.5rem;
    font-size: var(--font-size-xs);
}

/* Compact quick filters */
.quick-filters {
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    background: var(--bg-subtle);
    border-radius: 6px;
}

.quick-filters .btn {
    padding: 0.15rem 0.4rem;
    font-size: var(--font-size-xs);
}

/* Filter group labels (STATUS, STAGE, PRIORITY) */
.quick-filters .filter-group-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    margin-right: 0.35rem;
    background: transparent;
    border: none;
}

.filter-toggle-link {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    text-decoration: none;
}

.filter-toggle-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   ANALYTICS DASHBOARD CHARTS
   ========================================================================== */

.dashboard-analytics .metric-card {
    margin-bottom: 1rem;
}

.dashboard-analytics .chart-card {
    margin-bottom: 1.5rem;
}

.dashboard-analytics .chart-card .card-body {
    padding: 1rem;
    min-height: 320px;
}

/* ==========================================================================
   WIDGET ALIGNMENT FIXES
   ========================================================================== */

/* Equal height cards in dashboard rows */
.dashboard-index .row,
.dashboard-analytics .row,
.ta-dashboard .row,
.management-dashboard .row {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-index .row > [class*="col-"],
.dashboard-analytics .row > [class*="col-"],
.ta-dashboard .row > [class*="col-"],
.management-dashboard .row > [class*="col-"] {
    display: flex;
    margin-bottom: 1rem;
}

.dashboard-index .row > [class*="col-"] > .metric-card,
.dashboard-index .row > [class*="col-"] > .card,
.dashboard-analytics .row > [class*="col-"] > .metric-card,
.dashboard-analytics .row > [class*="col-"] > .card {
    width: 100%;
}

/* Card-header flex alignment is set in the primary .card-header rule (CARDS section).
   .card-title flex:1 and .card-tools margin-left:auto are set alongside that rule. */

/* ==========================================================================
   EMPTY STATE IMPROVEMENTS
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

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

.empty-state p {
    font-size: var(--font-size-md);
    margin-bottom: 0.5rem;
}

/* GridView empty text styling */
.grid-view .empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   ENHANCED RESPONSIVE: TABLES, CARDS, DASHBOARDS
   ========================================================================== */

@media (max-width: 991px) {
    /* Dashboard metric cards stack better */
    .dashboard-index .metric-card-row,
    .report-index .metric-card-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Table cells reduce padding */
    .table th, .table td {
        padding: 0.5rem;
        font-size: var(--font-size-base);
    }
}

@media (max-width: 767px) {
    /* Single column metric cards on mobile */
    .dashboard-index .metric-card-row,
    .report-index .metric-card-row {
        grid-template-columns: 1fr;
    }

    /* Card header stacking */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-header .card-tools {
        margin-left: 0;
        width: 100%;
    }

    .card-header .card-tools .btn {
        width: 100%;
        text-align: center;
    }

    /* Report tables horizontal scroll */
    .report-ta-performance .table-responsive {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
    }

    /* Dashboard equal-height override for mobile (stack instead) */
    .dashboard-index .row,
    .dashboard-analytics .row,
    .ta-dashboard .row,
    .management-dashboard .row {
        display: block;
    }
}

@media (max-width: 480px) {
    /* Ultra-compact for small phones */
    .metric-card-header {
        padding: 0.875rem;
    }

    .metric-card-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    .metric-card-value {
        font-size: var(--font-size-lg);
    }

    /* Reduce DetailView padding on mobile */
    .detail-view th, .detail-view td {
        padding: 0.5rem;
        font-size: var(--font-size-base);
    }

    /* Stack action buttons */
    .action-icons-cell {
        white-space: nowrap;
    }

    .action-icons-cell .action-icon {
        padding: 4px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .card {
        border: 1px solid var(--border-subtle);
        box-shadow: none;
    }

    .card-header {
        background: var(--bg-subtle);
    }

    .card-tools,
    .action-icons-cell,
    .pagination {
        display: none !important;
    }

    .metric-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-subtle);
    }

    .btn {
        box-shadow: none;
    }

    .table tbody tr {
        box-shadow: none;
    }

    .app-sidebar,
    .app-header {
        display: none !important;
    }
}


/* ============================================
   IN-APP NOTIFICATION BELL ICON
   ============================================ */

/* Bell badge positioning */
#notification-bell .navbar-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    font-size: var(--font-size-xs);
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    border-radius: 10px;
}

#notification-bell .nav-link {
    position: relative;
}

/* Shake animation for new notifications */
@keyframes notificationShake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.notification-shake {
    animation: notificationShake 0.6s ease-in-out;
    display: inline-block;
}

/* Notification dropdown */
.notification-dropdown {
    width: 340px;
    max-height: 460px;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.notification-mark-all-read {
    color: var(--color-primary);
    font-size: var(--font-size-base);
    text-decoration: none;
}

.notification-mark-all-read:hover {
    color: var(--color-primary);
    opacity: 0.8;
}

/* Notification list container */
.notification-list {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Individual notification item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--bg-subtle);
    transition: background-color 0.15s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: var(--bg-subtle);
    text-decoration: none;
    color: inherit;
}

.notification-unread {
    background-color: var(--color-primary-light);
    border-left: 3px solid var(--color-primary);
}

.notification-unread:hover {
    background-color: var(--color-primary-light);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-base);
    margin-top: 0.1rem;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notification-item-title {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.notification-item-message {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-time {
    font-size: var(--font-size-sm);
    color: var(--text-disabled);
}

.notification-item-time i {
    margin-right: 0.2rem;
    font-size: var(--font-size-xs);
}

/* Empty and loading states */
.notification-empty,
.notification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-disabled);
    font-size: var(--font-size-base);
    gap: 0.5rem;
}

.notification-empty i,
.notification-loading i {
    font-size: var(--font-size-xl);
}

/* Footer */
.notification-dropdown-footer {
    padding: 0.4rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

/* Scrollbar styling for notification list */
.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

/* Responsive: narrower on small screens */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 290px;
        right: -10px;
    }
}

/* ==========================================================================
   RECENT ITEMS WIDGET
   ========================================================================== */

/* Recent Items Widget */
.recent-items-widget {
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
}

.recent-items-widget .widget-title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recent-items-widget .widget-title i {
    margin-right: 0.25rem;
}

.recent-items-widget .recent-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.recent-items-widget .recent-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-inverse);
    text-decoration: none;
}

.recent-items-widget .recent-item i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
    opacity: 0.7;
    font-size: var(--font-size-base);
}

.recent-items-widget .recent-item:hover i {
    opacity: 1;
}

.recent-items-widget .recent-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .recent-items-widget {
        border-top-color: rgba(255,255,255,0.15);
    }

    .recent-items-widget .widget-title {
        color: rgba(255,255,255,0.6);
    }

    .recent-items-widget .recent-item {
        color: rgba(255,255,255,0.85);
    }

    .recent-items-widget .recent-item:hover {
        background: rgba(255,255,255,0.15);
    }
}
/* ==================== Bulk Actions Styles ==================== */
.bulk-actions-container {
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.bulk-actions-container .selected-count {
    font-size: var(--font-size-base);
    font-weight: 500;
}

.bulk-actions-container .dropdown-toggle {
    font-size: var(--font-size-base);
}

.bulk-actions-container .dropdown-menu {
    min-width: 200px;
}

.bulk-actions-container .dropdown-header {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.bulk-actions-container .dropdown-item {
    font-size: var(--font-size-base);
    padding: 0.5rem 1rem;
}

.bulk-actions-container .dropdown-item:hover {
    background-color: var(--bg-subtle);
}

/* ==========================================================================
   QUICK FILTER BUTTON COLORS (FINAL OVERRIDE)
   Applied at end of file for maximum specificity
   ========================================================================== */

.quick-filters .btn-group .btn.btn-success,
.quick-filters .btn-group > .btn.btn-success,
a.btn.btn-success[href] {
    background-color: var(--color-success) !important;
    border-color: var(--color-success) !important;
    color: var(--text-inverse) !important;
}

.quick-filters .btn-group .btn.btn-info,
.quick-filters .btn-group > .btn.btn-info,
a.btn.btn-info[href] {
    background-color: var(--color-info) !important;
    border-color: var(--color-info) !important;
    color: var(--text-inverse) !important;
}

.quick-filters .btn-group .btn.btn-warning,
.quick-filters .btn-group > .btn.btn-warning,
a.btn.btn-warning[href] {
    background-color: var(--color-warning) !important;
    border-color: var(--color-warning) !important;
    color: var(--text-primary) !important;
}

.quick-filters .btn-group .btn.btn-danger,
.quick-filters .btn-group > .btn.btn-danger,
a.btn.btn-danger[href] {
    background-color: var(--color-danger) !important;
    border-color: var(--color-danger) !important;
    color: var(--text-inverse) !important;
}

.quick-filters .btn-group .btn.btn-primary,
.quick-filters .btn-group > .btn.btn-primary,
a.btn.btn-primary[href] {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--text-inverse) !important;
}

.quick-filters .btn-group .btn.btn-secondary,
.quick-filters .btn-group > .btn.btn-secondary {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: var(--text-inverse) !important;
}

.quick-filters .btn-group .btn.btn-dark,
.quick-filters .btn-group > .btn.btn-dark {
    background-color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
    color: var(--text-inverse) !important;
}

/* ==========================================================================
   QUICK FILTER HORIZONTAL BAR (FINAL OVERRIDE)
   Single-line horizontal bar with consistent button sizing
   ========================================================================== */

.quick-filters {
    min-height: 64px;
    padding: 0;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.quick-filters > .d-flex {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.quick-filters .quick-filter-btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 8px;
    min-width: max-content;
    transition: all 0.2s ease;
}

.quick-filters .quick-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-filters .quick-filter-btn.active,
.quick-filters .quick-filter-btn.filter-active {
    transform: scale(1.05);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 0 0 5px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1) saturate(1.15);
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Checkmark indicator for active filter */
.quick-filters .quick-filter-btn.active::after,
.quick-filters .quick-filter-btn.filter-active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-xs);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-success);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    z-index: 10;
    display: block;
}

/* Scrollbar styling for filter bar */
.quick-filters > .d-flex::-webkit-scrollbar {
    height: 4px;
}

.quick-filters > .d-flex::-webkit-scrollbar-track {
    background: transparent;
}

.quick-filters > .d-flex::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* ============================================
   Quick Stats Compact Card - Reduced Height (~40%)
   ============================================ */
.quick-stats-compact .card-body {
    padding: 0.5rem;
}

.quick-stats-compact .info-box {
    min-height: auto;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
}

.quick-stats-compact .info-box:last-child {
    margin-bottom: 0;
}

.quick-stats-compact .info-box-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-md);
    line-height: 40px;
}

.quick-stats-compact .info-box-content {
    padding: 0.15rem 0;
    margin-left: 0.5rem;
}

.quick-stats-compact .info-box-text {
    font-size: var(--font-size-xs);
    margin-bottom: 0;
}

.quick-stats-compact .info-box-number {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-top: 0;
}

/* ==========================================================================
   WHAT'S NEW BUTTON
   ========================================================================== */

@keyframes whatsNewPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.7), 0 0 20px 4px rgba(59, 130, 246, 0.15); }
}

#whats-new-btn {
    animation: whatsNewPulse 1.8s ease-in-out infinite !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#whats-new-btn:hover {
    animation: none !important;
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.6) !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}
