/* Font Awesome + Google Font (rukopis) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

/* Pozadina sa cvetićima */
.termin-porodaja-kalkulator {
    max-width: 420px;
    margin: 30px auto;
    padding: 35px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.15);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    border: 2px solid #fbcfe8;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.termin-porodaja-kalkulator::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 150px; height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23fdb8d9" d="M50 15C30 15 15 30 15 50s15 35 35 35 35-15 35-35-15-35-35-35zm0 60c-13.8 0-25-11.2-25-25s11.2-25 25-25 25 11.2 25 25-11.2 25-25 25z"/></svg>') center/contain no-repeat;
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.termin-porodaja-kalkulator::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 120px; height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23f9a8d4" d="M50 20c-16.5 0-30 13.5-30 30s13.5 30 30 30 30-13.5 30-30-13.5-30-30-30zm0 50c-11 0-20-9-20-20s9-20 20-20 20 9 20 20-9 20-20 20z"/></svg>') center/contain no-repeat;
    opacity: 0.12;
    animation: float 8s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.termin-porodaja-kalkulator:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.25);
}

/* Tvoja ikona */
.termin-porodaja-ikona {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: url('images/icon.png') center/contain no-repeat;
    filter: drop-shadow(0 3px 8px rgba(236, 72, 153, 0.2));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Naslov */
.termin-porodaja-kalkulator h3 {
    margin: 0 0 12px;
    color: #be185d;
    font-size: 1.7rem;
    font-weight: 700;
    font-family: 'Dancing Script', cursive;
    text-shadow: 0 1px 2px rgba(236, 72, 153, 0.1);
}

.termin-porodaja-kalkulator p {
    color: #9d174d;
    font-size: 1rem;
    margin-bottom: 22px;
    font-weight: 500;
}

/* Polje za datum */
.termin-porodaja-kalkulator input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    margin: 12px 0;
    border: 2px solid #f8b4d9;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #fffafc;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(236, 72, 153, 0.05);
}

.termin-porodaja-kalkulator input[type="date"]:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2);
    background: white;
}

/* Dugme */
.termin-porodaja-kalkulator button {
    background: linear-gradient(to right, #f472b6, #ec4899);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
    font-family: 'Dancing Script', cursive;
}

.termin-porodaja-kalkulator button:hover {
    background: linear-gradient(to right, #ec4899, #db2777);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

/* Rezultat */
#termin-rezultat {
    margin-top: 25px;
    min-height: 60px;
}

.rezultat-uspeh,
.rezultat-greska {
    padding: 18px;
    border-radius: 14px;
    font-size: 1.1rem;
    animation: fadeInHeart 0.7s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    position: relative;
    overflow: hidden;
}

.rezultat-uspeh {
    background: linear-gradient(135deg, #fce7f3, #f8b4d9);
    color: #9f1239;
    border: 2px solid #f472b6;
    font-weight: 600;
}

.rezultat-uspeh::before {
    content: '♥';
    position: absolute;
    top: 50%; left: -20px;
    font-size: 2rem;
    color: #fdb8d9;
    transform: translateY(-50%);
    animation: heartbeat 1.5s infinite;
}

.rezultat-greska {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

@keyframes fadeInHeart {
    0% { opacity: 0; transform: translateY(-15px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heartbeat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* Mobilni */
@media (max-width: 480px) {
    .termin-porodaja-kalkulator {
        margin: 20px 15px;
        padding: 25px;
    }
    .termin-porodaja-kalkulator h3 {
        font-size: 1.5rem;
    }
}