/*
Theme Name: iMore Multitool Theme
Theme URI: https://imore.com.pk
Author: Antigravity AI
Description: A premium, dark-neon automotive intelligence platform for imore.com.pk featuring 20+ advanced client-side calculators, finders, checklists, logs, and AI recommendations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imore-multitool-theme
*/

/* 
 * 🚗 iMore Auto AI - Core CSS Stylesheet
 * Premium futuristic dark-neon cyberpunk theme with glowing elements and glassmorphic layouts.
 * Supports light mode fallback via .light-theme class.
 */

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

:root {
  /* Dark Cyberpunk Theme (Default) */
  --bg-main: #070a13;
  --bg-sidebar: #04070f;
  --bg-card: rgba(15, 23, 42, 0.5);
  --bg-card-hover: rgba(23, 37, 84, 0.7);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-light: rgba(255, 255, 255, 0.08);
  
  --neon-cyan: #00f0ff;
  --neon-purple: #bd00ff;
  --neon-pink: #ff007f;
  --neon-green: #39ff14;
  --neon-red: #ff3131;
  --neon-yellow: #ffea00;
  
  --text-main: #c4d1eb;
  --text-muted: #62769f;
  --text-white: #ffffff;
  
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-digital: 'Orbitron', monospace;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.35);
  --shadow-neon-purple: 0 0 15px rgba(189, 0, 255, 0.35);
  --shadow-neon-pink: 0 0 15px rgba(255, 0, 127, 0.35);
  --shadow-neon-green: 0 0 15px rgba(57, 255, 20, 0.35);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Override */
body.light-theme {
  --bg-main: #f0f4f8;
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-glow: rgba(0, 136, 204, 0.2);
  --border-light: rgba(0, 0, 0, 0.09);
  
  --neon-cyan: #0088cc;
  --neon-purple: #8e24aa;
  --neon-pink: #d81b60;
  --neon-green: #2e7d32;
  --neon-red: #d32f2f;
  --neon-yellow: #f57f17;
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-white: #0f172a;
  
  --shadow-neon: 0 4px 15px rgba(0, 136, 204, 0.15);
  --shadow-neon-purple: 0 4px 15px rgba(142, 36, 170, 0.15);
  --shadow-neon-pink: 0 4px 15px rgba(216, 27, 96, 0.15);
  --shadow-neon-green: 0 4px 15px rgba(46, 125, 50, 0.15);
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

/* Cyber Scanline Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  z-index: 99999;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.05;
}

body.light-theme::after {
  opacity: 0.01;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Layout Grid Container */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 70px 1fr;
  grid-template-areas: 
    "header header"
    "sidebar content";
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Header Styling */
header.app-header {
  grid-area: header;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  position: relative;
}

header.app-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  opacity: 0.8;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-family: var(--font-digital);
  box-shadow: var(--shadow-neon);
}

.logo-text {
  font-family: var(--font-digital);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-white);
  line-height: 1;
}

.logo-text span {
  color: var(--neon-cyan);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  max-width: 900px;
  justify-content: flex-end;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 13px;
  transition: var(--transition);
}

body.light-theme .search-input {
  background: rgba(0, 0, 0, 0.03);
}

.search-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.search-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.clock-display {
  font-family: var(--font-digital);
  color: var(--neon-cyan);
  font-size: 15px;
  background: rgba(0, 240, 255, 0.05);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  letter-spacing: 1px;
}

/* Sidebar Navigation */
aside.app-sidebar {
  grid-area: sidebar;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 15px;
  z-index: 90;
}

.nav-category {
  margin-bottom: 22px;
}

.nav-category-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 10px;
  font-weight: 700;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

body.light-theme .nav-link:hover {
  background: rgba(0, 0, 0, 0.03);
}

.nav-item.active .nav-link {
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  font-weight: 600;
  border-left: 3px solid var(--neon-cyan);
}

.nav-item.active.cyan-cat .nav-link {
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  border-left-color: var(--neon-cyan);
}

.nav-item.active.purple-cat .nav-link {
  background: rgba(189, 0, 255, 0.08);
  color: var(--neon-purple);
  border-left-color: var(--neon-purple);
}

.nav-item.active.pink-cat .nav-link {
  background: rgba(255, 0, 127, 0.08);
  color: var(--neon-pink);
  border-left-color: var(--neon-pink);
}

.nav-item.active.green-cat .nav-link {
  background: rgba(57, 255, 20, 0.08);
  color: var(--neon-green);
  border-left-color: var(--neon-green);
}

