/* ========================================
   eOffice Intranet Portal — Giao diện Cổng Thông Tin Nội Bộ
   Premium, Clean, Modern, Horizontal Tab Navigation
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* HSL Colors for better flexibility and modern palette */
  --primary: #0284c7;       /* Sky blue */
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  
  --success: #059669;       /* Emerald */
  --success-hover: #047857;
  --success-light: #d1fae5;
  
  --warning: #d97706;       /* Amber */
  --warning-hover: #b45309;
  --warning-light: #fef3c7;
  
  --danger: #e11d48;        /* Rose */
  --danger-hover: #be123c;
  --danger-light: #ffe4e6;
  
  --purple: #7c3aed;        /* Violet */
  --purple-light: #ede9fe;
  
  --cyan: #0891b2;
  --cyan-light: #ecfeff;

  --bg: #f8fafc;            /* Light slate background */
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #93c5fd;

  --text: #0f172a;          /* Dark slate for text */
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --nav-bg: #0f172a;        /* Deep navy for top navigation */
  --nav-text: #94a3b8;
  --nav-active: #ffffff;
  --nav-hover: rgba(255, 255, 255, 0.08);

  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --max-w: 1280px;
  --header-h: 70px;
  --navbar-h: 56px;
}

/* --- Dark Mode Variables (Optional support, but variables make it easy) --- */
.dark-mode {
  --bg: #0b0f19;
  --bg-card: #151f32;
  --border: #1e293b;
  --border-light: #151f32;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-focus: #38bdf8;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* Google Icons setup */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-mode .glass {
  background: rgba(21, 31, 50, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================
   LAYOUT SYSTEM (TOP-NAV ONLY)
   ============================ */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Branding & Toolbar Row */
.top-header {
  height: var(--header-h);
  background: #002d62; /* Corporate Dark Blue */
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
}
.header-content {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-logo {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo .material-symbols-outlined {
  font-size: 32px;
}
.brand-info h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.brand-info p {
  font-size: 0.62rem;
  color: #93c5fd; /* Soft Blue Slogan */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.header-search-bar {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12); /* Semi-transparent white */
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.header-search-bar:focus-within {
  background: rgba(255, 255, 255, 0.2);
}
.header-search-bar .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
}
.header-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
}
.header-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn-new {
  position: relative;
}

/* Horizontal Navigation Bar (The Tabs Menu) */
.top-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.navbar-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-content::-webkit-scrollbar {
  display: none;
}

.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}
.nav-tab-item:hover {
  color: var(--primary);
}
.nav-tab-item.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}
.nav-tab-item .material-symbols-outlined {
  font-size: 20px;
}
.nav-tab-item .nav-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}
.nav-tab-item .nav-badge.warning-badge {
  background: var(--warning);
}

/* User Menu & Dropdown */
.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.user-profile-trigger:hover {
  background: var(--border-light);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px;
  z-index: 200;
  display: none;
  animation: slideDownFade 0.2s ease;
}
.user-dropdown-header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.user-dropdown-header .name {
  font-weight: 600;
  font-size: 0.95rem;
}
.user-dropdown-header .role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.user-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--text);
}
.user-dropdown-menu a .material-symbols-outlined {
  font-size: 20px;
}

/* Notification panel */
.notification-bell-btn {
  position: relative;
}
.bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}
.notification-panel-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  display: none;
  animation: slideDownFade 0.2s ease;
}
.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.notif-panel-header h3 {
  font-size: 0.95rem;
}
.notif-panel-header .mark-read-btn {
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
}
.notif-panel-header .mark-read-btn:hover {
  text-decoration: underline;
}
.notif-panel-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-panel-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}
.notif-panel-item:hover {
  background: var(--bg);
}
.notif-panel-item.unread {
  background: #f0f7ff;
}
.notif-panel-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-panel-item .icon.success { background: var(--success-light); color: var(--success); }
.notif-panel-item .icon.warning { background: var(--warning-light); color: var(--warning); }
.notif-panel-item .icon.danger { background: var(--danger-light); color: var(--danger); }
.notif-panel-item .content-text {
  flex: 1;
}
.notif-panel-item .title-text {
  font-size: 0.85rem;
  font-weight: 600;
}
.notif-panel-item .desc-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.notif-panel-item .time-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  width: 100%;
}
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

