/* ==========================================================================
   Rekrufy Back-Office — Monday.com Theme
   ========================================================================== */

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

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Sidebar */
  --bg-sidebar: #0D2137;
  --bg-sidebar-hover: #1A3A5C;
  --bg-sidebar-active: #1A3A5C;

  /* Backgrounds */
  --bg-page: #F6F7FB;
  --bg-card: #FFFFFF;
  --bg-header: #FFFFFF;
  --bg-table-header: #F6F7FB;
  --bg-table-alt: #FAFBFC;
  --bg-table-hover: #F0F3FF;

  /* Accent colors */
  --color-blue: #0073EA;
  --color-green: #00CA72;
  --color-orange: #FDAB3D;
  --color-red: #E2445C;
  --color-purple: #A25DDC;
  --color-pink: #FF158A;
  --color-teal: #00C875;
  --color-yellow: #FFCB00;
  --color-navy: #225091;
  --color-gray: #C4C4C4;

  /* Text */
  --text-primary: #323338;
  --text-secondary: #676879;
  --text-muted: #B0B3BD;
  --text-white: #FFFFFF;

  /* Status */
  --status-success: #00CA72;
  --status-warning: #FDAB3D;
  --status-danger: #E2445C;
  --status-info: #0073EA;
  --status-pending: #FFCB00;
  --status-draft: #C4C4C4;

  /* Badges recompenses */
  --badge-500: #00CA72;
  --badge-1000: #0073EA;
  --badge-1500: #A25DDC;
  --badge-5000: #FF158A;

  /* Borders & Shadows */
  --border-light: #E6E9EF;
  --border-input: #D0D4E4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;

  /* Transitions */
  --transition: all 0.2s ease;

  /* Sidebar width */
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 60px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--color-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: #005bb5; }

h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }

/* ==========================================================================
   Layout
   ========================================================================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
}

.content-area {
  flex: 1;
  padding: 24px;
  min-width: 0;
  overflow-x: auto;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 60px;
}

.sidebar-logo a {
  color: var(--text-white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-logo a:hover { color: var(--text-white); }

.logo-mini { display: none; }

.sidebar-toggle-btn,
.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

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

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item { margin: 2px 10px; }

.menu-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: var(--transition);
  font-size: 13.5px;
  font-weight: 400;
  position: relative;
}

.menu-link:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.menu-item.active > .menu-link {
  background: var(--bg-sidebar-active);
  color: var(--text-white);
  font-weight: 500;
  border-left: 3px solid var(--color-blue);
  padding-left: 11px;
}

.menu-icon {
  width: 20px;
  text-align: center;
  margin-right: 12px;
  font-size: 15px;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-badge {
  background: var(--color-red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: 8px;
}
.menu-badge:empty { display: none; }

/* Submenu */
.submenu-arrow {
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.menu-item.has-submenu.open > .menu-link .submenu-arrow {
  transform: rotate(90deg);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-item.has-submenu.open > .submenu {
  max-height: 300px;
}

.submenu li a {
  display: block;
  padding: 8px 14px 8px 48px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  border-radius: 6px;
  transition: var(--transition);
}

.submenu li a:hover,
.submenu li a.active {
  color: var(--text-white);
  background: rgba(255,255,255,0.05);
}

/* Separator */
.menu-separator {
  padding: 16px 24px 6px;
  margin: 4px 0;
}

.menu-separator span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.avatar-initials {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
}

.sidebar-logout {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  padding: 6px;
  transition: var(--transition);
}

.sidebar-logout:hover { color: var(--color-red); }

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

.hamburger-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-center {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-page);
  transition: var(--transition);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0,115,234,0.15);
  background: white;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  display: none;
  z-index: 1050;
  max-height: 400px;
  overflow-y: auto;
}

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

/* Notifications */
.notification-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  position: relative;
  transition: var(--transition);
  border-radius: 8px;
}

.notification-btn:hover { background: var(--bg-page); color: var(--text-primary); }

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notification-dropdown {
  width: 360px;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 0;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.notification-header h6 { margin: 0; font-size: 14px; font-weight: 600; }
.notification-header a { font-size: 12px; color: var(--color-blue); }

.notification-list { max-height: 300px; overflow-y: auto; }
.notification-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }

