/* Feedback Manager - Handcrafted Design System */

@import url('../vendor/fonts/plus-jakarta-sans/plus-jakarta-sans.css');

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #0d6efd 100%);
  --secondary-accent: #10b981;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #818cf8;
  --sidebar-width: 270px;
  --sidebar-bg: #0b0f19;
  --sidebar-text: #94a3b8;
  --sidebar-active-bg: rgba(99, 102, 241, 0.12);
  --sidebar-active-text: #818cf8;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 8px 16px -6px rgba(15, 23, 42, 0.05);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
}

/* =========================================================================
   MODERN MINIMALIST PILL PAGINATION (EXACT MATCH FOR UPLOADED SPEC)
   ========================================================================= */
.custom-pill-pagination {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    list-style: none;
    margin: 0;
    gap: 6px;
    user-select: none;
}

[data-bs-theme="dark"] .custom-pill-pagination {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.custom-pill-pagination .page-item {
    margin: 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-pill-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #8c9ba5;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.custom-pill-pagination .page-link:hover:not(:disabled) {
    color: #0f172a;
    background-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme="dark"] .custom-pill-pagination .page-link {
    color: #94a3b8;
}

[data-bs-theme="dark"] .custom-pill-pagination .page-link:hover:not(:disabled) {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active Page Pill (Vibrant Dodger Blue rounded square) */
.custom-pill-pagination .page-item.active .page-link,
.custom-pill-pagination .page-link.active {
    background: #2b8df6 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(43, 141, 246, 0.35) !important;
    font-weight: 800;
}

/* Navigation Buttons (Prev, Next, Last) */
.custom-pill-pagination .page-item.nav-prev .page-link,
.custom-pill-pagination .page-item.nav-next .page-link,
.custom-pill-pagination .page-item.nav-last .page-link {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 10px;
    height: 32px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.custom-pill-pagination .page-item.nav-prev .page-link:hover:not(:disabled),
.custom-pill-pagination .page-item.nav-next .page-link:hover:not(:disabled),
.custom-pill-pagination .page-item.nav-last .page-link:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

[data-bs-theme="dark"] .custom-pill-pagination .page-item.nav-prev .page-link,
[data-bs-theme="dark"] .custom-pill-pagination .page-item.nav-next .page-link,
[data-bs-theme="dark"] .custom-pill-pagination .page-item.nav-last .page-link {
    background: #334155;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .custom-pill-pagination .page-item.nav-prev .page-link:hover:not(:disabled),
[data-bs-theme="dark"] .custom-pill-pagination .page-item.nav-next .page-link:hover:not(:disabled),
[data-bs-theme="dark"] .custom-pill-pagination .page-item.nav-last .page-link:hover:not(:disabled) {
    background: #475569;
    color: #ffffff;
}

.custom-pill-pagination .page-item.disabled .page-link {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ellipsis */
.custom-pill-pagination .page-item.ellipsis .page-link {
    color: #8c9ba5;
    font-weight: 800;
    cursor: default;
    background: transparent;
    min-width: 20px;
    letter-spacing: 2px;
    pointer-events: none;
}

/* =========================================================================
   UNIVERSAL ZERO-MARGIN BLUE HERO HEADER
   ========================================================================= */
.page-hero-header,
.dashboard-hero-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 1.25rem 0 !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15) !important;
    overflow: visible !important;
}

.page-hero-header .card-body,
.dashboard-hero-header .card-body {
    padding: 0.85rem 1.25rem !important;
}

@media (min-width: 768px) {
    .page-hero-header .card-body,
    .dashboard-hero-header .card-body {
        padding: 1rem 1.5rem !important;
    }
}

.page-body-container {
    padding: 0 1rem 1.5rem 1rem;
}

@media (min-width: 768px) {
    .page-body-container {
        padding: 0 1.5rem 2rem 1.5rem;
    }
}

.page-hero-header .hero-avatar-icon,
.dashboard-hero-header .hero-avatar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.page-hero-header h4,
.page-hero-header h5,
.page-hero-header .text-white {
    color: #ffffff !important;
}

.page-hero-header p,
.page-hero-header .text-white-50 {
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-bs-theme="dark"] {
  --bg-body: #080d1a;
  --bg-card: #0f172a;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --border-color: #1e293b;
  --border-focus: #6366f1;
  --navbar-bg: rgba(15, 23, 42, 0.85);
  --sidebar-bg: #050811;
  --sidebar-text: #94a3b8;
  --sidebar-active-bg: rgba(99, 102, 241, 0.18);
  --sidebar-active-text: #a5b4fc;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Layout Structure */
#wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

/* Sidebar Design */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

#sidebar .sidebar-header {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.logo-brand-avatar {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  min-width: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-brand-avatar:hover {
  transform: scale(1.05) rotate(3deg);
}

#sidebar ul.components {
  padding: 0.5rem 0.6rem;
  flex-grow: 1;
}

#sidebar ul li {
  margin-bottom: 2px;
}

#sidebar ul li a {
  padding: 0.42rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar ul li a i {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

#sidebar ul li a:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

#sidebar ul li a:hover i {
  transform: translateX(2px);
  color: #818cf8;
}

#sidebar ul li.active a {
  color: var(--sidebar-active-text);
  background: var(--sidebar-active-bg);
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 #6366f1;
}

