﻿.btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

    .btn i {
        font-size: 16px;
        line-height: 1;
    }

/* DODAJ STAVKU */
.btn-dodaj {
    background: #ffffff;
    color: #183b73;
    border: 1px solid #b8c5d8;
}

    .btn-dodaj:hover {
        background: #f5f8fc;
        border-color: #183b73;
    }

/* IZRAČUNAJ KAMATU */
.btn-izracunaj {
    background: #063b82;
    color: white;
    border: 1px solid #063b82;
}

    .btn-izracunaj:hover {
        background: #052f68;
        border-color: #052f68;
    }
.calendar-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #16265c;
    z-index: 2;
    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 42px;
}
.export-actions {
    display: flex;
    gap: 8px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dde3ee;
    border-radius: 6px;
    background: #fff;
    color: #445068;
    font-family: "Segoe UI", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: none;
    letter-spacing: 0;
}

    .btn-export i {
        font-size: 14px;
    }

    .btn-export.excel:hover {
        background: #f2faf5;
        border-color: #1a7f37;
        color: #1a7f37;
    }

    .btn-export.pdf:hover {
        background: #fdf3f2;
        border-color: #c0392b;
        color: #c0392b;
    }

.msg-error {
    margin-top:5px;
    font-family: Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 6px;
    background-color: #fdecea;
    color: #2a4370;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-left: 3px solid #c0392b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.msg-success {    
    margin-top:5px;
    font-family: Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 6px;
    background-color: rgba(46, 204, 113, 0.12);
    color: #1e7e34;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-left: 3px solid #28a745;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.info-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f5f8fc;
    border: 1px solid #e4e9f1;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 12px;
    color: #445068;
    line-height: 1.5;
}

    .info-note i {
        color: #4f8dfd;
        font-size: 14px;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .info-note strong {
        color: #183b73;
    }
.info-note-icon {
    width: 18px;
    height: 18px;
    color: #6b7a9e;
    flex-shrink: 0;
    margin-top: 1px;
}
.unit-m2 {
    font-size: 17px;
    font-weight: 600;
}
.stepper-input {
    display: flex;
    align-items: center;
    height: 38px;
    border: 1px solid #cdd6e4;
    border-radius: 6px;
    overflow: hidden;
    width: 180px;
}

    .stepper-input button {
        border: none;
        background: #f5f8fc;
        width: 32px;
        height: 100%;
        font-size: 15px;
        color: #445068;
        cursor: pointer;
    }

    .stepper-input input {
        border: none;
        border-left: 1px solid #cdd6e4;
        border-right: 1px solid #cdd6e4;
        text-align: center;
        width: 100%;
        font-size: 13.5px;
    }

        .stepper-input input:focus {
            outline: none;
        }


.area-bar-wrap {
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    padding: 12px 14px;
}

.area-bar-title {
    font-size: 10.5px;
    font-weight: 700;
    color: #7c8aa3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 9px;
}

.area-bar {
    position: relative;
    height: 8px;
    border-radius: 5px;
    background: #eef1f6;
    overflow: hidden;
    margin-bottom: 8px;
}

    .area-bar .fill {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background: #4CAF7D;
        border-radius: 5px;
    }

.area-legend {
    font-size: 11px;
    color: #445068;
    display: flex;
    justify-content: space-between;
}

    .area-legend .over {
        color: #c0392b;
        font-weight: 700;
    }

.segmented {
    display: inline-flex;
    border: 1px solid #cdd6e4;
    border-radius: 7px;
    overflow: hidden;
    height: 38px;
    width: auto; /* ukloni fiksnu širinu ako je imaš */
}

    .segmented button {
        flex: 1; /* dugmad ravnomerno popunjavaju kontejner */
        border: none;
        background: #fff;
        padding: 0 16px;
        font-size: 12.5px;
        font-weight: 600;
        color: #7c8aa3;
        cursor: pointer;
        font-family: "Segoe UI", sans-serif;
        white-space: nowrap;
    }

        .segmented button.active {
            background: #4f8dfd;
            color: #fff;
        }

        .segmented button:not(:last-child) {
            border-right: 1px solid #cdd6e4;
        }
.stepper-unit {
    font-size: 13.5px;
    color: #7c8aa3;
    font-weight: 800;
    padding: 0 7px 0 7px;
}

.label-hint {
    font-weight: 400;
    color: #7c8aa3;
    font-size: 11px;
}
.btn-link {
    background: #fff;
    color: #183b73;
    border: 1px dashed #b8c5d8;
    font-size: 12.5px;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: "Segoe UI", sans-serif;
}

    .btn-link:hover {
        background: #f5f8fc;
        border-style: solid;
    }

.stepper-input2 {
    display: flex;
    align-items: center;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    height: 38px;
    overflow: hidden;
}

    .stepper-input2 button {
        width: 40px;
        height: 100%;
        border: none;
        background: #f4f6fa;
        font-size: 18px;
        color: #16265c;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .stepper-input2 button:hover {
            background: #e8ebf2;
        }

.stepper-field2 {
    flex: 1;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    padding: 0;
    outline: none;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #445068;
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

    .custom-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 17px;
        height: 17px;
        border: 1px solid #cdd6e4;
        border-radius: 4px;
        background: #ffffff;
        cursor: pointer;
        position: relative;
        margin: 0;
        flex-shrink: 0;
    }

        .custom-checkbox input[type="checkbox"]:checked {
            background: #003366;
            border-color: #003366;
        }

            .custom-checkbox input[type="checkbox"]:checked::after {
                content: "✓";
                position: absolute;
                left: 3px;
                top: -1px;
                color: white;
                font-size: 13px;
                font-weight: 600;
            }

        .custom-checkbox input[type="checkbox"]:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.12);
        }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width:250px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

    .section-badge.old {
        background: #fef3e2;
        color: #c8891a;
    }

    .section-badge.new {
        background: #eaf6ee;
        color: #1a7f37;
    }

.toggle-with-value {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
}

.mini-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    height: 38px;
}

    /* asp:CheckBox renderuje <input type="checkbox"> - sakrij ga vizuelno ali zadrži funkcionalnim */
    .mini-toggle-wrap input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 34px;
        height: 19px;
        margin: 0;
        cursor: pointer;
    }

.mini-slider {
    position: relative;
    width: 34px;
    height: 19px;
    background: #cdd6e4;
    border-radius: 10px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

    .mini-slider::before {
        content: "";
        position: absolute;
        width: 15px;
        height: 15px;
        left: 2px;
        top: 2px;
        background: #fff;
        border-radius: 50%;
        transition: transform 0.15s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }

.mini-toggle-wrap input[type="checkbox"]:checked + .mini-slider {
    background: #183b73;
}

    .mini-toggle-wrap input[type="checkbox"]:checked + .mini-slider::before {
        transform: translateX(15px);
    }

.toggle-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #445068;
}
/* Topbar kontakt dugme — override sidebar stilova */
.topbar-right .topbar-link,
.topbar-right .topbar-link:link,
.topbar-right .topbar-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    background: transparent;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, border-color .15s;
}

    .topbar-right .topbar-link:hover {
        background: #f5f7fa;
        border-color: #98a2b3;
        color: #000 !important;
    }

    /* Pokidaj nasleđene boje iz sidebar-a */
    .topbar-right .topbar-link .nav-label {
        color: inherit !important;
        font-size: 14px;
        font-weight: 500;
    }

    .topbar-right .topbar-link .nav-icon {
        width: 18px;
        height: 18px;
        color: inherit; /* currentColor prati */
        stroke: currentColor;
    }