.notification-footer {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}
.notification-footer a { font-size: 13px; font-weight: 500; }

/* User dropdown */
.user-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.user-btn:hover { background: var(--bg-page); }

.user-name-header {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-wrapper {
  padding: 12px 24px;
  background: transparent;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 13px;
}

.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--color-blue); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ==========================================================================
   KPI Cards
   ========================================================================== */
.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid var(--color-blue);
  transition: var(--transition);
}

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

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.kpi-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}
.kpi-trend.up { color: var(--color-green); }
.kpi-trend.down { color: var(--color-red); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  background: none;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.card-body { padding: 20px; min-width: 0; overflow-x: auto; }

/* ==========================================================================
   Tables (DataTables)
   ========================================================================== */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: var(--bg-table-header);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #F0F1F5;
  font-size: 13px;
  color: var(--text-primary);
}

.table tbody tr:nth-child(even) {
  background: var(--bg-table-alt);
}

.table tbody tr:hover {
  background: var(--bg-table-hover);
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,115,234,0.15);
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: inherit;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--color-blue) !important;
  color: white !important;
  border-color: var(--color-blue) !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 13px;
  color: var(--text-secondary);
}

/* DataTables Responsive */
.dataTables_wrapper {
  width: 100%;
  overflow-x: visible;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
  content: '−';
  background: var(--color-red);
}
table.dataTable > tbody > tr.child ul.dtr-details {
  list-style: none;
  padding: 0;
  margin: 0;
}
table.dataTable > tbody > tr.child ul.dtr-details > li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
  border-bottom: none;
}
table.dataTable > tbody > tr.child ul.dtr-details > li .dtr-title {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 120px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
table.dataTable > tbody > tr.child ul.dtr-details > li .dtr-data {
  flex: 1;
}
table.dataTable > tbody > tr.child td.child {
  padding: 12px 16px 12px 30px;
  background: var(--bg-table-alt);
}

/* Action buttons in tables */
.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.btn-action:hover { transform: translateY(-1px); }

.btn-action.view { color: var(--color-blue); background: rgba(0,115,234,0.08); }
.btn-action.view:hover { background: rgba(0,115,234,0.15); }

.btn-action.edit { color: var(--color-orange); background: rgba(253,171,61,0.08); }
.btn-action.edit:hover { background: rgba(253,171,61,0.15); }

.btn-action.delete { color: var(--color-red); background: rgba(226,68,92,0.08); }
.btn-action.delete:hover { background: rgba(226,68,92,0.15); }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.badge-success { background: rgba(0,202,114,0.12); color: #00994D; }
.badge-warning { background: rgba(253,171,61,0.15); color: #B87A00; }
.badge-danger { background: rgba(226,68,92,0.12); color: #C13350; }
.badge-info { background: rgba(0,115,234,0.12); color: #005BB5; }
.badge-primary { background: rgba(0,115,234,0.12); color: #005BB5; }
.badge-secondary { background: rgba(196,196,196,0.2); color: #676879; }
.badge-purple { background: rgba(162,93,220,0.12); color: #8A3DB8; }
.badge-pink { background: rgba(255,21,138,0.12); color: #CC1170; }
.badge-dark { background: rgba(50,51,56,0.1); color: #323338; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary { background: var(--color-blue); border-color: var(--color-blue); color: white; }
.btn-primary:hover { background: #005BB5; border-color: #005BB5; color: white; }

.btn-success { background: var(--color-green); border-color: var(--color-green); color: white; }
.btn-success:hover { background: #00994D; border-color: #00994D; color: white; }

.btn-danger { background: var(--color-red); border-color: var(--color-red); color: white; }
.btn-danger:hover { background: #C13350; border-color: #C13350; color: white; }

.btn-warning { background: var(--color-orange); border-color: var(--color-orange); color: white; }
.btn-warning:hover { background: #E09520; border-color: #E09520; color: white; }

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
}
.btn-outline-primary:hover {
  background: var(--color-blue);
  color: white;
}

.btn-light {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.btn-light:hover { background: #E8EAF0; }

.btn-sm {
  font-size: 12px;
  padding: 5px 12px;
}

.btn-lg {
  font-size: 15px;
  padding: 12px 28px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0,115,234,0.15);
}

.form-control.is-invalid {
  border-color: var(--color-red);
}

.invalid-feedback {
  font-size: 12px;
  color: var(--color-red);
}

.form-select {
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
}

.form-select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0,115,234,0.15);
}

/* Select2 override */
.select2-container--bootstrap-5 .select2-selection {
  border: 1px solid var(--border-input) !important;
  border-radius: 8px !important;
  min-height: 42px !important;
  font-family: 'Poppins', sans-serif !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  padding: 6px 10px !important;
  font-size: 13px !important;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
}

.modal-title { font-size: 16px; font-weight: 600; }

.modal-body { padding: 20px; }

.modal-footer {
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */
.auth-page {
  background: linear-gradient(135deg, #0D2137 0%, #1A3A5C 50%, #0073EA 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 4px;
}

.logo-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

/* ==========================================================================
   Toastr Overrides
   ========================================================================== */
.toast-success { background-color: var(--color-green) !important; border-radius: 10px !important; }
.toast-error { background-color: var(--color-red) !important; border-radius: 10px !important; }
.toast-info { background-color: var(--color-blue) !important; border-radius: 10px !important; }
.toast-warning { background-color: var(--color-orange) !important; border-radius: 10px !important; }
#toast-container > div { border-radius: 10px !important; box-shadow: var(--shadow-md) !important; opacity: 1 !important; }

/* ==========================================================================
   SweetAlert2 Overrides
   ========================================================================== */
.swal2-popup { border-radius: var(--radius-lg) !important; font-family: 'Poppins', sans-serif !important; }
.swal2-confirm { border-radius: 8px !important; }
.swal2-cancel { border-radius: 8px !important; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-blue { color: var(--color-blue); }
.text-green { color: var(--color-green); }
.text-orange { color: var(--color-orange); }
.text-red { color: var(--color-red); }
.text-purple { color: var(--color-purple); }
.text-pink { color: var(--color-pink); }

.bg-blue-light { background: rgba(0,115,234,0.08); }
.bg-green-light { background: rgba(0,202,114,0.08); }
.bg-orange-light { background: rgba(253,171,61,0.08); }
.bg-red-light { background: rgba(226,68,92,0.08); }
.bg-purple-light { background: rgba(162,93,220,0.08); }

.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-collapsed);
  }
  .sidebar .menu-text,
  .sidebar .submenu-arrow,
  .sidebar .menu-badge,
  .sidebar .user-info,
  .sidebar .logo-full,
  .sidebar .menu-separator span {
    display: none;
  }
  .sidebar .logo-mini { display: block; }
  .sidebar .menu-link { justify-content: center; padding: 12px; }
  .sidebar .menu-icon { margin-right: 0; font-size: 18px; }
  .sidebar .sidebar-footer { justify-content: center; }
  .sidebar .sidebar-logout { display: none; }
  .main-content { margin-left: var(--sidebar-collapsed); }

  /* Expanded state on tablet */
  .sidebar.expanded {
    width: var(--sidebar-width);
  }
  .sidebar.expanded .menu-text,
  .sidebar.expanded .submenu-arrow,
  .sidebar.expanded .menu-badge,
  .sidebar.expanded .user-info,
  .sidebar.expanded .logo-full,
  .sidebar.expanded .menu-separator span {
    display: block;
  }
  .sidebar.expanded .logo-mini { display: none; }
  .sidebar.expanded .menu-link { justify-content: flex-start; padding: 10px 14px; }
  .sidebar.expanded .menu-icon { margin-right: 12px; font-size: 15px; }
  .sidebar.expanded .sidebar-footer { justify-content: flex-start; }
  .sidebar.expanded .sidebar-logout { display: block; }
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar .menu-text,
  .sidebar .submenu-arrow,
  .sidebar .menu-badge,
  .sidebar .user-info,
  .sidebar .logo-full,
  .sidebar .menu-separator span {
    display: block;
  }
  .sidebar .logo-mini { display: none; }
  .sidebar .menu-link { justify-content: flex-start; padding: 10px 14px; }
  .sidebar .menu-icon { margin-right: 12px; font-size: 15px; }

  .main-content { margin-left: 0; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1039;
  }
  .sidebar-overlay.active { display: block; }

  .header-center { display: none; }
  .content-area { padding: 16px; }
}
