/* Lumaris Günlük - Futuristic Cyber-Police Style System */

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

:root {
  --bg-cyber: #050a15;
  --panel-glass: rgba(10, 22, 47, 0.75);
  --border-neon-blue: rgba(0, 240, 255, 0.3);
  --border-neon-red: rgba(255, 0, 92, 0.3);
  --neon-blue: #00f0ff;
  --neon-red: #ff005c;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
  --text-cyber: #e2e8f0;
  --text-dim: #64748b;
  --police-dark: #0a192f;
  --glass-reflection: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  --glow-blue: 0 0 15px rgba(0, 240, 255, 0.5);
  --glow-red: 0 0 15px rgba(255, 0, 92, 0.5);
  --font-cyber: 'Rajdhani', 'Inter', sans-serif;
  --font-tech: 'Orbitron', monospace;
}

/* Base resets & layouts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-cyber);
  background-image: 
    radial-gradient(at 0% 0%, rgba(10, 25, 47, 0.9) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(0, 240, 255, 0.08) 0, transparent 50%),
    radial-gradient(at 100% 80%, rgba(255, 0, 92, 0.06) 0, transparent 50%),
    radial-gradient(at 0% 100%, rgba(57, 255, 20, 0.04) 0, transparent 40%);
  background-attachment: fixed;
  color: var(--text-cyber);
  font-family: var(--font-cyber);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 10, 21, 0.5);
}
::-webkit-scrollbar-thumb {
  background: var(--border-neon-blue);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cyber);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.font-tech {
  font-family: var(--font-tech);
}

/* HUD Panels & Cards */
.cyber-panel {
  background: var(--panel-glass);
  border: 1px solid var(--border-neon-blue);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cyber-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: scanning-line 3s linear infinite;
  opacity: 0.5;
}

.cyber-panel.panel-red {
  border-color: var(--border-neon-red);
}

.cyber-panel.panel-red::before {
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

.cyber-panel:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.5);
}

.cyber-panel.panel-red:hover {
  box-shadow: 0 12px 40px 0 rgba(255, 0, 92, 0.15);
  border-color: rgba(255, 0, 92, 0.5);
}

/* Futuristic HUD Corners */
.hud-corner-tl, .hud-corner-tr, .hud-corner-bl, .hud-corner-br {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--neon-blue);
  border-style: solid;
  pointer-events: none;
}
.panel-red .hud-corner-tl, .panel-red .hud-corner-tr, .panel-red .hud-corner-bl, .panel-red .hud-corner-br {
  border-color: var(--neon-red);
}
.hud-corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hud-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hud-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Futuristic Liquid Water Bottle SVG Styling */
.water-bottle-container {
  position: relative;
  width: 140px;
  height: 260px;
  margin: 0 auto;
  perspective: 1000px;
}

.water-bottle-glass {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--neon-blue);
  border-radius: 20px 20px 24px 24px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2), 0 0 15px rgba(0, 240, 255, 0.1);
  background: rgba(10, 25, 47, 0.3);
  z-index: 2;
}

.bottle-cap {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 14px;
  background: linear-gradient(90deg, #ff005c, #00f0ff);
  border: 1px solid var(--neon-blue);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  z-index: 3;
}

.water-fluid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Dynamic fill */
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.8) 0%, rgba(10, 50, 110, 0.9) 100%);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Water wave SVG animations */
.wave {
  position: absolute;
  top: -15px;
  left: 0;
  width: 200%;
  height: 20px;
  background: transparent;
}
.wave-svg {
  width: 100%;
  height: 100%;
  fill: rgba(0, 240, 255, 0.8);
}
.wave-back {
  animation: wave-move 4s linear infinite;
  transform: translate3d(-50%, 0, 0);
  opacity: 0.5;
  fill: rgba(0, 172, 238, 0.4);
}
.wave-front {
  animation: wave-move 2.5s linear infinite;
}

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

/* Dynamic glow markers inside the bottle */
.bottle-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 10px;
  pointer-events: none;
  z-index: 3;
}

.grid-line {
  border-bottom: 1px dashed rgba(0, 240, 255, 0.25);
  width: 25px;
  position: relative;
}

.grid-line::after {
  content: attr(data-ml);
  position: absolute;
  left: 30px;
  top: -7px;
  font-size: 10px;
  font-family: var(--font-tech);
  color: var(--neon-blue);
  opacity: 0.7;
}

.grid-line.line-right {
  align-self: flex-end;
}
.grid-line.line-right::after {
  left: auto;
  right: 30px;
}

