/* ============================================================
   WiredTech Desk — Design System & Styles
   MSP Ticketing & Operations Platform
   ============================================================ */

:root {
  --primary: #007bff;
  --primary-hover: #0069d9;
  --primary-glow: rgba(0, 123, 255, 0.25);
  --cyan: #00d2ff;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #ef4444;
  --purple: #8b5cf6;

  --bg: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1a253f;
  --bg-input: #1a243b;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #007bff;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(0, 123, 255, 0.2);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #223150;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2c3f66;
}

/* ============================================================
   TELA DE LOGIN CORPORATIVA WIREDTECH
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  background-color: #070b14;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(0, 163, 255, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* Efeito de Clique Neon da WiredTech */
.wiredtech-click-ripple {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #00d2ff;
  box-shadow: 0 0 16px #00d2ff, 0 0 32px rgba(0, 112, 243, 0.7), inset 0 0 8px #00d2ff;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: 99999;
  animation: wiredtechRippleAnim 0.65s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes wiredtechRippleAnim {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(7.5);
  }
}

.login-card {
  background: rgba(14, 22, 41, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(0, 123, 255, 0.18);
  width: 100%;
  max-width: 470px;
  padding: 2.75rem 2.25rem 2rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #10b981);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #0284c7 0%, #00d2ff 100%);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.95rem;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.login-footer-badge {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.login-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.login-demo-grid {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.login-demo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-demo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-account-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.demo-account-card:hover {
  background: rgba(0, 123, 255, 0.12);
  border-color: rgba(0, 123, 255, 0.35);
  transform: translateY(-1px);
}

.demo-account-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-account-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Header */
.app-header {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #007bff, #00d2ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.role-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.role-master {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-suporte {
  background: rgba(0, 123, 255, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.role-adm {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-final {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Demo Role Switcher Bar */
.demo-bar {
  background: linear-gradient(90deg, #111827, #1e293b);
  border-bottom: 1px solid rgba(0, 123, 255, 0.2);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-title {
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-demo-switch {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-demo-switch:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-demo-switch.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* Main Container */
.main-content {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-icon-blue { background: rgba(0, 123, 255, 0.15); color: #3b82f6; }
.stat-icon-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon-rose { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.stat-icon-purple { background: rgba(139, 92, 246, 0.15); color: #a855f7; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Action & Filter Toolbar */
.toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.input-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.input-search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.input-search {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 40px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.input-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.select-filter {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.select-filter:focus {
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0088ff, #0062cc);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-success {
  background: #10b981;
  color: #fff;
}
.btn-success:hover {
  background: #059669;
}

.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
  height: 7px;
}
.table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
.table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 255, 0.35);
  border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 123, 255, 0.6);
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tickets-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tickets-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.tickets-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.modal-body .tickets-table {
  width: 100%;
}

.modal-body .tickets-table th {
  padding: 10px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.modal-body .tickets-table td {
  padding: 10px 10px;
  font-size: 0.82rem;
}

.ticket-protocol {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.85rem;
}

.ticket-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.ticket-title:hover {
  color: var(--cyan);
}

.ticket-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-aberto { background: rgba(0, 123, 255, 0.15); color: #60a5fa; border: 1px solid rgba(0, 123, 255, 0.3); }
.badge-em-atendimento { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-aguardando { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-resolvido { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-fechado { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

.badge-critica { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); font-weight: 700; }
.badge-alta { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-media { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-baixa { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

.sla-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sla-ok { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.sla-breached { background: rgba(239, 68, 68, 0.15); color: #f87171; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Chat & Messages Timeline */
.chat-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 1.5rem 0;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: var(--radius);
  max-width: 90%;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble.author-requester {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.chat-bubble.author-tech {
  background: rgba(0, 123, 255, 0.12);
  border: 1px solid rgba(0, 123, 255, 0.3);
  align-self: flex-end;
}

/* Internal Note Bubble */
.chat-bubble.internal-note {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  align-self: stretch;
  max-width: 100%;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.chat-author {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.internal-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 1.75rem;
  color: #4b5563;
  cursor: pointer;
  margin: 10px 0;
}

.rating-stars i.active {
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
  .app-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .demo-bar {
    padding: 0.75rem 1rem;
  }
  .main-content {
    padding: 1rem;
  }
  .table-container {
    overflow-x: auto;
  }
}

/* ============================================================
   TEMA CLARO (LIGHT THEME)
   ============================================================ */
body.light-theme {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --border: #e2e8f0;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-card: 0 4px 15px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.15);
}

body.light-theme .login-overlay {
  background: radial-gradient(circle at top center, #e2e8f0 0%, #cbd5e1 85%);
}

body.light-theme .login-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(37, 99, 235, 0.08);
}

body.light-theme .login-title {
  color: #0f172a;
}

body.light-theme .login-subtitle {
  color: #2563eb;
}

body.light-theme .btn-theme-toggle {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.light-theme .brand-title {
  background: linear-gradient(90deg, #0f172a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .stat-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-card);
}

body.light-theme .stat-value {
  color: #0f172a;
}

body.light-theme .toolbar-card,
body.light-theme .table-container {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-card);
}

body.light-theme .toolbar-card h2 {
  color: #0f172a !important;
}

body.light-theme .form-control,
body.light-theme .input-search,
body.light-theme .select-filter {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme .form-control::placeholder,
body.light-theme .input-search::placeholder {
  color: #94a3b8;
}

body.light-theme .form-control:focus,
body.light-theme .input-search:focus,
body.light-theme .select-filter:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

body.light-theme .btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body.light-theme .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

body.light-theme .tickets-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom-color: #e2e8f0;
}

body.light-theme .tickets-table td {
  border-bottom-color: #f1f5f9;
}

body.light-theme .tickets-table tbody tr:hover {
  background-color: #f8fafc;
}

body.light-theme .ticket-title {
  color: #0f172a;
}

body.light-theme .ticket-snippet {
  color: #64748b;
}

body.light-theme .user-profile-badge {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

body.light-theme #userName {
  color: #0f172a;
}

body.light-theme .modal-content {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

body.light-theme .modal-header,
body.light-theme .modal-footer {
  border-color: #e2e8f0;
}

body.light-theme .modal-title,
body.light-theme .modal-title span {
  color: #0f172a !important;
}

body.light-theme .chat-timeline {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .chat-bubble {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
}

body.light-theme .chat-author {
  color: #0f172a;
}

body.light-theme .chat-bubble.author-tech {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body.light-theme .chat-bubble.internal-note {
  background: #fffbeb;
  border-color: #fde68a;
}

body.light-theme #attachmentsSection {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme #requesterActionToolbar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme #requesterActionText {
  color: #0f172a !important;
}

body.light-theme #techActionToolbar {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

