:root {
  --primary: #00aaff;
  --accent: #6f42c1;
  --success: #00e676;
  --danger: #ff5252;
  --bg-gradient: linear-gradient(135deg, #121212 0%, #1e1e24 100%);
  --card-bg: #1e1e24;
  --text: #ffffff;
  --text-muted: #b0b0c0;
  --border: rgba(255, 255, 255, 0.2);
  --input-bg: #2a2a35;
  --input-focus-bg: #323240;
  --option-bg: #2a2a35;
}
body.theme-light {
  --bg-gradient: linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 100%);
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #cbd5e1;
  --input-bg: #f1f5f9;
  --input-focus-bg: #ffffff;
  --primary: #0284c7;
  --option-bg: #ffffff;
}

body.theme-special {
  --bg-gradient: linear-gradient(135deg, #240b36 0%, #570a57 100%);
  --card-bg: #2d0a3c;
  --text: #f3e8ff;
  --text-muted: #d8b4fe;
  --border: rgba(216, 180, 254, 0.3);
  --input-bg: #4a1d61;
  --input-focus-bg: #5d257a;
  --primary: #d946ef;
  --accent: #8b5cf6;
  --option-bg: #2d0a3c;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background 0.5s ease;
}

.calculator-container {
  background: var(--card-bg);
  width: 100%;
  max-width: 650px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.calculator-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.language-switcher {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

#languageSelect {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

#languageSelect:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

#languageSelect option {
  background-color: var(--card-bg);
  color: var(--text);
}

.theme-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
  border-radius: 20px;
  border: 1px solid var(--border);
  z-index: 10;
}

.theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.5;
  color: var(--text);
}

.theme-btn .material-symbols-outlined {
  font-size: 24px;
  font-weight: 400;
  font-variation-settings: "FILL" 1;
}

.theme-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
  margin-top: 10px;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.logo {
  padding-left: 70px;
}
.logo-icon {
  height: 90px;
  left: -0.5rem;
}
.reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 10px;
  transition: all 0.3s;
}

.reset-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 700;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
}

.tax-group {
  margin-top: 20px;
  border-top: 1px dashed var(--border);
  padding-top: 20px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}

select,
input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text);
  box-sizing: border-box;
  font-weight: 500;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

select option {
  background-color: var(--option-bg) !important;
  color: var(--text) !important;
  padding: 10px;
}

select optgroup {
  background-color: var(--option-bg);
  color: var(--text-muted);
  font-style: normal;
  font-weight: 800;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.input-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-separator {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.info-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  opacity: 0.8;
}

.watt-badge {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  width: fit-content;
}

.watt-value {
  margin-left: 5px;
  font-weight: 800;
}

.badge-blue {
  background-color: rgba(0, 170, 255, 0.15);
  color: var(--primary);
  border-color: rgba(0, 170, 255, 0.3);
}

.badge-red {
  background-color: rgba(255, 82, 82, 0.15);
  color: #ff8a80;
  border-color: rgba(255, 82, 82, 0.3);
}

.badge-green {
  background-color: rgba(0, 230, 118, 0.15);
  color: #69f0ae;
  border-color: rgba(0, 230, 118, 0.3);
}

.result-box {
  background: var(--input-bg);
  color: var(--text);
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: none;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.result-row.highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px dashed var(--border);
}

.final-area {
  margin-top: 25px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.final-label {
  font-size: 1.1rem;
  font-weight: 700;
}

.final-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success);
  text-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--danger);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition:
    opacity 0.3s,
    bottom 0.3s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.legal-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  opacity: 0.8;
}
.home-buton {
  display: block;
  width: fit-content;
  margin: 20px auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2d3748;
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}
#cookie-banner p {
  margin: 0 0 15px 0;
  font-size: 0.95rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
#cookie-banner a {
  color: #667eea;
  text-decoration: underline;
}
.cookie-btn-container {
  display: flex;
  justify-content: center;
  gap: 15px;
}
#cookie-banner button {
  padding: 8px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
#accept-cookies {
  background: #667eea;
  color: white;
  border: none;
}
#accept-cookies:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}
#decline-cookies {
  background: transparent;
  border: 1px solid #718096;
  color: #cbd5e0;
}
#decline-cookies:hover {
  border-color: #e53e3e;
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
}
@media screen and (max-width: 768px) {
  .calculator-container {
    padding: 1.2rem 1rem;
    width: 95%;
    margin: 10px auto;
  }
  .theme-switcher {
    top: 10px;
    right: 10px;
    transform: scale(0.85);
    transform-origin: top right;
  }
  .language-switcher {
    top: 10px;
    left: 10px;
    transform: scale(0.85);
    transform-origin: top left;
  }
  #languageSelect {
    height: 38px;
  }
  header {
    margin-top: 45px;
    margin-bottom: 1.5rem;
  }
  header h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  select,
  input {
    padding: 12px;
    font-size: 0.9rem;
  }
  .result-box {
    padding: 1.2rem;
    margin-top: 1.5rem;
  }
  .final-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .final-price {
    font-size: 2rem;
    word-break: break-all;
    line-height: 1;
  }
}