/* Main Content Area */
main.app-content {
  grid-area: content;
  overflow-y: auto;
  padding: 25px;
  background-color: var(--bg-main);
  position: relative;
}

/* Live News Ticker */
.news-ticker-container {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 8px 15px;
  margin-bottom: 25px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticker-label {
  background: var(--neon-cyan);
  color: #040814;
  font-family: var(--font-digital);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: var(--shadow-neon);
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-animation 45s linear infinite;
  gap: 50px;
}

.ticker-item {
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-item span {
  font-weight: 700;
  color: var(--text-white);
}

.ticker-item.up {
  color: var(--neon-green);
}

.ticker-item.down {
  color: var(--neon-red);
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Tab Panels */
.tool-panel {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Cards Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.08);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.glass-card:hover::before {
  transform: translateX(100%);
}

.glass-card.purple:hover { border-color: rgba(189, 0, 255, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(189, 0, 255, 0.08); }
.glass-card.purple::before { background: linear-gradient(90deg, transparent, var(--neon-purple), transparent); }

.glass-card.pink:hover { border-color: rgba(255, 0, 127, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 127, 0.08); }
.glass-card.pink::before { background: linear-gradient(90deg, transparent, var(--neon-pink), transparent); }

.glass-card.green:hover { border-color: rgba(57, 255, 20, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(57, 255, 20, 0.08); }
.glass-card.green::before { background: linear-gradient(90deg, transparent, var(--neon-green), transparent); }

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  color: var(--neon-cyan);
}
.glass-card.purple .card-title svg { color: var(--neon-purple); }
.glass-card.pink .card-title svg { color: var(--neon-pink); }
.glass-card.green .card-title svg { color: var(--neon-green); }

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Forms & UI Controls */
.form-group {
  margin-bottom: 15px;
  position: relative;
}

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 13.5px;
  font-family: var(--font-body);
  transition: var(--transition);
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background: rgba(0, 0, 0, 0.02);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.purple input:focus, .purple select:focus { border-color: var(--neon-purple); box-shadow: 0 0 10px rgba(189, 0, 255, 0.15); }
.pink input:focus, .pink select:focus { border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 0, 127, 0.15); }
.green input:focus, .green select:focus { border-color: var(--neon-green); box-shadow: 0 0 10px rgba(57, 255, 20, 0.15); }

/* Custom Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  margin: 12px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: var(--transition);
}

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

.purple input[type="range"]::-webkit-slider-thumb { background: var(--neon-purple); box-shadow: var(--shadow-neon-purple); }
.pink input[type="range"]::-webkit-slider-thumb { background: var(--neon-pink); box-shadow: var(--shadow-neon-pink); }
.green input[type="range"]::-webkit-slider-thumb { background: var(--neon-green); box-shadow: var(--shadow-neon-green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
}

.btn-primary { background: linear-gradient(135deg, var(--neon-cyan), #00b0ff); color: #040814; box-shadow: var(--shadow-neon); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-purple { background: linear-gradient(135deg, var(--neon-purple), #9d00ff); color: #ffffff; box-shadow: var(--shadow-neon-purple); }
.btn-purple:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-pink { background: linear-gradient(135deg, var(--neon-pink), #ff0055); color: #ffffff; box-shadow: var(--shadow-neon-pink); }
.btn-pink:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-green { background: linear-gradient(135deg, var(--neon-green), #00c853); color: #040814; box-shadow: var(--shadow-neon-green); }
.btn-green:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Results Display Box */
.results-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-top: 15px;
  display: none;
}

.results-box.active {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.result-value {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-white);
}

.result-value.highlight-cyan { color: var(--neon-cyan); font-family: var(--font-digital); font-size: 17px; }
.result-value.highlight-purple { color: var(--neon-purple); font-family: var(--font-digital); font-size: 17px; }
.result-value.highlight-pink { color: var(--neon-pink); font-family: var(--font-digital); font-size: 17px; }
.result-value.highlight-green { color: var(--neon-green); font-family: var(--font-digital); font-size: 17px; }

/* Dashboard HUD speedometers */
.dashboard-hud-container {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  align-items: center;
  position: relative;
}

.dashboard-hud-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.03), transparent 40%), radial-gradient(circle at 90% 80%, rgba(189, 0, 255, 0.03), transparent 40%);
  pointer-events: none;
}

.hud-gauges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
}

.hud-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hud-svg-container {
  width: 140px;
  height: 140px;
  position: relative;
}

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

