﻿:root {
    --bs-primary: var(--base-color); /* Crafto green energy */
    --bs-primary-rgb: 105, 191, 107;
    --bs-secondary: "#2A6F80";
    --bs-secondary-rgb: 42, 111, 128;
    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: #55a65a;
    /* nav pills active */
    --bs-nav-pills-link-active-bg: var(--bs-primary);
    --bs-nav-pills-link-active-color: #fff;
    /* -------------------------------------------------------- */
    /*  BUTTONS – PRIMARY                                       */
    /* -------------------------------------------------------- */
    /* Base */
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    /* Hover */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(var(--bs-primary-rgb), 0.85);
    --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb), 0.85);
    /* Active */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(var(--bs-primary-rgb), 0.75);
    --bs-btn-active-border-color: rgba(var(--bs-primary-rgb), 0.75);
    /* Disabled */
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: rgba(var(--bs-primary-rgb), 0.45);
    --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb), 0.45);
    /* -------------------------------------------------------- */
    /*  BUTTONS – OUTLINE PRIMARY                               */
    /* -------------------------------------------------------- */
    /* Base */
    --bs-btn-outline-color: var(--bs-primary);
    --bs-btn-outline-border-color: var(--bs-primary);
    --bs-btn-outline-bg: transparent;
    /* Hover */
    --bs-btn-outline-hover-color: #fff;
    --bs-btn-outline-hover-bg: var(--bs-primary);
    --bs-btn-outline-hover-border-color: var(--bs-primary);
    /* Active */
    --bs-btn-outline-active-color: #fff;
    --bs-btn-outline-active-bg: rgba(var(--bs-primary-rgb), 0.85);
    --bs-btn-outline-active-border-color: rgba(var(--bs-primary-rgb), 0.85);
    /* Disabled */
    --bs-btn-outline-disabled-color: rgba(var(--bs-primary-rgb), 0.45);
    --bs-btn-outline-disabled-border-color: rgba(var(--bs-primary-rgb), 0.45);
}



header .navbar-brand img {
    max-height: 48px;
}

header .navbar {
    z-index: 2000;
}


/* CTA panel */
.cta-panel {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 400;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 24px;
    width: 33vw !important;
    max-width: 90%;
    transition: all 0.3s ease;
}

    .cta-panel:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-2px);
    }

    .cta-panel h5 {
        color: #222;
    }

    .cta-panel p {
        line-height: 1.4;
    }


/* 🔹 Mobilna prilagoditev */
@media (max-width: 992px) { /* Bootstrap "lg" breakpoint */
    .cta-panel {
        left: 50% !important; /* preglasi morebitne druge stile */
        right: auto !important;
        bottom: 30px !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 32px) !important; /* skoraj čez celo širino */
        max-width: none !important;
        padding: 16px 18px !important;
        border-radius: 12px !important;
    }

        .cta-panel:hover {
            transform: translate(-50%, -2px);
        }
        /* skrij ikono na mobilnih */
        .cta-panel .cta-icon {
            display: none !important;
        }
}


/* statisitka*/
.stats-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f6faf8 100%);
}

.stat-box {
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .stat-box:hover {
        transform: translateY(-3px);
    }

.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
}



/* opis projekta */
.about-portal-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fbf9 100%);
}

.about-icon {
    background: rgba(25, 135, 84, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* zadnje prijave */
.recent-reports {
    padding: 80px 0;
    background: linear-gradient( to bottom, #f5f9f6 0%, /* svetlo zeleno-bela na vrhu */
    #eaf4ef 100% /* mehkejši zelenkast ton spodaj */
    );
}

/* posamezna kartica prijave */
.report-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* ključ za enako višino v bootstrap row */
    padding: 1.5rem 1.75rem; /* več notranjega prostora */
}

    .report-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

    /* naslov in opis z omejenim številom vrstic */
    .report-card h5 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #222;
        margin-bottom: 0.4rem;
        min-height: 2.8em; /* ~2 vrstice */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .report-card p {
        color: #555;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        min-height: 2.8em; /* 2 vrstice prostora */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* spodnji del – status + datum */
    .report-card .report-footer {
        margin-top: auto; /* potisne dno navzdol */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* status badge */
    .report-card .badge {
        font-size: 0.8rem;
        padding: 0.35em 0.7em;
        border-radius: 6px;
    }

    /* datum */
    .report-card small {
        color: #666;
        font-size: 0.85rem;
        white-space: nowrap;
    }

/* placeholder thumbnail */
.report-thumb {
    background: #f5f5f5;
    border-radius: 8px;
    width: 90px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #bbb;
    font-size: 22px;
}


/* kako deluje */
.how-it-works {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fbf9 100%);
}

.step {
    width: 220px;
    position: relative;
    z-index: 2;
}

    .step p, .step h5 {
        margin-top: 1rem;
    }

.step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .step-icon:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

/* različni odtenki zelene */
.bg-success-light {
    background-color: #d5ede1; /* svetlejši ton */
}

.bg-success-subtle {
    background-color: #e9f6ef; /* še svetlejši */
}

/* črta med ikonami */
.step-line {
    width: 60px;
    height: 2px;
    background: #198754; /* zelena linija */
    margin-top: 50px;
    opacity: 0.3;
    border-radius: 3px;
}

/* besedilo pod ikonami */
.step-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .steps {
        flex-direction: column;
        align-items: center !important; /* centriraj vsebino */
        justify-content: center !important;
    }

    .step {
        width: 100%;
        max-width: 280px; /* prepreči, da bi šlo čez rob */
        text-align: center;
    }

    .step-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .step-line {
        display: none; /* skrij povezovalne črte */
    }
}



/* MODAL okno */
.nav-segment .nav-link {
    border-radius: 50px !important;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

    .nav-segment .nav-link.active {
        background-color: var(--bs-primary);
        color: #fff;
    }

textarea.form-control {
    min-height: 130px;
}

.modal-content {
    animation: fadeInUp 0.25s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* priponke */
.img-border {
    border: 1px solid rgba($primary, 0.1);
}

.priponka-file-card {
    display: flex;
    flex-direction: column;
    /*padding: 0.75rem 0.75rem;*/
    width: 105px;
    height: 140px;
    background-color: mix(white, var(--bs-primary), 90%) !important;
    color: var(--bs-primary);
    margin: 0rem .4rem .4rem 0rem;
    text-overflow: ellipsis;
}

.priponka-file-card:hover {
    text-decoration: none;
    cursor: pointer;
    background-color: mix(white, var(--bs-primary), 80%) !important;
}


.priponka-file-card .fa-lg {
    line-height: 1em;
}

.priponka-file-card .text-three-rows {
    line-height: calc(var(--bs-body-line-height) * 1em);
    max-height: calc(var(--bs-body-line-height) * 3 * 1em);
    overflow: hidden;
}

.priponka-image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 150px;
    max-width: 266px;
    height: 200px;
    margin: 0rem .4rem .4rem 0rem;
    border: 1px solid rgba(var(--bs-primary), 0.1);
    position: relative;
}

.priponka-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.priponka-image-card:hover {
    text-decoration: none;
    cursor: pointer;
}
/* end - priponke */


.modal-title-ellipsis {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