/* Tactile Bottle Buttons */
.bottle-select-btn {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(5, 12, 27, 0.9) 100%);
  border: 1px solid var(--border-neon-blue);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.bottle-select-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-red)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bottle-select-btn:hover {
  transform: translateY(-4px);
  border-color: var(--neon-blue);
  box-shadow: var(--glow-blue);
}

.bottle-select-btn:hover::after {
  opacity: 0.5;
}

.bottle-select-btn:active {
  transform: scale(0.95);
}

.bottle-select-btn svg {
  width: 24px;
  height: 48px;
  fill: none;
  stroke: var(--neon-blue);
  stroke-width: 1.5;
  transition: all 0.2s ease;
}

.bottle-select-btn:hover svg {
  filter: drop-shadow(0 0 5px var(--neon-blue));
  stroke: #ffffff;
}

.bottle-select-btn.active {
  border-color: var(--neon-blue);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2), var(--glow-blue);
  background: rgba(0, 240, 255, 0.1);
}

/* Futuristic Plus/Minus Controllers */
.tactical-controller {
  display: flex;
  align-items: center;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid var(--border-neon-blue);
  border-radius: 50px;
  padding: 4px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.tactical-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, rgba(20, 40, 80, 0.8) 0%, rgba(10, 20, 45, 0.9) 100%);
  border: 1px solid var(--border-neon-blue);
  color: var(--neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.2s ease;
}

.tactical-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-cyber);
  box-shadow: var(--glow-blue);
  transform: scale(1.05);
}

.tactical-btn:active {
  transform: scale(0.9);
}

.tactical-btn.btn-minus {
  border-color: var(--border-neon-red);
  color: var(--neon-red);
}

.tactical-btn.btn-minus:hover {
  background: var(--neon-red);
  color: #fff;
  box-shadow: var(--glow-red);
}

.tactical-value {
  flex: 1;
  text-align: center;
  font-family: var(--font-tech);
  font-size: 18px;
  color: #ffffff;
}

/* Neon buttons & Cyber UI items */
.btn-cyber {
  position: relative;
  background: transparent;
  border: 1px solid var(--neon-blue);
  color: #ffffff;
  padding: 12px 24px;
  font-family: var(--font-cyber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.btn-cyber:hover::before {
  left: 100%;
}

.btn-cyber:hover {
  background: var(--neon-blue);
  color: var(--bg-cyber);
  box-shadow: var(--glow-blue);
  font-weight: 800;
}

.btn-cyber.btn-red {
  border-color: var(--neon-red);
  box-shadow: inset 0 0 10px rgba(255, 0, 92, 0.2);
}

.btn-cyber.btn-red:hover {
  background: var(--neon-red);
  color: #ffffff;
  box-shadow: var(--glow-red);
}

/* Interactive Navigation Tabs */
.cyber-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 12, 28, 0.85);
  border-top: 1px solid var(--border-neon-blue);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 calc(env(safe-area-inset-bottom) + 8px) 0;
  z-index: 100;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
}

.cyber-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-cyber);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 20%;
  border: none;
  background: transparent;
}

.cyber-nav-item .material-symbols-outlined {
  font-size: 24px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-nav-item:hover {
  color: var(--neon-blue);
}

.cyber-nav-item.active {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.cyber-nav-item.active .material-symbols-outlined {
  transform: translateY(-4px) scale(1.1);
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--neon-blue);
  filter: drop-shadow(0 0 8px var(--neon-blue));
}

.cyber-nav-item.police-style.active {
  color: var(--neon-red);
  text-shadow: 0 0 10px rgba(255, 0, 92, 0.5);
}

.cyber-nav-item.police-style.active .material-symbols-outlined {
  color: var(--neon-red);
  filter: drop-shadow(0 0 8px var(--neon-red));
}

/* Beautiful Interactive Progress Rings (Charts) */
.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

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

.progress-ring-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
}

.progress-ring-circle {
  fill: none;
  stroke: var(--neon-blue);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
}

