/* =====================================================
   style.css
   -----------------------------------------------------
   Dodatni stilovi za SkinPulse AI - koriste se zajedno
   sa Tailwind CDN klasama. Sadrži glassmorphism kartice,
   gradijente, slidere, animacije i komponente koje nisu
   pokrivene osnovnim Tailwind utility klasama.
   ===================================================== */

/* ---------- Opšte ---------- */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* ---------- Navigacioni linkovi ---------- */
.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    color: #4b5563;
    transition: background-color .15s ease, color .15s ease;
}
.nav-link:hover {
    background-color: rgba(108, 142, 255, 0.12);
    color: #4256b3;
}

/* ---------- Glassmorphism kartice ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(108, 142, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .2s ease, box-shadow .2s ease;
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(108, 142, 255, 0.18);
}

/* ---------- Gradient kartica naglavak ---------- */
.gradient-pill {
    background: linear-gradient(135deg, #6c8eff 0%, #a98bff 100%);
}

/* ---------- Skor krugovi (score rings) ---------- */
.score-ring {
    position: relative;
    width: 110px;
    height: 110px;
}
.score-ring svg {
    transform: rotate(-90deg);
}
.score-ring .score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
}

/* ---------- Flash poruke ---------- */
.flash-message {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.flash-success {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.flash-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.flash-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* ---------- Rizik oznake ---------- */
.risk-low {
    color: #047857;
    background-color: #ecfdf5;
}
.risk-medium {
    color: #b45309;
    background-color: #fffbeb;
}
.risk-high {
    color: #b91c1c;
    background-color: #fef2f2;
}
.risk-low, .risk-medium, .risk-high {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---------- Slideri za dnevni unos ---------- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #dbe6ff 0%, #ecdcff 100%);
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c8eff 0%, #a98bff 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(108, 142, 255, 0.4);
}
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c8eff 0%, #a98bff 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(108, 142, 255, 0.4);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(108, 142, 255, 0.2);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

/* ---------- Loading spinner ---------- */
.loader {
    width: 36px;
    height: 36px;
    border: 4px solid #dbe6ff;
    border-top-color: #6c8eff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Empty state ilustracija ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}

/* ---------- Fade-in animacija za kartice ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp .4s ease both;
}

/* ---------- Upload drop zona ---------- */
.upload-zone {
    border: 2px dashed #c7d2fe;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.5);
    transition: border-color .2s ease, background-color .2s ease;
}
.upload-zone.dragover {
    border-color: #6c8eff;
    background: rgba(108,142,255,0.08);
}

/* ---------- Onboarding korak indikator ---------- */
.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dbe6ff;
}
.step-dot.active {
    background: linear-gradient(135deg, #6c8eff 0%, #a98bff 100%);
}
