/* =====================================================
   مركز خدمة الموظف - CSS كامل RTL
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:        #1a56db;
  --primary-light:  #eff6ff;
  --primary-dark:   #1e40af;
  --accent:         #f59e0b;
  --accent-light:   #fffbeb;
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --purple:         #8b5cf6;

  --bg:             #f3f6fb;
  --surface:        #ffffff;
  --border:         #e5e9f2;
  --border-light:   #f0f3f9;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --sidebar-width:  260px;
  --header-height:  60px;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-xl:      0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

[data-theme="dark"] {
  --bg:             #0b1220;
  --surface:        #0f1a2b;
  --border:         #1f2a3d;
  --border-light:   #182235;

  --text-primary:   #e5e7eb;
  --text-secondary: #cbd5e1;
  --text-muted:     #94a3b8;

  --primary-light:  rgba(26, 86, 219, .18);

  --shadow-sm:      0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.5), 0 2px 4px -1px rgba(0,0,0,.35);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.55), 0 4px 6px -2px rgba(0,0,0,.35);
  --shadow-xl:      0 20px 25px -5px rgba(0,0,0,.6), 0 10px 10px -5px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  direction: rtl;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: transform .3s ease;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.sidebar-logo svg { width: 22px; height: 22px; }
.sidebar-logo-img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }

.sidebar-title { display: flex; flex-direction: column; }
.sidebar-main-title { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.sidebar-sub-title  { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

.sidebar-user {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  margin: 8px;
  border-radius: var(--radius-sm);
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name   { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-center { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { flex: 1; padding: 8px; }

.nav-section-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 8px 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }

.sidebar-footer { padding: 8px; border-top: 1px solid var(--border-light); margin-top: auto; }
.logout-btn { color: var(--danger) !important; }
.logout-btn:hover { background: #fef2f2 !important; }

[data-theme="dark"] .logout-btn:hover { background: rgba(239, 68, 68, .12) !important; }

/* ===========================
   MAIN WRAPPER
   =========================== */
.main-wrapper {
  flex: 1;
  margin-right: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-right .3s ease;
}

body.sidebar-collapsed .sidebar { transform: translateX(100%); }
body.sidebar-collapsed .main-wrapper { margin-right: 0; }

.top-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 90;
  box-shadow: var(--shadow-sm);
}
.sidebar-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; padding: 6px; border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all .15s ease;
}
.sidebar-toggle:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.sidebar-toggle svg { width: 20px; height: 20px; }
.header-title { font-size: 16px; font-weight: 700; flex: 1; }
.header-actions-right { display: flex; align-items: center; gap: 10px; margin-right: auto; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; }

.main-content { flex: 1; padding: 24px; }

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap; gap: 8px;
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.card-title svg { width: 18px; height: 18px; color: var(--primary); }
.card-body { padding: 20px; }

/* ===========================
   STATS GRID
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--stat-color, var(--primary));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--stat-color) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--stat-color); flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.progress-bar { background: var(--border); border-radius: 99px; height: 4px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .8s ease; }

/* ===========================
   DASHBOARD GRID
   =========================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.dashboard-grid .col-4 { grid-column: span 4; }
.dashboard-grid .col-6 { grid-column: span 6; }
.dashboard-grid .col-8 { grid-column: span 8; }
.dashboard-grid .col-12 { grid-column: span 12; }

.chart-container { position: relative; width: 100%; }

/* ===========================
   TABLE
   =========================== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: var(--bg); }
th {
  padding: 12px 16px; text-align: right;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .03em; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ===========================
   BADGES
   =========================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.badge-open        { background: #eff6ff; color: #1d4ed8; }
.badge-progress    { background: #fff7ed; color: #c2410c; }
.badge-transferred { background: #faf5ff; color: #7c3aed; }
.badge-closed      { background: #f0fdf4; color: #166534; }
.badge-admin       { background: var(--primary-light); color: var(--primary); }
.badge-supervisor  { background: #fef3c7; color: #92400e; }
.badge-agent       { background: #f0fdf4; color: #166534; }
.badge-viewer      { background: #f1f5f9; color: #334155; }

[data-theme="dark"] .badge-open        { background: rgba(29, 78, 216, .16); color: #93c5fd; }
[data-theme="dark"] .badge-progress    { background: rgba(194, 65, 12, .16); color: #fdba74; }
[data-theme="dark"] .badge-transferred { background: rgba(124, 58, 237, .16); color: #c4b5fd; }
[data-theme="dark"] .badge-closed      { background: rgba(22, 101, 52, .18); color: #86efac; }
[data-theme="dark"] .badge-supervisor  { background: rgba(146, 64, 14, .18); color: #fcd34d; }
[data-theme="dark"] .badge-agent       { background: rgba(22, 101, 52, .18); color: #86efac; }
[data-theme="dark"] .badge-viewer      { background: rgba(148, 163, 184, .18); color: #e2e8f0; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-1px); }

.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover  { filter: brightness(.9); }

.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover   { filter: brightness(.9); }

.btn-warning  { background: var(--warning); color: #fff; }
.btn-warning:hover  { filter: brightness(.9); }

.btn-ghost    { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover    { background: var(--border); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===========================
   FORMS
   =========================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.required { color: var(--danger); }

.form-control {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .15s ease;
  direction: rtl;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.08); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.col-full { grid-column: 1 / -1; }

/* ===========================
   MODALS
   =========================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay.open .modal { transform: translateY(0); }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: transform .2s ease;
}
.modal-lg { max-width: 800px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.modal-close:hover { background: var(--border); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body   { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: var(--bg);
}

/* ===========================
   SEARCH & FILTERS
   =========================== */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 1;
}
.search-bar svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-bar input { border: none; background: none; font-family: inherit; font-size: 13px; flex: 1; min-width: 0; }
.search-bar input:focus { outline: none; }

