@charset "UTF-8";

/* --- STYLE WYMAGANE DLA KALKULATORA ZAPOTRZEBOWANIA --- */
.brand-green {
  color: #5ba127;
}
.bg-brand-green {
  background-color: #5ba127;
}
.bg-brand-green-hover:hover {
  background-color: #4b851f;
}
.border-brand-green {
  border-color: #5ba127;
}
.focus-brand:focus {
  outline: none;
  border-color: #5ba127;
  box-shadow: 0 0 0 3px rgba(91, 161, 39, 0.15);
}

/* Suwak styling */
input[type="range"]::-webkit-slider-thumb {
  background: #5ba127;
}
input[type="range"]::-moz-range-thumb {
  background: #5ba127;
}

/* Delikatna animacja dla podtytułu */
@keyframes gentleAppear {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-gentle-appear {
  animation: gentleAppear 1.2s ease-out 0.4s forwards;
  opacity: 0;
}

/* Płynne przejścia kolorów dla trybu nocnego */
.dark body, .dark *, body, * {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}8

/* --- ZMIENNE KOLORYSTYCZNE (DOMYŚLNIE DARK MODE) --- */
:root {
    --bg-body: #111111;
    --bg-overlay: rgba(17, 17, 17, 0.88);
    --bg-card: #1a1a1a;
    --border-card: #2a2a2a;
    --text-main: #ffffff;
    --text-heading: #ffffff;
    --text-label: #ffffff; 
    --text-muted: #aaaaaa; 
    --bg-input: #222222;
    --border-input: #333333;
    --text-input: #ffffff;
    --accent: #9ccb3b;
    --text-on-accent: #ffffff; 
    --btn-bg: #222222;
}

/* --- ZMIENNE DLA TRYBU JASNEGO (LIGHT MODE) --- */
body.light-mode {
    --bg-body: #f4f4f5;
    --bg-overlay: rgba(244, 244, 245, 0.88);
    --bg-card: #ffffff;
    --border-card: #e5e5e5;
    --text-main: #111111;
    --text-heading: #111111;
    --text-label: #222222; 
    --text-muted: #555555; 
    --bg-input: #ffffff;
    --border-input: #cccccc;
    --text-input: #111111;
    --text-on-accent: #ffffff; 
    --btn-bg: #ffffff;
}

/* --- STYL BAZOWY I TŁO VIZUAL --- */
body { 
    font-family: 'Aptos', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--bg-body); 
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px; 
    color: var(--text-main); 
    padding-top: 60px; 
    transition: background-color 0.3s, color 0.3s;
}

/* --- KONTENER KALKULATORA --- */
.calculator { 
    background: var(--bg-card); 
    padding: 35px 30px; 
    border-radius: 0px; 
    max-width: 650px; 
    margin: auto; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    position: relative;
    border: 1px solid var(--border-card);
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 2; 
}

/* --- ELEMENTY UI --- */
.theme-toggle {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-label);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 20; 
}

.theme-toggle:hover {
    color: var(--accent);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.logo-tab {
    position: absolute;
    top: -45px; 
    right: 40px;
    background: #ffffff; 
    padding: 12px 25px 30px 25px; 
    border-radius: 12px 12px 0 0; 
    z-index: -1; 
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1); 
    transition: transform 0.2s ease;
}

.logo-tab:hover {
    transform: translateY(-2px);
}

.logo-tab a {
    display: block;
    text-decoration: none;
}

.brand-logo {
    max-height: 24px;
    display: block;
}

h2 { 
    color: var(--text-heading); 
    margin-top: 0; 
    margin-bottom: 30px; 
    border-bottom: none; 
    padding-bottom: 0; 
    padding-right: 50px; 
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 22px;
    position: relative;
}

h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 12px;
}

.form-group { margin-bottom: 25px; }

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

select, input[type="number"] { 
    width: 100%; 
    padding: 14px 10px; 
    background: var(--bg-input); 
    color: var(--text-input); 
    border: 1px solid var(--border-input); 
    border-radius: 0px; 
    box-sizing: border-box; 
    font-size: clamp(12px, 3vw, 16px); 
    outline: none; 
    transition: all 0.2s;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    text-align: center; 
    text-align-last: center; 
}

select:focus, input[type="number"]:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 1px var(--accent);
}

.inputs-row { display: flex; gap: 15px; margin-bottom: 25px; }
.input-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.input-col input[type="number"] { text-align: center; font-size: 20px; font-weight: bold; margin-bottom: 12px; }

