/* 
 * DRRS Platform - Premium Design Theme
 * Colors, Typography, Glassmorphism, Layout, and Micro-Animations
 */

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

:root {
  /* Color Palette (Deep Space / Neon Accent) */
  --bg-primary: #070b19;
  --bg-secondary: #0f172e;
  --bg-tertiary: #172242;
  --bg-glass: rgba(15, 23, 46, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 184, 212, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  /* Accent Colors */
  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-purple: #d500f9;
  
  /* Risk Severity Colors (Curated HSL) */
  --risk-high: #ff4757;      /* Vivid Coral Red */
  --risk-medium: #ffa502;    /* Amber Orange */
  --risk-low: #2ed573;       /* Emerald Green */
  
  /* Status Colors */
  --status-connected: #2ed573;
  --status-disconnected: #ff4757;
  --status-pending: #ffa502;
  
  /* Box Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 15px rgba(0, 229, 255, 0.2);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
  
  /* Layout */
  --sidebar-width: 260px;
  --header-height: 70px;
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  padding: 12px 16px;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.menu-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.menu-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
  color: var(--accent-cyan);
  background-color: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.05);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-glass);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
}

/* Main Content Area */
.main-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-primary);
}

header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border-glass);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.header-title h2 {
  font-size: 20px;
  font-weight: 700;
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.status-dot.connected { color: var(--status-connected); background-color: var(--status-connected); }
.status-dot.disconnected { color: var(--status-disconnected); background-color: var(--status-disconnected); }

/* Content Panels */
.content-panel {
  display: none;
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

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

/* KPI Summary Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.kpi-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-blue);
}

.kpi-card.cyan::before { background: var(--accent-cyan); }
.kpi-card.purple::before { background: var(--accent-purple); }
.kpi-card.red::before { background: var(--risk-high); }
.kpi-card.green::before { background: var(--risk-low); }

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.15);
}

.kpi-title {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.5px;
}

.kpi-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Main Dashboard Split View */
.dashboard-layout {
  display: flex;
  gap: 20px;
  height: 600px;
  flex-grow: 1;
}

.map-container-wrapper {
  flex: 3;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-header h3 {
  font-size: 16px;
  font-weight: 600;
}

#map {
  flex-grow: 1;
  background-color: #0b101c;
}

/* Segment Detail Panel */
.detail-sidebar {
  flex: 1.5;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 8px;
  margin-bottom: 12px;
}

.score-badge-large {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--border-radius);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 100%), var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  text-align: center;
}

.score-badge-large .score-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.score-badge-large .score-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 1px;
  font-weight: 600;
}

.risk-level-badge {
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-level-badge.high { background-color: rgba(255, 71, 87, 0.2); color: var(--risk-high); border: 1px solid rgba(255, 71, 87, 0.4); }
.risk-level-badge.medium { background-color: rgba(255, 165, 2, 0.2); color: var(--risk-medium); border: 1px solid rgba(255, 165, 2, 0.4); }
.risk-level-badge.low { background-color: rgba(46, 213, 115, 0.2); color: var(--risk-low); border: 1px solid rgba(46, 213, 115, 0.4); }

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px dashed var(--border-glass);
  padding-bottom: 8px;
}

.detail-row span:first-child {
  color: var(--text-secondary);
}

.detail-row span:last-child {
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Sliders Control Panel */
.simulator-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.slider-label span:last-child {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.select-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--border-radius);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.select-input:focus {
  border-color: var(--accent-cyan);
}

/* Math Walkthrough Styles */
.walkthrough-equation-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.eq-main {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 16px 0;
  color: var(--text-primary);
}

.eq-main span {
  position: relative;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.eq-B { border-bottom: 3px solid var(--accent-cyan); }
.eq-E { border-bottom: 3px solid var(--accent-blue); }
.eq-C { border-bottom: 3px solid var(--accent-purple); }
.eq-T { border-bottom: 3px solid var(--risk-high); }

.walkthrough-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.math-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: border-color 0.3s;
}

.math-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.math-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.math-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-glass);
}

.math-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.math-desc {
  flex: 2;
  min-width: 250px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.math-calc-run {
  flex: 1.2;
  min-width: 200px;
  background-color: var(--bg-tertiary);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 12px;
}

.math-calc-line {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.math-calc-line:last-child {
  margin-bottom: 0;
  border-top: 1px dashed var(--text-tertiary);
  padding-top: 8px;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* API Connection Center Styles */
.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.api-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.3s;
}

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

.api-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.api-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.api-body {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-url {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-primary);
  padding: 6px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

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

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .3s;
  border-radius: 22px;
  border: 1px solid var(--border-glass);
}

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

input:checked + .slider-toggle {
  background-color: rgba(46, 213, 115, 0.2);
  border-color: var(--status-connected);
}

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

.console-container {
  background-color: #050813;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 16px;
  height: 350px;
  display: flex;
  flex-direction: column;
}

.console-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.console-logs {
  flex-grow: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.console-row {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.01);
  border-left: 3px solid var(--accent-blue);
}

.console-row.error {
  border-left-color: var(--status-disconnected);
}

.console-row-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--text-tertiary);
}

.console-body-val {
  color: #00e5ff;
  white-space: pre-wrap;
  margin-top: 4px;
  background: rgba(0,0,0,0.3);
  padding: 6px;
  border-radius: 4px;
  max-height: 120px;
  overflow-y: auto;
}

/* Data Manager Panel Styles */
.manager-layout {
  display: flex;
  gap: 20px;
}

.manager-form-panel {
  flex: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manager-list-panel {
  flex: 2;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--border-radius);
  font-size: 13px;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-cyan);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Tables */
.data-table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-glass);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: var(--bg-tertiary);
  padding: 12px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  background-color: rgba(255,255,255,0.01);
}

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

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

/* ESG Report Styles */
.esg-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.esg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.esg-item {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.esg-framework {
  font-family: var(--font-mono);
  font-size: 12px;
  background-color: rgba(213, 0, 249, 0.15);
  color: #ff80ab;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(213, 0, 249, 0.3);
}

.esg-metric-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--border-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--bg-glass);
  border-color: var(--text-tertiary);
}

/* Custom Leaflet Map Tooltips and Styles */
.leaflet-popup-content-wrapper {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius) !important;
}

.leaflet-popup-tip {
  background-color: var(--bg-secondary) !important;
}

.map-legend {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 10px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Startup Initialization Modal Overlay & Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 8, 19, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(0, 229, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 4px solid var(--accent-cyan);
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hide .modal-content {
  transform: scale(0.9);
}

.preset-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.preset-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-card i {
  font-size: 24px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.preset-card strong {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.2;
}

.preset-card span {
  font-size: 10px;
  color: var(--text-tertiary);
}

.preset-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.01);
}

.preset-card.active {
  border-color: var(--accent-cyan);
  background-color: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), inset 0 0 10px rgba(0, 229, 255, 0.05);
}

.preset-card.active i {
  color: var(--accent-cyan);
}

