* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    opacity: 0.85;
}

/* MAIN */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* GRID KARTICA */
.likovi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.lik-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lik-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.lik-card h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.lik-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 14px;
    line-height: 1.5;
}

.lik-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
}

.lik-card ul li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* GUMBI */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    transition: background-color 0.3s;
    margin-top: auto;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-natrag {
    display: inline-block;
    padding: 10px 24px;
    background-color: #ecf0f1;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 15px;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
}

.btn-natrag:hover {
    background-color: #dfe6e9;
}

/* KALKULATOR STRANICA */
.kalkulator-wrap {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.kalkulator-wrap h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* FORMA */
.forma {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.forma label {
    text-align: left;
    font-weight: bold;
    color: #555;
    font-size: 15px;
}

.forma input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.forma input:focus {
    outline: none;
    border-color: #3498db;
}

.forma button {
    padding: 13px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.3s;
}

.forma button:hover {
    background-color: #2980b9;
}

/* REZULTAT */
.rezultat-box {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rezultat-item {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.rezultat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.rezultat-vrijednost {
    font-size: 30px;
    font-weight: bold;
}

.rezultat-vrijednost small {
    font-size: 13px;
    opacity: 0.8;
}

/* GREŠKA */
.greska {
    color: #e74c3c;
    font-size: 16px;
    background: #fdecea;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background: #2c3e50;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* RESPONZIVNOST */
@media (max-width: 600px) {
    header h1 {
        font-size: 26px;
    }

    .kalkulator-wrap {
        padding: 25px 18px;
    }

    .rezultat-box {
        flex-direction: column;
        align-items: center;
    }

    .rezultat-item {
        width: 100%;
    }
}