.progress-ring-val {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.progress-ring-unit {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Police Badge Widget Styling */
.police-shield-glitch {
  position: relative;
  width: 80px;
  height: 90px;
  margin: 0 auto;
  fill: none;
  stroke: var(--neon-blue);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulse Glow Rings for Alerts */
.pulse-ring-container {
  position: relative;
  display: inline-flex;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-red);
  border-radius: 50%;
  position: relative;
}

.pulse-ring {
  border: 3px solid var(--neon-red);
  border-radius: 30px;
  height: 18px;
  width: 18px;
  position: absolute;
  left: -5px;
  top: -5px;
  animation: pulsate 1.8s ease-out infinite;
  opacity: 0;
}

@keyframes pulsate {
  0% { transform: scale(0.1, 0.1); opacity: 0.0; }
  50% { opacity: 1.0; }
  100% { transform: scale(1.2, 1.2); opacity: 0.0; }
}

/* High-tech BMI index indicator scale */
.bmi-tactical-scale {
  position: relative;
  height: 12px;
  background: linear-gradient(90deg, #ffe600 0%, #39ff14 30%, #39ff14 60%, #ff005c 100%);
  border-radius: 6px;
  margin: 15px 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.bmi-pointer {
  position: absolute;
  top: -4px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 3.5px solid var(--police-dark);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cybernetic Inputs */
.cyber-input {
  width: 100%;
  background: rgba(5, 10, 21, 0.6);
  border: 1px solid var(--border-neon-blue);
  color: #ffffff;
  padding: 12px 16px;
  font-family: var(--font-cyber);
  font-size: 16px;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
}

.cyber-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25), inset 0 0 8px rgba(0, 240, 255, 0.1);
  background: rgba(10, 25, 47, 0.5);
}

.cyber-input.input-red:focus {
  border-color: var(--neon-red);
  box-shadow: 0 0 12px rgba(255, 0, 92, 0.25);
}

.cyber-label {
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: block;
}

.cyber-label-red {
  color: var(--neon-red);
}

/* Beautiful Interactive Simulated Notification System */
.cyber-alert-box {
  position: fixed;
  top: 80px;
  right: -320px; /* Out of view initially */
  width: 300px;
  background: rgba(10, 25, 47, 0.95);
  border-left: 4px solid var(--neon-red);
  border-top: 1px solid var(--border-neon-blue);
  border-bottom: 1px solid var(--border-neon-blue);
  border-right: 1px solid var(--border-neon-blue);
  border-radius: 0 8px 8px 0;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 0, 92, 0.1);
  z-index: 1000;
  transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
}

.cyber-alert-box.active {
  right: 10px;
}

.cyber-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

/* Glitch Scanning Line Effect */
@keyframes scanning-line {
  0% { transform: translateY(0); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

/* Motivational Screen Glitch */
.screen-glitch {
  position: relative;
}

.screen-glitch::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

/* Beautiful dynamic charts styling wrapper */
.chart-container-hud {
  position: relative;
  width: 100%;
  height: 200px;
}

/* General Layouts & Mobile Optimizations */
.main-wrapper {
  padding: 80px 16px calc(env(safe-area-inset-bottom) + 90px) 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Header dynamic badge styling */
.cyber-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(6, 12, 28, 0.8);
  border-bottom: 1px solid var(--border-neon-blue);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 99;
}

.cyber-profile-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-blue);
  box-shadow: var(--glow-blue);
  object-fit: cover;
  transition: all 0.3s ease;
}

.cyber-profile-image:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--neon-red);
  box-shadow: var(--glow-red);
}

.cyber-view {
  display: none;
  animation: cyber-fade-in 0.4s ease-out forwards;
}

.cyber-view.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* Custom interactive checklist for KPSS */
.cyber-checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.cyber-checkbox-container:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.15);
}

.cyber-checkbox {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-neon-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 21, 0.7);
  transition: all 0.2s ease;
}

.cyber-checkbox-container.checked .cyber-checkbox {
  background: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: var(--glow-blue);
}

.cyber-checkbox-container.checked .cyber-checkbox::after {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  font-size: 16px;
  color: var(--bg-cyber);
  font-weight: bold;
}

.cyber-checkbox-label {
  flex: 1;
  font-size: 15px;
  color: var(--text-cyber);
  transition: all 0.2s ease;
}

.cyber-checkbox-container.checked .cyber-checkbox-label {
  color: var(--text-dim);
  text-decoration: line-through rgba(0, 240, 255, 0.3);
}

/* CSS Glitch Banner */
.glitch-banner {
  background: linear-gradient(135deg, rgba(255, 0, 92, 0.15) 0%, rgba(10, 25, 47, 0.7) 100%);
  border-left: 4px solid var(--neon-red);
}

.pulsing-border {
  animation: pulse-border-cyan 2s infinite alternate;
}

@keyframes pulse-border-cyan {
  from { border-color: var(--border-neon-blue); }
  to { border-color: var(--neon-blue); }
}

/* Tactical floating details */
.tag-badge {
  font-size: 10px;
  font-family: var(--font-tech);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-neon-blue);
  color: var(--neon-blue);
}

.tag-badge.badge-red {
  background: rgba(255, 0, 92, 0.1);
  border-color: var(--border-neon-red);
  color: var(--neon-red);
}
.tag-badge.badge-green {
  background: rgba(57, 255, 20, 0.1);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
}