#sidebar ul li.active a i {
  color: #818cf8;
}

/* Sidebar Submenu */
#sidebar ul.components ul {
  padding-left: 0.65rem;
  margin-top: 0.15rem;
}
#sidebar ul.components ul li {
  margin-bottom: 1px;
}
#sidebar ul.components ul li a {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  opacity: 0.85;
}
#sidebar ul.components ul li a:hover {
  opacity: 1;
}
#sidebar ul.components ul li.active a {
  opacity: 1;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  box-shadow: none;
}
#sidebar .dropdown-toggle::after {
  display: none;
}
#sidebar .dropdown-toggle[aria-expanded="true"] .submenu-arrow {
  transform: rotate(180deg);
}

#content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Style */
.top-navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  z-index: 999;
}

/* Craftsmanship Cards & Universal Compatibility */
.card,
.card-custom,
.stat-card,
.dash-kpi-card,
.dash-hub-card,
.view-card,
.tl-card,
.timeline-main-card,
.sidebar-main-card,
.sidebar-form-card,
.task-header-card,
.work-type-card,
.executive-discussion-hero {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.card-custom:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.card:not(.page-hero-header):not(.dashboard-hero-header) .card-header,
.card-custom .card-header,
.dash-hub-header,
.view-card-header,
.tl-card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.card:not(.page-hero-header):not(.dashboard-hero-header) .card-footer,
.card-custom .card-footer {
  background-color: transparent;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
}

.card:not(.page-hero-header):not(.dashboard-hero-header) .card-body,
.card-custom .card-body,
.view-card-body {
  color: var(--text-main);
}

/* Handcrafted Stat Cards */
.stat-card {
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

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

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Dark Mode Card System (Pure White Text in Dark Mode, Dark Text in Light Mode) */
[data-bs-theme="dark"] .card:not(.page-hero-header):not(.dashboard-hero-header),
[data-bs-theme="dark"] .card-custom,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .dash-kpi-card,
[data-bs-theme="dark"] .dash-hub-card,
[data-bs-theme="dark"] .view-card,
[data-bs-theme="dark"] .tl-card,
[data-bs-theme="dark"] .timeline-main-card,
[data-bs-theme="dark"] .sidebar-main-card,
[data-bs-theme="dark"] .sidebar-form-card,
[data-bs-theme="dark"] .task-header-card,
[data-bs-theme="dark"] .work-type-card,
[data-bs-theme="dark"] .executive-discussion-hero {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .card:not(.page-hero-header):not(.dashboard-hero-header) .card-header,
[data-bs-theme="dark"] .card-custom .card-header,
[data-bs-theme="dark"] .dash-hub-header,
[data-bs-theme="dark"] .view-card-header,
[data-bs-theme="dark"] .tl-card-header,
[data-bs-theme="dark"] .sidebar-form-card .form-header {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid #1e293b !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .card:not(.page-hero-header):not(.dashboard-hero-header) .card-footer,
[data-bs-theme="dark"] .card-custom .card-footer {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid #1e293b !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .card:not(.page-hero-header):not(.dashboard-hero-header) .card-body,
[data-bs-theme="dark"] .card-custom .card-body,
[data-bs-theme="dark"] .view-card-body {
  color: #ffffff !important;
}

/* Pure White Text for All Typography Inside Dark Mode Cards */
[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) :where(h1, h2, h3, h4, h5, h6, .card-title, .h1, .h2, .h3, .h4, .h5, .h6, .fw-bold, .fw-semibold, strong, b):not(.text-danger):not(.text-warning):not(.text-success):not(.text-info):not(.badge):not(.btn) {
  color: #ffffff !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) :where(p, label, .form-label, dt, dd, span, div, li, td, th):not(.text-danger):not(.text-warning):not(.text-success):not(.text-info):not(.badge):not(.btn):not(.spinner-border):not(.fa):not(.fas):not(.far):not(.fab) {
  color: #ffffff !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) :where(.text-dark, .text-black, .text-body):not(.btn-warning):not(.bg-warning):not(.badge.bg-warning) {
  color: #ffffff !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) :where(.text-muted, .text-secondary, small.text-muted, .form-text):not(.btn):not(.badge) {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .dash-kpi-value,
[data-bs-theme="dark"] .meta-value,
[data-bs-theme="dark"] .tl-author-name,
[data-bs-theme="dark"] .sidebar-form-card .form-header h6,
[data-bs-theme="dark"] .dash-kpi-label,
[data-bs-theme="dark"] .dash-hub-header span,
[data-bs-theme="dark"] .dash-hub-header div {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .meta-label,
[data-bs-theme="dark"] .sidebar-form-card .form-header .form-subtitle {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .dash-kpi-icon {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .dash-tab-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .dash-tab-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .officer-row-item:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-bs-theme="dark"] .directive-box {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar-form-card label {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] textarea.form-control,
[data-bs-theme="dark"] select.form-select,
[data-bs-theme="dark"] input.form-control {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .work-type-card:hover {
  border-color: #3b82f6 !important;
  background: #1e293b !important;
}

[data-bs-theme="dark"] .card .bg-light,
[data-bs-theme="dark"] .card-custom .bg-light,
[data-bs-theme="dark"] .dash-hub-card .bg-light {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .card .bg-white,
[data-bs-theme="dark"] .card-custom .bg-white,
[data-bs-theme="dark"] .dash-hub-card .bg-white {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) :where(table, thead, tbody, tr, th, td) {
  color: #ffffff !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) :where(code, pre) {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) .badge.bg-light {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) .badge.bg-secondary-subtle {
  background-color: rgba(148, 163, 184, 0.15) !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] :where(.card:not(.page-hero-header):not(.dashboard-hero-header), .card-custom, .stat-card, .dash-kpi-card, .dash-hub-card, .view-card, .tl-card, .timeline-main-card, .sidebar-main-card, .sidebar-form-card, .task-header-card, .work-type-card, .executive-discussion-hero) .badge.bg-primary-subtle {
  background-color: rgba(99, 102, 241, 0.18) !important;
  color: #a5b4fc !important;
}

[data-bs-theme="dark"] .card .border-bottom,
[data-bs-theme="dark"] .card .border-top,
[data-bs-theme="dark"] .card .border-start,
[data-bs-theme="dark"] .card .border-end,
[data-bs-theme="dark"] .card-custom .border-bottom,
[data-bs-theme="dark"] .card-custom .border-top,
[data-bs-theme="dark"] .dash-hub-card .border-bottom,
[data-bs-theme="dark"] .dash-hub-card .border-top {
  border-color: #1e293b !important;
}

/* Buttons Polish */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-main);
}

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

/* Universal Modern Table Styling (Matching Tasks Table Standard) */
.table-custom,
.task-table,
.app-table,
.table.table-hover {
  width: 100%;
  margin-bottom: 0;
}

.table-custom th,
.task-table th,
.app-table th,
.table.table-hover th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.02);
  padding: 0.8rem 0.65rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

[data-bs-theme="dark"] .table-custom th,
[data-bs-theme="dark"] .task-table th,
[data-bs-theme="dark"] .app-table th,
[data-bs-theme="dark"] .table.table-hover th {
  background-color: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
}

.table-custom td,
.task-table td,
.app-table td,
.table.table-hover td {
  padding: 0.8rem 0.65rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr,
.task-table tbody tr,
.app-table tbody tr,
.table.table-hover tbody tr {
  transition: background-color 0.15s ease;
}

.table-custom tbody tr:hover,
.task-table tbody tr:hover,
.app-table tbody tr:hover,
.table.table-hover tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04);
}

[data-bs-theme="dark"] .table-custom tbody tr:hover,
[data-bs-theme="dark"] .task-table tbody tr:hover,
[data-bs-theme="dark"] .app-table tbody tr:hover,
[data-bs-theme="dark"] .table.table-hover tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.08);
}

/* Cursor pointer utility */
.cursor-pointer { cursor: pointer; }

/* Hide scrollbar utility (vertically/horizontally scrollable without visible scrollbar) */
.hide-scrollbar,
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Sortable column header hover */
.task-table th.cursor-pointer:hover,
.table-custom th.cursor-pointer:hover,
.app-table th.cursor-pointer:hover {
  background-color: rgba(99, 102, 241, 0.06);
  color: var(--bs-primary, #4f46e5);
}

[data-bs-theme="dark"] .task-table th.cursor-pointer:hover,
[data-bs-theme="dark"] .table-custom th.cursor-pointer:hover {
  background-color: rgba(99, 102, 241, 0.12);
}

.task-ref-badge {
  font-family: monospace;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Read More / Show Less Links */
.read-more-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.read-more-link:hover {
  text-decoration: underline;
}

.show-less-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.show-less-link:hover {
  text-decoration: underline;
}

/* Badges & Pills */
.badge-status {
  padding: 0.4em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-vertical {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.3em 0.6em;
  font-size: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] .badge-vertical {
  background-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* Password Strength Meter */
.strength-bar-container {
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-requirements {
  font-size: 0.825rem;
  margin-top: 10px;
}

.req-item {
  display: inline-block;
  margin-right: 12px;
  color: var(--text-muted);
}

.req-item.valid {
  color: #10b981;
  font-weight: 600;
}

/* Form Control Polish */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-family);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Skeleton Loading Styling */
.skeleton {
  background: linear-gradient(90deg, rgba(190,190,190,0.15) 25%, rgba(120,120,120,0.25) 37%, rgba(190,190,190,0.15) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

/* Print View Styles */
@media print {
  #sidebar, .top-navbar, .btn, .no-print {
    display: none !important;
  }
  #content {
    margin: 0;
    padding: 0;
    width: 100%;
  }
}

/* =========================================================================
   DASHBOARD KPI CARDS — PREMIUM ACCENT DESIGN
   ========================================================================= */
.dash-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3.5px solid var(--kpi-accent, #6366f1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.dash-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--kpi-accent, var(--border-focus));
}

.dash-kpi-card .dash-kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--kpi-accent);
  background: color-mix(in srgb, var(--kpi-accent) 12%, transparent);
  margin-bottom: 0.4rem;
}

.dash-kpi-card .dash-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.dash-kpi-card .dash-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Fallback for browsers not supporting color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
  .dash-kpi-card .dash-kpi-icon {
    background: rgba(99, 102, 241, 0.12);
  }
}

/* =========================================================================
   SECURE USERNAME & PASSWORD INPUT FIELDS & BULLET MASKING (••••••)
   ========================================================================= */
input[type="password"] {
    font-family: caption, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: 0.18em;
    -webkit-text-security: disc;
}

input[type="password"]:placeholder-shown {
    letter-spacing: normal;
}

input[type="text"].revealed-password {
    letter-spacing: normal;
    font-family: inherit;
    -webkit-text-security: none;
}

.secure-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.secure-input-group .form-control {
    padding-right: 2.75rem !important;
}

.secure-input-group .btn-pwd-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    background: transparent;
    border: none;
    padding: 0 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s ease;
}

.secure-input-group .btn-pwd-toggle:hover {
    color: var(--primary-color, #6366f1);
}

[data-bs-theme="dark"] .secure-input-group .btn-pwd-toggle {
    color: #94a3b8;
}

[data-bs-theme="dark"] .secure-input-group .btn-pwd-toggle:hover {
    color: #cbd5e1;
}

/* =========================================================================
   PREMIUM GLASSMORPHISM — FLOATING SCREEN & QUICK NOTE DRAWER
   ========================================================================= */
#quickNoteOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease;
}

#quickNoteOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#quickNoteDrawer {
    position: fixed;
    top: 58px;
    right: 18px;
    width: 430px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
    z-index: 1090;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 
        0 24px 60px -10px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.45) inset,
        0 1px 2px rgba(255, 255, 255, 0.8) inset,
        0 0 35px rgba(99, 102, 241, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.12) translate(180px, -70px);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease, visibility 0.24s ease, box-shadow 0.3s ease;
}

#quickNoteDrawer.is-open {
    transform: scale(1) translate(0, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: flex !important;
}

[data-bs-theme="dark"] #quickNoteDrawer {
    background: rgba(15, 23, 42, 0.82) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 
        0 28px 65px -12px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 2px rgba(255, 255, 255, 0.15) inset,
        0 0 40px rgba(99, 102, 241, 0.28) !important;
    color: #ffffff !important;
}

.quick-note-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(37, 99, 235, 0.88) 50%, rgba(99, 102, 241, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-note-tabs {
    display: flex;
    background: rgba(241, 245, 249, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px;
    gap: 5px;
}

[data-bs-theme="dark"] .quick-note-tabs {
    background: rgba(30, 41, 59, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.quick-note-tab-btn {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    color: var(--text-muted, #64748b);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.quick-note-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.45);
    color: var(--text-main, #0f172a);
}

[data-bs-theme="dark"] .quick-note-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.quick-note-tab-btn.active {
    background: rgba(255, 255, 255, 0.92);
    color: #1e3a8a;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.25);
}

[data-bs-theme="dark"] .quick-note-tab-btn.active {
    background: rgba(51, 65, 85, 0.85);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.35);
}

/* Glass Note Items Inside Drawer (Slim Half-Height, Compact Margins) */
.quick-note-item-card,
#quickNoteDrawer .dash-hub-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 8px !important;
    padding: 0.42rem 0.65rem !important;
    margin-bottom: 0.32rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quick-note-item-card:hover,
#quickNoteDrawer .dash-hub-card:hover {
    transform: translateY(-1px) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 8px rgba(99, 102, 241, 0.15) !important;
}

[data-bs-theme="dark"] .quick-note-item-card,
[data-bs-theme="dark"] #quickNoteDrawer .dash-hub-card {
    background: rgba(30, 41, 59, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .quick-note-item-card:hover,
[data-bs-theme="dark"] #quickNoteDrawer .dash-hub-card:hover {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(99, 102, 241, 0.25) !important;
}

/* Glass Form Inputs in Quick Add Tab */
#quickNoteDrawer .form-control,
#quickNoteDrawer .form-select {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    transition: all 0.2s ease;
}

#quickNoteDrawer .form-control:focus,
#quickNoteDrawer .form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

[data-bs-theme="dark"] #quickNoteDrawer .form-control,
[data-bs-theme="dark"] #quickNoteDrawer .form-select {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(71, 85, 105, 0.6);
    color: #ffffff;
}

[data-bs-theme="dark"] #quickNoteDrawer .form-control:focus,
[data-bs-theme="dark"] #quickNoteDrawer .form-select:focus {
    background: rgba(15, 23, 42, 0.85);
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

/* Glass Drawer Footer */
#quickNoteDrawer .border-top {
    background: rgba(248, 250, 252, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
}

[data-bs-theme="dark"] #quickNoteDrawer .border-top {
    background: rgba(15, 23, 42, 0.65) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

#headerQuickNoteBtn.active-trigger {
    color: var(--primary-color, #4f46e5) !important;
    transform: scale(1.1);
}

/* =========================================================================
   SELF-BUBBLE NOTIFICATION & FLOATING FOOTER LAUNCHER (GLASSMORPHISM)
   ========================================================================= */
.quick-note-bubble-alert {
    position: absolute;
    bottom: calc(100% + 14px);
    right: -10px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(49, 46, 129, 0.94) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: #ffffff !important;
    border: 1px solid rgba(165, 180, 252, 0.45);
    border-radius: 14px;
    padding: 9px 14px;
    min-width: 230px;
    max-width: 320px;
    box-shadow: 
        0 16px 36px -6px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(99, 102, 241, 0.45),
        0 1px 2px rgba(255, 255, 255, 0.3) inset;
    z-index: 1065;
    pointer-events: auto;
    animation: bubbleBounceIn 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubbleBounceIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.75);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-note-bubble-alert.fade-out {
    animation: bubbleFadeOut 0.3s ease forwards;
}

@keyframes bubbleFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(0.85);
    }
}

.quick-note-bubble-alert .bubble-arrow {
    position: absolute;
    bottom: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: rgba(49, 46, 129, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(165, 180, 252, 0.45);
    border-bottom: 1px solid rgba(165, 180, 252, 0.45);
    transform: rotate(45deg);
}

.quick-note-bubble-alert .bubble-content {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quick-note-bubble-alert .bubble-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: bubblePulse 1.4s infinite ease-in-out;
}

@keyframes bubblePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

.quick-note-bubble-alert .bubble-text {
    flex-grow: 1;
    overflow: hidden;
    line-height: 1.25;
}

.quick-note-bubble-alert .bubble-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-note-bubble-alert .bubble-text small {
    display: block;
    font-size: 0.7rem;
    color: #e0e7ff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-note-bubble-alert .bubble-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    margin-left: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.quick-note-bubble-alert .bubble-close:hover {
    color: #ffffff;
    transform: scale(1.15);
}

/* Floating Bottom-Right Quick Launcher / Footer Widget (Compact Sleek Size) */
#floatingQuickNoteWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-floating-quick-note {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92) 0%, rgba(99, 102, 241, 0.95) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 
        0 6px 16px rgba(79, 70, 229, 0.35),
        0 0 0 3px rgba(99, 102, 241, 0.15),
        0 1px 2px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.btn-floating-quick-note:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 10px 22px rgba(79, 70, 229, 0.45),
        0 0 0 5px rgba(99, 102, 241, 0.22),
        0 1px 3px rgba(255, 255, 255, 0.7) inset;
    color: #ffffff;
}

.btn-floating-quick-note.active-trigger {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 
        0 12px 25px rgba(79, 70, 229, 0.55),
        0 0 0 6px rgba(99, 102, 241, 0.3);
}

/* =========================================================================
   PAGE LOADER & FAST VIEW LOAD ANIMATIONS
   ========================================================================= */
#appTopProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#appTopProgressBar.loading {
    opacity: 1;
}

#appTopProgressBar.done {
    opacity: 0;
    transition: opacity 0.35s ease 0.1s;
}

