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

:root {
  /* Premium Dark Theme Palette */
  --bg-primary: #0a0f16;
  --bg-secondary: #111823;
  --bg-tertiary: #192332;
  
  --accent-primary: #00f0ff; /* Electric Cyan */
  --accent-secondary: #7000ff; /* Deep Purple */
  --accent-hover: #33f3ff;
  
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Glassmorphism */
  --glass-bg: rgba(17, 24, 35, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(112, 0, 255, 0.05), transparent 25%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

header {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

nav.nav-links a:hover, nav.nav-links a.active {
  color: var(--text-primary);
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

/* --- UI Components --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #00a2ff);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
  color: #000;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: #233145;
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

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

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

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

.fw-table th, .fw-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.fw-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
}

.fw-table tbody tr {
  transition: var(--transition);
}

.fw-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.fw-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-progress {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-resolved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Ticket Chat / Timeline */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  animation: fadeInUp 0.4s ease-out forwards;
}

.chat-bubble.client {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.02));
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-bottom-right-radius: 4px;
}

.chat-bubble.support {
  align-self: flex-start;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.chat-meta strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.chat-bubble.support .chat-meta strong {
  color: var(--accent-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* File Drag & Drop */
.file-drop-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.05);
}

.file-drop-zone i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.file-drop-zone:hover i, .file-drop-zone.dragover i {
  color: var(--accent-primary);
}