.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ===========================
   TIMELINE
   =========================== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 16px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-line {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.timeline-connector {
  width: 2px; flex: 1;
  background: var(--border);
  margin-top: 4px;
}
.timeline-content { flex: 1; }
.timeline-title { font-size: 13px; font-weight: 600; }
.timeline-meta  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.timeline-desc  { font-size: 12px; color: var(--text-secondary); margin-top: 6px; background: var(--bg); padding: 8px 12px; border-radius: var(--radius-sm); }

/* ===========================
   ALERTS
   =========================== */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  margin: 0 24px 0;
  transition: opacity .5s ease;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ===========================
   TOAST
   =========================== */
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
.toast-success { background: #166534; color: #fff; }
.toast-error   { background: #991b1b; color: #fff; }
.toast-info    { background: var(--primary); color: #fff; }

@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===========================
   NOTIFICATIONS
   =========================== */
.notif-wrapper { position: relative; }
.notif-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); position: relative;
}
.notif-btn svg { width: 18px; height: 18px; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  border-radius: 99px; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  padding: 0 4px;
}
.notif-badge.hidden { display: none; }

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  max-height: 440px;
  overflow-y: auto;
  display: none;
}
.notif-panel.open { display: block; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 13px;
  position: sticky; top: 0;
  background: var(--surface);
}
.mark-all-read { font-size: 11px; color: var(--primary); cursor: pointer; background: none; border: none; font-family: inherit; font-weight: 600; }

.notif-item {
  display: flex; gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid var(--border-light);
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-light); }
.notif-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.notif-msg { font-size: 12px; color: var(--text-primary); font-weight: 500; line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ===========================
   LOGIN PAGE
   =========================== */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  position: relative;
}
.login-logo {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin: 0 auto 24px;
}
.login-logo svg { width: 36px; height: 36px; }
.login-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-subtitle { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 32px; }

.login-theme-toggle {
  position: absolute;
  top: 14px;
  left: 14px;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
  padding: 20px;
}
.page-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all .15s;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ===========================
   TICKET DETAIL
   =========================== */
.ticket-header-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.ticket-number { font-size: 22px; font-weight: 800; color: var(--primary); }
.ticket-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.detail-row {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-weight: 500; min-width: 130px; flex-shrink: 0; }
.detail-value { color: var(--text-primary); font-weight: 600; }

/* ===========================
   FADE IN ANIMATION
   =========================== */
.fade-in {
  opacity: 0;
  animation: fadeUp .4s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in:nth-child(1) { animation-delay: .05s; }
.fade-in:nth-child(2) { animation-delay: .10s; }
.fade-in:nth-child(3) { animation-delay: .15s; }
.fade-in:nth-child(4) { animation-delay: .20s; }
.fade-in:nth-child(5) { animation-delay: .25s; }
.fade-in:nth-child(6) { animation-delay: .30s; }

/* ===========================
   COLOR PICKER
   =========================== */
.color-swatch {
  display: inline-block;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.1);
  vertical-align: middle;
}

/* ===========================
   INFO BOX
   =========================== */
.info-box {
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12px; color: var(--primary);
  display: flex; gap: 8px; align-items: flex-start;
}
.info-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

[data-theme="dark"] .info-box { border-color: rgba(191, 219, 254, .25); }

/* ===========================
   MOBILE OVERLAY
   =========================== */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
  display: none;
}
.sidebar-overlay.active { display: block; }

/* ===========================
   PRINT
   =========================== */
@media print {
  .sidebar, .top-header, .no-print { display: none !important; }
  .main-wrapper { margin-right: 0; }
  .main-content { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .stat-card { break-inside: avoid; }
  .modal-overlay { display: none !important; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .dashboard-grid .col-4,
  .dashboard-grid .col-6,
  .dashboard-grid .col-8 { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .ticket-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 260px; }
  .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-right: 0; }
  body.sidebar-collapsed .sidebar { transform: translateX(100%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 16px; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .notif-panel { width: 280px; right: 0; left: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
  .modal { margin: 8px; }
  .btn-group { flex-direction: column; }
}