.radio-group { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600; 
    color: var(--text-main); 
    font-size: 13px; 
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="radio"] { 
    accent-color: var(--accent); 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
    margin: 0; 
}

.summary { 
    margin-top: 30px; 
    border-top: 1px solid var(--border-input); 
    padding-top: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
}

.summary-left { text-align: left; }

.total-price-wrapper { 
    text-align: right; 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 320px;
}

.adeco-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.tax-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    background: var(--bg-input);
    padding: 10px 15px;
    border-radius: 0px;
    border: 1px solid var(--border-input);
}

.tax-toggle .radio-group {
    margin: 0;
    color: var(--text-label);
    font-size: 11px;
}

.total-price { 
    font-size: 34px; 
    font-weight: 800; 
    color: var(--text-on-accent); 
    background: var(--accent); 
    padding: 12px 25px;
    border-radius: 0px;
    display: inline-block;
    line-height: 1.1; 
}

.unit-prices { text-align: right; color: var(--text-muted); font-size: 12px; margin-top: 12px; }

/* Sekcja dostawy */
.delivery-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-input);
    margin: 15px 0 10px 0;
}

.delivery-info {
    font-size: 12px;
    color: var(--text-heading);
    font-weight: 600;
    text-align: right;
    line-height: 1.5;
    transition: all 0.3s;
}

.delivery-free-highlight {
    background-color: var(--accent) !important;
    color: var(--text-on-accent) !important;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    margin-top: 5px;
}

.delivery-missing {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-top: 5px;
}

.product-desc { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 15px; 
    font-style: italic; 
    text-align: center; 
}

#package-dimensions {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
}

#summary-weight {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Odznaki / Badges */
.badge { 
    background: var(--accent); 
    color: var(--text-on-accent); 
    padding: 3px 8px; 
    border-radius: 0px; 
    font-size: 11px; 
    font-weight: bold; 
    margin-left: 10px; 
    letter-spacing: 0;
}

.mega-badge {
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 2px 6px;
    border-radius: 0px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
    display: inline-block;
}

/* Przyciski Akcji */
.shoper-action-btn {
    padding: 15px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.shoper-action-btn:active {
    transform: scale(0.99);
}

.primary-btn {
    background-color: var(--accent);
    color: var(--text-on-accent); 
    border: 1px solid var(--accent);
}
.primary-btn:hover {
    background-color: #8ab532;
}

.secondary-btn {
    background-color: var(--bg-input);
    color: var(--text-heading);
    border: 1px solid var(--border-input);
}
.secondary-btn:hover {
    background-color: #333333;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.mini-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-on-accent); 
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    white-space: nowrap;
}

.mini-link-btn:hover {
    background: #8ab532;
}

.product-select-bottom-actions {
    text-align: center;
    margin-top: 15px;
}

/* --- STYL DLA STOPKI --- */
.calc-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-input);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.calc-footer-left strong {
    color: var(--text-heading);
    font-weight: 800;
    letter-spacing: 1px;
}

.calc-footer-left span.separator {
    color: var(--border-input);
    margin: 0 5px;
}

.calc-footer-left span.version {
    opacity: 0.6;
    font-size: 10px;
}

.calc-footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.calc-footer-right a:hover {
    color: var(--accent);
}

/* --- STYLY DLA URZĄDZEŃ MOBILNYCH --- */
@media (max-width: 600px) {
    h2, label { text-align: center; }
    h2::before { margin: 0 auto 15px auto; }
    .mini-link-btn { padding: 12px 20px; }
    .inputs-row { flex-direction: column; gap: 20px; }
    .summary { flex-direction: column; align-items: center; padding-top: 20px; }
    .total-price-wrapper { align-items: center; text-align: center; width: 100%; order: -1; }
    .adeco-info { text-align: center; color: var(--text-muted); margin-bottom: 20px; }
    .tax-toggle { justify-content: center; }
    .total-price { font-size: 28px; }
    .summary-left { text-align: center; width: 100%; margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--border-input); }
    #package-dimensions { justify-content: center; }
    .unit-prices { text-align: center; margin-top: 15px; }
    .delivery-info { text-align: center; max-width: 100%; }
    .calc-footer { flex-direction: column; gap: 15px; text-align: center; }
    .calc-footer-right a { margin: 0 10px; }
}