.hud-center-text .val {
  font-family: var(--font-digital);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  display: block;
}

.hud-center-text .lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.hud-gauge-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Speedometer Dial & Gauges */
.hud-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
  stroke-linecap: round;
}

.hud-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-fill.cyan { stroke: var(--neon-cyan); filter: drop-shadow(0 0 4px var(--neon-cyan)); }
.hud-fill.purple { stroke: var(--neon-purple); filter: drop-shadow(0 0 4px var(--neon-purple)); }
.hud-fill.pink { stroke: var(--neon-pink); filter: drop-shadow(0 0 4px var(--neon-pink)); }

.hud-needle {
  transform-origin: 70px 70px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotating 3D Car Dashboard Hero */
.hud-car-visual {
  border-left: 1px solid var(--border-light);
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
}

.car-scanning-box {
  width: 200px;
  height: 90px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-svg-wireframe {
  width: 100%;
  height: 100%;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 5px var(--neon-cyan));
  animation: car-float 4s ease-in-out infinite;
}

.scanning-line {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
  animation: scan-vertical 2.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes car-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes scan-vertical {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.car-model-display {
  margin-top: 15px;
  text-align: center;
}

.car-model-display h3 {
  font-family: var(--font-digital);
  color: var(--text-white);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.car-model-display p {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* KPI Card Listings */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.db-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.db-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
}

.db-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 20px;
}

.db-kpi-info h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.db-kpi-info .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 2px;
}

/* Daily Tips & Blogs */
.tips-slider-card {
  background: rgba(189, 0, 255, 0.02);
  border: 1px solid rgba(189, 0, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
}

.tips-slider-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.tips-slider-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-purple);
  letter-spacing: 2px;
}

.tips-slider-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.5;
}

/* Checklist items design */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 5px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--neon-cyan);
}

.checklist-item.checked {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.02);
}

.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--neon-green);
  cursor: pointer;
}

.checklist-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

.checklist-item.checked .checklist-info h4 {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Compare Cars Column Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}

.compare-table th, .compare-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

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

/* Chatbot Overlay */
.ai-chatbot-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

.ai-chat-bubble-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: var(--shadow-neon-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat-bubble-btn:hover {
  transform: scale(1.08) rotate(5deg);
}

.ai-chat-panel {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 340px;
  height: 440px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(189, 0, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-neon-purple);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideChat {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-panel.active {
  display: flex;
}

.ai-chat-header {
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-header-info h4 {
  font-size: 13.5px;
  color: var(--text-white);
  font-weight: 700;
}

.ai-chat-header-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border-light);
}

.chat-msg.user {
  background: var(--neon-purple);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-chat-input-wrapper {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12.5px;
}

.ai-chat-send-btn {
  background: var(--neon-cyan);
  border: none;
  color: #040814;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  transition: var(--transition);
}

.ai-chat-send-btn:hover {
  opacity: 0.9;
}

/* Footer Section */
footer.app-footer {
  grid-area: footer;
  background-color: var(--bg-sidebar);
  border-top: 1px solid var(--border-light);
  padding: 15px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-credit {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.footer-credit span {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
  font-family: var(--font-digital);
  font-weight: 700;
}

/* Expense Logs list layout */
.expense-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 15px;
}

.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 12.5px;
}

.expense-item .detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.expense-item .detail .title {
  font-weight: 600;
  color: var(--text-white);
}

.expense-item .detail .meta {
  font-size: 10px;
  color: var(--text-muted);
}

.expense-item .amount {
  font-weight: 700;
  color: var(--neon-pink);
  font-family: var(--font-digital);
}

/* WhatsApp Float Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
}

/* Adaptive media query responsiveness */
@media (max-width: 992px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: 70px 60px 1fr;
    grid-template-areas: 
      "header"
      "sidebar"
      "content";
  }
  
  aside.app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 15px;
    height: 60px;
    gap: 15px;
    align-items: center;
  }
  
  .nav-category {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .nav-category-title {
    display: none;
  }
  
  .nav-list {
    display: flex;
    gap: 8px;
  }
  
  .nav-link {
    padding: 6px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  
  .dashboard-hud-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hud-car-visual {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 25px;
  }
}

@media (max-width: 576px) {
  header.app-header {
    padding: 0 15px;
  }
  .logo-text {
    font-size: 18px;
  }
  .search-wrapper {
    display: none;
  }
  main.app-content {
    padding: 15px;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }
}