/* View panels switcher */
.app-view {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-view.active {
  display: block;
}

/* ============================
   UTILITY & COMPONENTS
   ============================ */
/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.card-body {
  padding: 24px;
}

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gap-20 { gap: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: var(--border-light);
  color: var(--text);
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: var(--success-hover);
}
.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-light);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}
.btn-icon-only {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-cyan { background: var(--cyan-light); color: var(--cyan); }
.badge-neutral { background: var(--bg); color: var(--text-secondary); }

/* Forms elements */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.form-row .form-group {
  margin-bottom: 0;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea {
  resize: vertical;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.custom-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Simple Tabs (Internal) */
.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  overflow-x: auto;
}
.sub-tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.sub-tab-btn:hover {
  background: var(--border-light);
  color: var(--text);
}
.sub-tab-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Table styles */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.app-table {
  width: 100%;
}
.app-table th {
  background: var(--bg);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.app-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text);
}
.app-table tbody tr:last-child td {
  border-bottom: none;
}
.app-table tbody tr {
  transition: var(--transition-fast);
}
.app-table tbody tr:hover {
  background: #f8fafc;
}

/* Toolbars inside views */
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.view-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.view-filters select, .view-filters input {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  width: auto;
}

/* Custom file uploader */
.file-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}
.file-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-dropzone .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ============================
   MODULE: TIN TỨC NỘI BỘ (NEWS)
   ============================ */
/* Featured Banner News Carousel */
.news-featured-banner {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
}
.news-banner-slide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
}
.news-banner-image {
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-banner-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 50%, rgba(15, 23, 42, 0.4) 100%);
}
.news-banner-info {
  padding: 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-banner-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.35;
}
.news-banner-info p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.news-banner-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: auto;
}
.news-banner-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main horizontal layout for News items & categories as sections */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Horizontal Sub-nav (Categories selector for news) */
.news-categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.news-cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.news-cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.news-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.news-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.news-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-item-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-item-pinned-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-item-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-item-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.news-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.news-item-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}
.news-item-stats {
  display: flex;
  gap: 12px;
}
.news-item-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* User Interactions Row (Like, Comment, Share, Bookmark) */
.news-item-actions {
  display: flex;
  border-top: 1px solid var(--border-light);
  background: var(--border-light);
}
.news-action-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.news-action-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--primary);
}
.news-action-btn.active {
  color: var(--primary);
}
.news-action-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Horizontal Sections for Video & Albums */
.media-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header-row h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Horizontal scrollable media list */
.media-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
}
.video-media-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.video-media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.video-thumb-container {
  height: 156px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-overlay {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: var(--transition-fast);
}
.video-media-card:hover .video-play-overlay {
  background: var(--primary);
  transform: scale(1.1);
}
.video-play-overlay .material-symbols-outlined {
  font-size: 28px;
  margin-left: 2px;
}
.video-media-body {
  padding: 12px 16px;
}
.video-media-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}
.video-media-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================
   MODULE: THÔNG BÁO (ANNOUNCEMENTS)
   ============================ */
.announcement-tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  position: relative;
}
.announcement-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.announcement-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: transparent;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.announcement-item.unread::before {
  background: var(--primary);
}
.announcement-item.mandatory::before {
  background: var(--danger);
}

.announcement-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.announcement-item.unread .announcement-icon-badge {
  background: var(--primary-light);
  color: var(--primary);
}
.announcement-item.read .announcement-icon-badge {
  background: var(--bg);
  color: var(--text-secondary);
}
.announcement-icon-badge .material-symbols-outlined {
  font-size: 26px;
}

.announcement-text-area {
  min-width: 0;
}
.announcement-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.announcement-title-row h4 {
  font-size: 1.05rem;
  font-weight: 700;
}
.announcement-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.announcement-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.announcement-meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.announcement-actions-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Read Ratio Display Component */
.read-ratio-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.read-ratio-indicator:hover {
  background: var(--border);
  color: var(--text);
}

