/* TicketPulse - Electric Lime Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #84CC16;
  --secondary: #A3E635;
  --accent: #0D9488;
  --background: #0A0A0A;
  --surface: #171717;
  --text: #FAFAFA;
  --text-secondary: #A3A3A3;
  --border-radius: 8px;
  --sidebar-width: 240px;
  --header-height: 72px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background-color: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--surface);
  border-right: 1px solid #262626;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid #262626;
}

.sidebar-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-logo .accent {
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 15px;
}

.nav-item:hover {
  background-color: rgba(132, 204, 22, 0.1);
  color: var(--text);
}

.nav-item.active {
  background-color: rgba(132, 204, 22, 0.15);
  border-left-color: var(--primary);
  color: var(--primary);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Main Layout */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Header */
.header {
  height: var(--header-height);
  background-color: var(--surface);
  border-bottom: 1px solid #262626;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.header-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-bar {
  position: relative;
  width: 300px;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background-color: var(--background);
  border: 1px solid #262626;
  border-radius: var(--border-radius);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1), 0 0 20px rgba(132, 204, 22, 0.3);
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #262626;
}

.notification-bell:hover {
  background-color: rgba(132, 204, 22, 0.1);
  border-color: var(--primary);
}

.notification-bell svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: var(--background);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: all 0.2s ease;
}

.user-avatar:hover {
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.5);
}

/* Content Area */
.content {
  padding: 32px;
  max-width: 1600px;
}

/* Cards */
.card {
  background-color: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid #262626;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.15);
}

.card.neon-glow {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.2);
}

.card-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background-color: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid #262626;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.metric-card:hover {
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.3);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-value.primary {
  color: var(--primary);
}

.metric-value.accent {
  color: var(--accent);
}

.metric-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-up {
  color: var(--secondary);
}

.trend-down {
  color: var(--secondary);
}

/* Grid Layouts */
.two-col-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 24px;
  margin-bottom: 32px;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--background);
}

.btn-primary:hover {
  background-color: var(--secondary);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.5);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: #0F766E;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.5);
}

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

.btn-outline:hover {
  background-color: rgba(132, 204, 22, 0.1);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
}

.badge.success {
  background-color: rgba(163, 230, 53, 0.2);
  color: var(--secondary);
}

.badge.warning {
  background-color: rgba(132, 204, 22, 0.2);
  color: var(--primary);
}

.badge.info {
  background-color: rgba(13, 148, 136, 0.2);
  color: var(--accent);
}

.badge.critical {
  background-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* Table */
.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: var(--background);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #262626;
  cursor: pointer;
}

th:hover {
  color: var(--primary);
}

td {
  padding: 16px;
  border-bottom: 1px solid #262626;
  font-size: 14px;
  color: var(--text);
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(132, 204, 22, 0.05);
  border-left: 3px solid var(--primary);
}

/* Circular Progress */
.circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress circle {
  fill: none;
  stroke-width: 8;
}

.circular-progress .bg-circle {
  stroke: var(--background);
}

.circular-progress .progress-circle {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.circular-progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

/* Donut Chart */
.donut-chart {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.donut-chart svg {
  transform: rotate(-90deg);
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.donut-center-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 2px solid #262626;
  margin-bottom: 24px;
}

.tab {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--surface);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -28px;
  top: 20px;
  width: 2px;
  height: calc(100% - 12px);
  background-color: #262626;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-content {
  background-color: var(--background);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid #262626;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-author {
  font-weight: 600;
  color: var(--text);
}

.timeline-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Form Elements */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background);
  border: 1px solid #262626;
  border-radius: var(--border-radius);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

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

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #262626;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
  box-shadow: 0 0 15px rgba(132, 204, 22, 0.5);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: var(--background);
}

/* Slider */
.slider-container {
  margin: 20px 0;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #262626;
  outline: none;
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.5);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.5);
}

/* Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  min-width: 140px;
  font-size: 13px;
  color: var(--text);
}

.bar-track {
  flex: 1;
  height: 24px;
  background-color: var(--background);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--background);
}

.bar-fill.primary {
  background-color: var(--primary);
}

.bar-fill.secondary {
  background-color: var(--secondary);
}

.bar-fill.accent {
  background-color: var(--accent);
}

.bar-value {
  min-width: 60px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.team-card {
  background-color: var(--surface);
  border: 1px solid #262626;
  border-radius: var(--border-radius);
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.team-card:hover {
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.2);
  transform: translateY(-2px);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.status-indicator.online {
  background-color: var(--secondary);
}

.status-indicator.offline {
  background-color: var(--text-secondary);
}

.team-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

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

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.expertise-tag {
  padding: 4px 10px;
  background-color: rgba(13, 148, 136, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
}

.workload-bar {
  width: 100%;
  height: 6px;
  background-color: var(--background);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.workload-fill {
  height: 100%;
  transition: width 0.5s ease;
}

.workload-fill.low {
  background-color: var(--secondary);
}

.workload-fill.medium {
  background-color: var(--primary);
}

.workload-fill.high {
  background-color: #EF4444;
}

.team-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.team-metric {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.team-metric span:last-child {
  color: var(--text);
  font-weight: 600;
}

/* View Toggles */
.view-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  display: flex;
  background-color: var(--surface);
  border-radius: var(--border-radius);
  padding: 4px;
  border: 1px solid #262626;
}

.view-toggle button {
  padding: 8px 16px;
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.view-toggle button.active {
  background-color: var(--primary);
  color: var(--background);
}

/* Filter Dropdown */
.filter-dropdown {
  position: relative;
}

.filter-button {
  padding: 10px 16px;
  background-color: var(--surface);
  border: 1px solid #262626;
  border-radius: var(--border-radius);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-button:hover {
  border-color: var(--primary);
  background-color: rgba(132, 204, 22, 0.05);
}

/* Settings Sidebar */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

.settings-nav {
  background-color: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid #262626;
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.settings-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.settings-nav-item:hover {
  background-color: rgba(132, 204, 22, 0.1);
  color: var(--text);
}

.settings-nav-item.active {
  background-color: rgba(132, 204, 22, 0.15);
  border-left: 3px solid var(--primary);
  color: var(--primary);
  padding-left: 9px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Danger Zone */
.danger-zone {
  border: 2px solid #DC2626;
  border-radius: var(--border-radius);
  padding: 24px;
  background-color: rgba(220, 38, 38, 0.05);
}

.danger-zone h3 {
  color: #DC2626;
  margin-bottom: 16px;
  font-size: 18px;
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.danger-action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid #DC2626;
}

.danger-action-info h4 {
  color: var(--text);
  margin-bottom: 4px;
}

.danger-action-info p {
  color: var(--text-secondary);
  font-size: 13px;
}

.btn-danger {
  background-color: transparent;
  border: 1px solid #DC2626;
  color: #DC2626;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

/* Utility Classes */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { gap: 16px; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }

/* Countdown Timer */
.countdown-timer {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0;
}

/* Pulsing Icon */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Progress Ring */
.progress-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Responsive */
@media (max-width: 1200px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  
  .three-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .main-wrapper {
    margin-left: 60px;
  }
  
  .nav-item span {
    display: none;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-layout {
    grid-template-columns: 1fr;
  }
}
