/* ============================================================
   USIMABE TI — DESIGN SYSTEM
   Brand: Navy #1B3A5C | Orange #F26B21
   ============================================================ */

:root {
  --brand-navy: #1B3A5C;
  --brand-navy-light: #234d7a;
  --brand-navy-dark: #122843;
  --brand-orange: #F26B21;
  --brand-orange-light: #f5874d;
  --brand-orange-dark: #d45a15;

  --bg-page: #0d1520;
  --bg-card: #131f2e;
  --bg-card-hover: #1a2b3f;
  --bg-sidebar: #0f1c2a;
  --bg-input: #1a2b3f;
  --bg-topbar: #0f1c2a;

  --border: rgba(255,255,255,0.07);
  --border-focus: var(--brand-orange);

  --text-primary: #e8edf2;
  --text-secondary: #8fa5bb;
  --text-muted: #5a7390;

  --status-open: #3b82f6;
  --status-progress: #f59e0b;
  --status-waiting: #8b5cf6;
  --status-resolved: #10b981;
  --status-closed: #6b7280;

  --prio-low: #10b981;
  --prio-medium: #f59e0b;
  --prio-high: #ef4444;
  --prio-critical: #dc2626;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-orange: 0 4px 20px rgba(242,107,33,0.3);

  --sidebar-width: 260px;
  --topbar-height: 64px;
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg-page); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }
a { color: var(--brand-orange); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; }