/* Mandatory Popup Warning dialog style */
.mandatory-popup-card {
  background: var(--danger-light);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  animation: slideDownFade 0.3s ease;
}
.mandatory-popup-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--danger);
  font-weight: 500;
}
.mandatory-popup-text .material-symbols-outlined {
  font-size: 28px;
}

/* Read ratio list inside modal */
.read-users-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.read-user-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}
.read-user-col h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
}
.read-user-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
}

/* ============================
   MODULE: VĂN BẢN NỘI BỘ (DOCS)
   ============================ */
.doc-search-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* Version tags badge */
.version-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Version history tree style inside modal */
.version-history-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  position: relative;
  padding-left: 20px;
}
.version-history-timeline::before {
  content: '';
  position: absolute;
  top: 4px; left: 6px; bottom: 4px;
  width: 2px;
  background: var(--border);
}
.version-history-node {
  position: relative;
}
.version-history-node::before {
  content: '';
  position: absolute;
  top: 6px; left: -18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-card);
}
.version-history-node.latest::before {
  background: var(--primary);
}
.version-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}
.version-body-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================
   MODULE: LỊCH (CALENDAR)
   ============================ */
/* Calendar Table Panel */
.calendar-table-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.calendar-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-control-row h2 {
  font-size: 1.35rem;
}

/* Weekly schedule table */
.calendar-weekly-table-wrap {
  overflow-x: auto;
}
.calendar-weekly-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-weekly-table thead th {
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid #172554;
  letter-spacing: 0.03em;
}
.calendar-weekly-table thead th:first-child {
  border-top-left-radius: var(--radius);
}
.calendar-weekly-table thead th:last-child {
  border-top-right-radius: var(--radius);
}
.calendar-weekly-table tbody td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}
.calendar-weekly-table tbody tr:last-child td {
  border-bottom: none;
}
.calendar-weekly-table tbody tr:hover td {
  background: #f8fafc;
}