#appTopProgressBar .progress-indicator {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #ec4899 100%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 0 5px rgba(99, 102, 241, 0.5);
    border-radius: 0 2px 2px 0;
    transition: width 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
    position: relative;
}

#appTopProgressBar .progress-glow {
    position: absolute;
    right: 0;
    top: -2px;
    width: 80px;
    height: 7px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.9) 0%, transparent 80%);
    opacity: 0.8;
}

/* Page View Content Fade-In */
main {
    animation: fadeInView 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
    from {
        opacity: 0.85;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   SKELETON SHIMMER LOADERS
   ========================================================================= */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 6px;
}

[data-bs-theme="dark"] .skeleton {
    background: #1e293b;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeletonShimmer 1.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

[data-bs-theme="dark"] .skeleton::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 12px;
    margin-bottom: 6px;
    border-radius: 4px;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-card {
    height: 100px;
    border-radius: 10px;
}

.skeleton-table-row td {
    padding: 12px 14px !important;
    vertical-align: middle;
}

/* =========================================================================
   APPLICATION GLOBAL FOOTER (LIGHT & DARK MODE COMPATIBLE)
   ========================================================================= */
.app-global-footer {
    height: 48px;
    min-height: 48px;
    background-color: var(--bg-card, #ffffff);
    border-top: 1px solid var(--border-color, #e2e8f0) !important;
    color: var(--text-muted, #64748b);
    font-size: 0.82rem;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-global-footer .footer-credit {
    color: var(--text-muted, #64748b);
    font-size: 0.82rem;
}

.app-global-footer .footer-credit strong {
    color: var(--text-main, #0f172a);
    font-weight: 600;
}

[data-bs-theme="dark"] .app-global-footer {
    background-color: #0f172a !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .app-global-footer .footer-credit {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .app-global-footer .footer-credit strong {
    color: #f1f5f9 !important;
}

/* SweetAlert2 Highest Priority Layer (ensures visibility over Bootstrap modals) */
div:where(.swal2-container),
.swal2-container {
    z-index: 100000 !important;
}






