:root {
    --primary-color: #d4a353;
    /* Zlatno-braon akcenat */
    --bg-color: #f9fbf7;
    --card-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #e0f2f1;
    /* Svetlo zelena kao na slici */
    --text-dark: #444;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    background-image: url('pozadina.png');
    background-size: cover;
    /* Razvlači sliku preko celog ekrana */
    background-attachment: fixed;
    /* Pozadina ostaje fiksna dok skrolujete */
    background-position: center;
    /* Centrira sliku */
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    color: var(--text-dark);
}

.wrapper {
    align-self: center;
    width: 100%;
    max-width: 900px;
}


/* Tabovi */
.tabs {
    display: flex;
    gap: 5px;
    margin-left: 40px;
}

.tab {
    padding: 10px 25px;
    background: #e0e0e0;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.tab.active {
    background: white;
    color: black;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

/* Glavna kartica */
.calculator-card {
    background: var(--card-bg);
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

h1 {
    text-align: center;
    font-size: 28px;
    color: #555;
    margin-bottom: 30px;
}

h1 span {
    color: var(--primary-color);
}

/* Redovi za unos */
.row-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 150px 40px;
    gap: 15px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
    padding: 0 10px;
}

.input-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px 1fr auto 150px 40px;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #b2dfdb;
}

input[type="date"] {
    border: 1px solid #999;
    border-radius: 5px;
    padding: 5px;
    background: white;
}

.row-result {
    font-weight: bold;
    text-align: center;
}

.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Dugmad */
/* Novi kontejner koji drži dugmiće u redu i centrira ih */
.button-group {
    display: flex;
    justify-content: center;
    /* Centrira dugmiće horizontalno */
    gap: 15px;
    /* Razmak između dugmića */
    margin: 20px 0;
    /* Razmak iznad i ispod grupe */
}

.btn-add {
    display: inline-block;
    /* Promenjeno sa block na inline-block */
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(212, 163, 83, 0.4);
    margin: 0;
    /* Sklonjen auto margin */
}

.btn-reset {
    display: inline-block;
    /* Promenjeno sa block na inline-block */
    padding: 10px 25px;
    background: #080808;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;

}


.btn-calculate {
    background: #c2964d;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
}

.action-section {
    text-align: center;
}

/* Donja kartica rezultata */
.total-result-card {
    margin-top: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.total-result-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.result-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.circle {
    width: 90px;
    height: 90px;
    border: 2px solid #555;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.circle strong {
    font-size: 24px;
}

.circle span {
    font-size: 10px;
    color: #777;
}

/* Responzivnost za mobilne */
@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .row-header {
        display: none;
    }

    .result-circles {
        gap: 10px;
    }
}