/* Day group header row */
.cal-day-header-row td {
  background: linear-gradient(90deg, #f0f7ff, #e8f0fe) !important;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1e3a8a;
  padding: 10px 14px !important;
  border-bottom: 2px solid #bfdbfe !important;
  letter-spacing: 0.01em;
}
.cal-day-header-row.today-row td {
  background: linear-gradient(90deg, #dbeafe, #bfdbfe) !important;
  color: #1d4ed8;
  border-bottom-color: #60a5fa !important;
}
.cal-day-header-row td .day-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-day-header-row td .today-indicator {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Event type badge in table */
.cal-table-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}
.cal-table-type-badge.meeting { background: var(--primary-light); color: var(--primary); }
.cal-table-type-badge.event { background: var(--success-light); color: var(--success); }
.cal-table-type-badge.birthday { background: var(--purple-light); color: var(--purple); }
.cal-table-type-badge.holiday { background: var(--danger-light); color: var(--danger); }

/* Time cell styling */
.cal-table-time {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  font-size: 0.84rem;
}

/* Content cell */
.cal-table-content {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Chairman cell */
.cal-table-chairman {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Participants cell */
.cal-table-participants {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Room cell */
.cal-table-room {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.cal-table-room .material-symbols-outlined {
  font-size: 14px;
  color: var(--primary);
}

/* Note cell */
.cal-table-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Calendar edit/delete action buttons (Admin only) */
.cal-event-actions { display: flex; gap: 6px; }
.cal-act-btn {
  border: 1px solid var(--border-light);
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.cal-act-btn.edit:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.cal-act-btn.del:hover { color: var(--danger); border-color: var(--danger); background: #fee2e2; }

/* Empty week message */
.cal-empty-week {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.cal-empty-week .material-symbols-outlined {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Keep old sidebar styles as fallback */
.calendar-events-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  align-self: start;
}
.calendar-events-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

/* ============================
   MODULE: ĐĂNG KÝ & PHÊ DUYỆT (REGISTRATIONS)
   ============================ */
.requests-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

/* Workflow progress steps */
.workflow-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-step {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
}
.wf-step.approved { background: var(--success-light); color: var(--success); }
.wf-step.pending { background: var(--warning-light); color: var(--warning); font-weight: 600; }
.wf-step.rejected { background: var(--danger-light); color: var(--danger); }
.wf-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* Details modal timeline */
.wf-detailed-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.wf-history-step {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
}
.wf-history-status-icon {
  font-size: 20px;
}
.wf-history-status-icon.done { color: var(--success); }
.wf-history-status-icon.pending { color: var(--warning); }
.wf-history-status-icon.rejected { color: var(--danger); }
.wf-history-info {
  flex: 1;
}

/* ============================
   MODULE: DANH BẠ (DIRECTORY)
   ============================ */
/* Department filter tags bar */
.dept-tags-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.directory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.directory-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.directory-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.directory-info {
  min-width: 0;
  flex: 1;
}
.directory-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.directory-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.directory-contact-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.directory-contact-item a {
  color: var(--text-secondary);
}
.directory-contact-item a:hover {
  color: var(--primary);
}
.directory-contact-item .material-symbols-outlined {
  font-size: 14px;
}

/* ============================
   MODULE: KHẢO SÁT (SURVEYS)
   ============================ */
.survey-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.survey-vote-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.survey-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.survey-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.survey-option-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}
.survey-option-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.survey-option-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}
.survey-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.survey-option-item.selected .survey-radio-circle {
  border-color: var(--primary);
}
.survey-option-item.selected .survey-radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Charts drawing panel */
.survey-results-panel {
  border-left: 1px solid var(--border);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.canvas-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ============================
   MODULE: ALBUM THƯ VIỆN (ALBUMS)
   ============================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.album-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.album-cover-overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  padding: 12px 16px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.album-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.album-body {
  padding: 16px;
}
.album-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.album-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Photogallery lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
}
.lightbox-container {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-nav {
  position: absolute;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-prev {
  left: 24px;
}
.lightbox-next {
  right: 24px;
}
.lightbox-caption {
  color: white;
  margin-top: 16px;
  font-size: 1rem;
  text-align: center;
}

/* ============================
   MODALS & TOASTS
   ============================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  display: none;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUpFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.lg {
  max-width: 800px;
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.2rem;
}
.modal-close-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  max-width: 450px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 4px solid var(--primary);
}
.toast-item.success { border-left-color: var(--success); }
.toast-item.success span:first-child { color: var(--success); }
.toast-item.warning { border-left-color: var(--warning); }
.toast-item.warning span:first-child { color: var(--warning); }
.toast-item.danger { border-left-color: var(--danger); }
.toast-item.danger span:first-child { color: var(--danger); }
.toast-item.info { border-left-color: var(--primary); }
.toast-item.info span:first-child { color: var(--primary); }

/* Quick Create Dropdown Menu */
.quick-create-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  z-index: 150;
  display: none;
  padding: 6px;
  animation: slideDownFade 0.15s ease;
}
.quick-create-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.quick-create-dropdown a:hover {
  background: var(--bg);
  color: var(--text);
}

/* ============================
   ANIMATIONS DEFINITIONS
   ============================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1024px) {
  .news-featured-banner {
    border-radius: 0;
  }
  .news-banner-slide {
    grid-template-columns: 1fr;
  }
  .news-banner-image {
    height: 200px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-events-sidebar {
    order: 2;
  }
  .requests-layout {
    grid-template-columns: 1fr;
  }
  .survey-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .survey-results-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 16px;
  }
  .top-header {
    height: auto;
    padding: 12px 0;
  }
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .header-search-bar {
    max-width: 100%;
  }
  .header-right {
    justify-content: space-between;
  }
  .top-navbar {
    top: 0; /* Align directly under flexed header */
    position: static;
  }
  .navbar-content {
    padding: 0 8px;
  }
  .nav-tab-item {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  .announcement-item {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: flex-start;
  }
  .announcement-actions-area {
    width: 100%;
    justify-content: space-between;
  }
  .read-users-grid {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================
   ADMIN VIEWS STYLING
   ============================ */
.admin-subview {
  display: none;
  animation: fadeIn 0.25s ease;
}
.admin-subview.active {
  display: block;
}
.action-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.action-icon-btn:hover {
  background: var(--border-light);
}
.action-icon-btn.edit:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.action-icon-btn.delete:hover {
  color: var(--danger);
  background: var(--danger-light);
}
.action-icon-btn.remind:hover {
  color: var(--warning);
  background: var(--warning-light);
}

/* ========================================
   DASHBOARD RECREATION LAYOUT (GRID SLATE)
   ======================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  align-items: start;
}
.dashboard-left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Row 1: Carousel & Small List */
.dash-row-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.dash-carousel-card {
  overflow: hidden;
  height: 380px;
}
.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.carousel-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 0.7;
}
.carousel-arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}
.carousel-arrow.prev {
  left: 20px;
}
.carousel-arrow.next {
  right: 20px;
}
.carousel-content {
  color: #ffffff;
  max-width: 85%;
  z-index: 2;
  text-align: left;
}
.carousel-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.carousel-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-btn {
  background: #ffffff !important;
  color: var(--text) !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}
.carousel-dot.active {
  background: #ffffff;
  width: 20px;
  border-radius: 4px;
}

/* Small news list items */
.dash-small-news-card {
  height: 380px;
  overflow: hidden;
}
.small-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 38px);
  overflow: hidden;
}
.small-news-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}
.small-news-item:last-child {
  border-bottom: none;
}
.small-news-item:hover .small-news-title {
  color: var(--primary);
}
.small-news-img {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.small-news-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.small-news-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.badge-ghim {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
  letter-spacing: 0.02em;
}
.small-news-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.small-news-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Row 2: News grid (4 cards) */
.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.featured-news-card-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 350px;
  display: flex;
  flex-direction: column;
}
.featured-news-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.featured-news-card-item .card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.featured-news-card-item .card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.featured-news-card-item .card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.featured-news-card-item .card-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.featured-news-card-item .card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}
.featured-news-card-item .author-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
}
.featured-news-card-item .author-name {
  font-weight: 600;
  color: var(--text-secondary);
}
.featured-news-card-item .card-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}
.card-actions-footer .left-actions, .card-actions-footer .right-actions {
  display: flex;
  gap: 8px;
}
.card-actions-footer .action-btn-item {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
}
.card-actions-footer .action-btn-item .material-symbols-outlined {
  font-size: 16px;
}
.card-actions-footer .action-btn-item .count {
  font-size: 0.75rem;
  font-weight: 600;
}
.card-actions-footer .action-btn-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.card-actions-footer .action-btn-item.liked {
  color: var(--primary);
}
.card-actions-footer .action-btn-item.active {
  color: var(--warning);
}

/* Row 3: Bottom Widgets */
.dash-row-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.bottom-widget-card {
  height: 390px;
  display: flex;
  flex-direction: column;
}
.bottom-widget-card .card-body {
  flex: 1;
  overflow-y: auto;
}

/* Compact list items for dashboard widgets (Quyết định, Yêu cầu) */
.dash-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-light);
}
.dash-mini-item:last-child { border-bottom: none; }
.dash-mini-item:hover { background: #f1f5f9; }
.dash-mini-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #4f46e5;
  font-size: 20px;
}
.dash-mini-ico.blue { background: #e0f2fe; color: #0284c7; }
.dash-mini-ico.orange { background: #fff7ed; color: #ea580c; }
.dash-mini-info { flex: 1; min-width: 0; }
.dash-mini-title {
  font-size: 0.85rem; font-weight: 600; color: #1e293b; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dash-mini-meta { font-size: 0.74rem; color: var(--text-muted, #94a3b8); margin-top: 2px; }
.dash-mini-chevron { color: #cbd5e1; font-size: 20px; flex-shrink: 0; }
.dash-status-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.dash-status-badge.wait { background: #fef3c7; color: #b45309; }
.dash-status-badge.ok { background: #dcfce7; color: #15803d; }
.dash-status-badge.no { background: #fee2e2; color: #b91c1c; }
.dash-empty { padding: 24px 8px; text-align: center; color: var(--text-muted, #94a3b8); font-size: 0.85rem; }

/* Album: add-photo button + lightbox delete */
.album-cover { position: relative; }
.album-add-photo-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(37, 99, 235, 0.92); color: white; border: none;
  border-radius: 8px; padding: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; z-index: 5;
}
.album-add-photo-btn:hover { background: rgba(37, 99, 235, 1); transform: scale(1.08); }
.album-delete-btn {
  position: absolute; top: 8px; left: 8px;
  background: rgba(220, 38, 38, 0.9); color: white; border: none;
  border-radius: 8px; padding: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; z-index: 5;
}
.album-delete-btn:hover { background: rgba(220, 38, 38, 1); transform: scale(1.08); }
.lightbox-delete {
  position: absolute; top: 20px; left: 20px;
  background: rgba(220, 38, 38, 0.92); color: white; border: none;
  border-radius: 8px; padding: 8px 14px; cursor: pointer;
  align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; z-index: 10;
}
.lightbox-delete:hover { background: rgba(220, 38, 38, 1); }

/* Featured Row for Administrative Documents */
.doc-cat-row-featured {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}
.doc-cat-row-featured:hover {
  transform: translateX(4px);
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.doc-cat-row-featured .doc-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-cat-row-featured .doc-cat-icon .material-symbols-outlined {
  font-size: 18px;
}
.doc-cat-row-featured .doc-cat-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.doc-cat-row-featured .doc-cat-info .title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e3a8a;
}
.doc-cat-row-featured .doc-cat-info .desc {
  font-size: 0.7rem;
  color: #4b5563;
  font-weight: 500;
}
.doc-cat-row-featured .count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1e40af;
  margin-left: auto;
}
.doc-cat-row-featured .chevron-arrow {
  color: #1e40af;
  font-size: 16px;
  font-weight: bold;
}

/* Văn bản nội bộ list rows */
.doc-categories-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.doc-cat-row:hover {
  transform: translateX(4px);
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.doc-cat-row .doc-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-cat-row .doc-cat-icon .material-symbols-outlined {
  font-size: 16px;
}
.doc-cat-row .title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.doc-cat-row .count-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: auto;
}
.doc-cat-row .chevron-arrow {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: bold;
}

/* Colors for doc categories */
.doc-cat-row.blue .doc-cat-icon {
  background: #eff6ff;
  color: #2563eb;
}
.doc-cat-row.blue .count-badge {
  background: #eff6ff;
  color: #2563eb;
}
.doc-cat-row.purple .doc-cat-icon {
  background: #f5f3ff;
  color: #7c3aed;
}
.doc-cat-row.purple .count-badge {
  background: #f5f3ff;
  color: #7c3aed;
}
.doc-cat-row.green .doc-cat-icon {
  background: #ecfdf5;
  color: #10b981;
}
.doc-cat-row.green .count-badge {
  background: #ecfdf5;
  color: #10b981;
}
.doc-cat-row.red-row .doc-cat-icon {
  background: #fef2f2;
  color: #ef4444;
}
.doc-cat-row.red-row .count-badge {
  background: #fef2f2;
  color: #ef4444;
}
.doc-cat-row.orange-row .doc-cat-icon {
  background: #fff7ed;
  color: #ea580c;
}
.doc-cat-row.orange-row .count-badge {
  background: #fff7ed;
  color: #ea580c;
}

/* Albums new grid */
.dash-albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  height: 100%;
}
.dash-album-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.dash-album-item:hover .dash-album-cover {
  transform: scale(1.02);
}
.dash-album-cover {
  height: 72px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  transition: var(--transition-fast);
  border: 1px solid var(--border-light);
}
.dash-album-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-album-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
}

/* Sidebar Styling */
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  overflow: hidden;
}
.sidebar-card-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-card-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.sidebar-card-header a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}
.sidebar-card-header.blue {
  background: #003366;
  color: #ffffff;
}
.sidebar-card-header.blue h3 {
  color: #ffffff;
}
.sidebar-card-header.blue a {
  color: #93c5fd;
}
.sidebar-card-header.blue a:hover {
  color: #ffffff;
}
.sidebar-card-header.white {
  background: #ffffff;
  color: var(--text);
}
.sidebar-card-header.white h3 {
  color: #003366;
}
.sidebar-card-header.white a {
  color: var(--primary);
}

/* Sidebar announcements list */
.sidebar-notify-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-notify-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}
.sidebar-notify-item:last-child {
  border-bottom: none;
}
.sidebar-notify-item:hover .notify-title {
  color: var(--primary);
}
.notify-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notify-icon-circle.orange {
  background: #fff7ed;
  color: #ea580c;
}
.notify-icon-circle.blue {
  background: #eff6ff;
  color: #2563eb;
}
.notify-icon-circle.green {
  background: #f0fdf4;
  color: #16a34a;
}
.notify-icon-circle.pink {
  background: #fdf2f8;
  color: #db2777;
}
.notify-info-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}
.notify-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.notify-time-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.notify-mandatory-badge {
  background: #ffe4e6;
  color: #e11d48;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.notify-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}
.sidebar-read-ratio-area {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

/* Sidebar Events Timeline */
.sidebar-events-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline-event-item {
  display: flex;
  gap: 16px;
  cursor: pointer;
  padding-bottom: 16px;
}
.timeline-event-item:last-child {
  padding-bottom: 0;
}
.timeline-bullet-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: 12px;
}
.timeline-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 2;
}
.timeline-bullet.red { background: #e11d48; }
.timeline-bullet.orange { background: #f59e0b; }
.timeline-bullet.green { background: #10b981; }
.timeline-bullet.purple { background: #8b5cf6; }

.timeline-line {
  width: 2px;
  background: var(--border);
  flex: 1;
  position: absolute;
  top: 10px;
  bottom: -16px;
  z-index: 1;
}
.timeline-event-content {
  flex: 1;
  text-align: left;
}
.timeline-event-content .event-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}
.timeline-event-content .event-room {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.timeline-event-content .event-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Appended styling for advanced enterprise features */
.switch-control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  transition: all var(--transition);
}
.switch-control-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}
.switch-label-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.switch-label-info span.icon {
  font-size: 22px;
  color: var(--text-muted);
}
.switch-label-info.active span.icon {
  color: var(--primary);
}
.switch-label-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.switch-label-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.switch-label-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Switch HTML input styles */
.switch-toggle-input {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch-toggle-input input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-toggle-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}
.slider-toggle-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider-toggle-round {
  background-color: var(--primary);
}
input:checked + .slider-toggle-round:before {
  transform: translateX(20px);
}

/* Workflow design steps styling */
.wf-designer-node-box {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.wf-designer-node-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.wf-designer-step-badge {
  background: var(--primary-light);
  color: var(--primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  margin-right: 12px;
}
.wf-designer-step-info {
  flex: 1;
  text-align: left;
}
.wf-designer-step-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}
.wf-designer-step-approver {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* video tab / component styling */
.video-news-scroll-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.video-news-scroll-grid::-webkit-scrollbar {
  height: 6px;
}
.video-news-scroll-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.video-news-item {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all var(--transition);
  position: relative;
}
.video-news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.video-thumbnail-container {
  height: 145px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #1e293b;
}
.video-play-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}
.video-news-item:hover .video-play-btn-circle {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}
.video-duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.video-news-item-body {
  padding: 12px;
  text-align: left;
}
.video-news-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-news-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}
.delete-video-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: opacity 0.2s;
  opacity: 0.8;
}
.delete-video-btn:hover {
  opacity: 1;
  background: #dc2626;
}

/* Dynamic Forms User list styling */
.eform-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all var(--transition);
}
.eform-user-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border-color: var(--primary-light);
}
.eform-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.eform-user-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}
.eform-user-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* SVG Chart CSS styling */
.chart-svg-bar {
  fill: var(--primary);
  rx: 4;
  transition: fill 0.2s, height 0.5s ease-out;
}
.chart-svg-bar:hover {
  fill: var(--primary-dark);
}
.chart-svg-label {
  font-size: 10px;
  fill: var(--text-muted);
  font-weight: 500;
  text-anchor: middle;
}
.chart-svg-value {
  font-size: 10px;
  fill: var(--text);
  font-weight: 700;
  text-anchor: middle;
}