/* ---- UTILITIES ---- */
.hidden { display: none !important; }
.page { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-orange { color: var(--brand-orange); }
.text-right { text-align: right; }
.w-full { width: 100%; }

/* ---- PRELOADER ---- */
#preloader {
  position: fixed; inset: 0; background: var(--bg-page);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.preloader-content { text-align: center; }
.preloader-logo { width: 140px; margin-bottom: 24px; background: #ffffff; padding: 12px 18px; border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.preloader-content p { color: var(--text-muted); margin-top: 16px; font-size: 14px; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--brand-orange); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- LOGIN ---- */
.login-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 20% 50%, rgba(27,58,92,0.5) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(242,107,33,0.15) 0%, transparent 50%),
              var(--bg-page);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(27,58,92,0.3);
  animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { width: 180px; margin-bottom: 20px; background: #ffffff; padding: 10px 16px; border-radius: var(--radius-md); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.login-header h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.login-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.input-icon input { padding-left: 42px !important; }
.input-icon .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; color: var(--text-muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(242,107,33,0.15);
}
select option { background: var(--bg-card); color: var(--text-primary); }
textarea { resize: vertical; min-height: 120px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; border: none;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-full { width: 100%; padding: 13px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary {
  background: var(--brand-orange); color: white;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--brand-orange-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(242,107,33,0.4); }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--brand-orange); }
.btn-navy { background: var(--brand-navy); color: white; }
.btn-navy:hover { background: var(--brand-navy-light); }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--brand-orange); background: rgba(242,107,33,0.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid transparent; border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ---- ALERTS ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-error { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-info { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #93c5fd; }
.alert-warning { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #fcd34d; }

/* ---- SIDEBAR ---- */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 100;
  transition: transform var(--transition);
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo { height: 42px; background: #ffffff; padding: 6px 12px; border-radius: var(--radius-sm); object-fit: contain; }
.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); font-size: 18px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-section { padding: 6px 20px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); border-radius: 0;
  border: none; background: none; width: 100%; text-align: left;
  position: relative;
}
.nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-item.active { color: var(--brand-orange); background: rgba(242,107,33,0.1); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-orange); border-radius: 0 2px 2px 0; }
.nav-item .nav-icon { font-size: 18px; width: 22px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--brand-orange); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 20px; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.user-card { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }
.user-card-info { flex: 1; min-width: 0; }
.user-card-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-role { font-size: 11px; color: var(--text-muted); }
.btn-logout { width: 100%; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; border-radius: var(--radius-md); padding: 9px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition); }
.btn-logout:hover { background: rgba(239,68,68,0.2); }

/* ---- MAIN LAYOUT ---- */
.main-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-height); background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle { background: none; border: none; color: var(--text-secondary); font-size: 20px; display: none; }
.breadcrumb { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.notif-btn { position: relative; background: none; border: none; font-size: 20px; color: var(--text-secondary); transition: color var(--transition); padding: 6px; }
.notif-btn:hover { color: var(--brand-orange); }
.badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; background: var(--brand-orange); color: white; font-size: 10px; font-weight: 700; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.content { flex: 1; padding: 28px 28px; }

/* ---- CARDS ---- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 700; }
.card-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---- STAT CARDS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--brand-orange)); }
.stat-card:hover { border-color: var(--card-color, var(--brand-orange)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr { cursor: pointer; transition: background var(--transition); }

/* ---- STATUS & PRIORITY BADGES ---- */
.badge-status, .badge-priority {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.s-open { background: rgba(59,130,246,0.15); color: #60a5fa; }
.s-in_progress { background: rgba(245,158,11,0.15); color: #fbbf24; }
.s-waiting { background: rgba(139,92,246,0.15); color: #a78bfa; }
.s-resolved { background: rgba(16,185,129,0.15); color: #34d399; }
.s-closed { background: rgba(107,114,128,0.15); color: #9ca3af; }
.p-low { background: rgba(16,185,129,0.15); color: #34d399; }
.p-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.p-high { background: rgba(239,68,68,0.15); color: #f87171; }
.p-critical { background: rgba(220,38,38,0.15); color: #fc8181; border: 1px solid rgba(220,38,38,0.3); animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0.3)} 50%{box-shadow:0 0 0 4px rgba(220,38,38,0)} }

/* ---- PAGE HEADERS ---- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h2 { font-size: 22px; font-weight: 800; }
.page-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---- FILTERS BAR ---- */
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn { padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { border-color: var(--brand-orange); color: var(--brand-orange); background: rgba(242,107,33,0.08); }
.search-input { padding: 8px 14px 8px 36px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; width: 220px; }
.search-wrap { position: relative; }
.search-wrap::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; }

/* ---- TICKET DETAIL ---- */
.ticket-header-card {
  background: linear-gradient(135deg, var(--brand-navy-dark), #162234);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.ticket-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.ticket-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 20px; }

/* ---- CHAT ---- */
.chat-box { display: flex; flex-direction: column; gap: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: 480px; min-height: 200px; }
.chat-msg { display: flex; gap: 10px; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.chat-msg.me { flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; flex-shrink: 0; margin-top: 2px; }
.msg-body { max-width: 70%; }
.msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg:not(.me) .msg-bubble { background: var(--bg-card-hover); border-radius: 4px 16px 16px 16px; }
.chat-msg.me .msg-bubble { background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-light)); border-radius: 16px 4px 16px 16px; }
.chat-msg.admin-msg:not(.me) .msg-bubble { background: linear-gradient(135deg, rgba(242,107,33,0.15), rgba(242,107,33,0.08)); border: 1px solid rgba(242,107,33,0.2); }
.msg-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.chat-msg.me .msg-meta { text-align: right; }
.chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg-card); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.chat-input-row { display: flex; gap: 10px; }
.chat-input { flex: 1; padding: 10px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); font-size: 14px; resize: none; max-height: 120px; min-height: 42px; transition: border-color var(--transition); }
.chat-input:focus { outline: none; border-color: var(--brand-orange); }
.chat-send-btn { background: var(--brand-orange); border: none; color: white; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); flex-shrink: 0; }
.chat-send-btn:hover { background: var(--brand-orange-dark); transform: scale(1.05); }

/* ---- NEW TICKET FORM ---- */
.new-ticket-card { max-width: 760px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.category-btn {
  padding: 14px 10px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-input); color: var(--text-secondary);
  text-align: center; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
}
.category-btn .cat-icon { font-size: 24px; }
.category-btn:hover, .category-btn.selected { border-color: var(--brand-orange); color: var(--brand-orange); background: rgba(242,107,33,0.08); }
.priority-row { display: flex; gap: 8px; flex-wrap: wrap; }
.prio-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 500; transition: all var(--transition); }
.prio-btn.selected-low { border-color: var(--prio-low); color: var(--prio-low); background: rgba(16,185,129,0.08); }
.prio-btn.selected-medium { border-color: var(--prio-medium); color: var(--prio-medium); background: rgba(245,158,11,0.08); }
.prio-btn.selected-high { border-color: var(--prio-high); color: var(--prio-high); background: rgba(239,68,68,0.08); }
.prio-btn.selected-critical { border-color: var(--prio-critical); color: var(--prio-critical); background: rgba(220,38,38,0.08); }

/* ---- USERS ADMIN ---- */
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.user-list-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: all var(--transition);
}
.user-list-card:hover { border-color: var(--brand-orange); transform: translateY(-2px); }
.user-list-card.inactive { opacity: 0.5; }
.user-list-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.user-list-info { flex: 1; min-width: 0; }
.user-list-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list-role { font-size: 11px; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 3px; }
.role-admin { background: rgba(242,107,33,0.15); color: var(--brand-orange); }
.role-user { background: rgba(59,130,246,0.15); color: #60a5fa; }
.user-list-detail { font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.user-list-detail span { display: flex; align-items: center; gap: 6px; }
.user-list-actions { display: flex; gap: 8px; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeOverlay 0.2s ease;
}
@keyframes fadeOverlay { from{opacity:0} to{opacity:1} }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: fadeInUp 0.3s ease;
}
.modal-lg { max-width: 640px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; padding: 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--text-primary); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---- NOTIFICATIONS ---- */
.notif-list { display: flex; flex-direction: column; gap: 1px; }
.notif-item { padding: 14px 20px; display: flex; gap: 12px; align-items: flex-start; transition: background var(--transition); }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { border-left: 3px solid var(--brand-orange); }
.notif-item.read { border-left: 3px solid transparent; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); margin-top: 5px; flex-shrink: 0; }
.notif-dot.read { background: var(--text-muted); }
.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif-msg { font-size: 13px; color: var(--text-secondary); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.empty-state .btn { margin-top: 20px; }

/* ---- TOAST ---- */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  min-width: 280px; max-width: 380px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight 0.3s ease;
  font-size: 14px; font-weight: 500;
  pointer-events: all;
}
@keyframes slideInRight { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
.toast-success { border-left: 3px solid #10b981; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid var(--brand-orange); }

/* ---- SETUP PAGE ---- */
.setup-card { max-width: 460px; margin: 80px auto; }
.setup-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.setup-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ---- TICKET STATUS CONTROL (admin) ---- */
.status-control { display: flex; gap: 8px; flex-wrap: wrap; }
.status-btn { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition); }
.status-btn:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.status-btn.current { background: rgba(242,107,33,0.1); border-color: var(--brand-orange); color: var(--brand-orange); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: flex; }
  .content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modal { max-width: 100%; padding: 20px; }
  .users-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
