﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: green;
}

    a:hover {
        color: green;
    }


.btn-primary {
    color: #fff;
    background-color: #605f00;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}


.main {
    flex: 1;
}

    .main .top-row{
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid rgb(101, 100, 0);
}

.invalid {
    box-shadow: 0 0 4px 0 green;
}

.validation-message {
    color: green;
}

#blazor-error-ui {
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color:white;
    text-align: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .bar { /*TODO: More meaningful name*/
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .bar { /*TODO: More meaningful name; match with other media*/
        flex-direction: column;
    }
}


.info-collection {
    max-width: 700px;
    display:inline-block;
    text-align: initial;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif
}


.progress-control {
    max-width: 700px;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif
}

    .progress-control .link-back-container {
        width: 100%;
        height: 40px;
        margin-bottom: 10px;
        position: relative;
        overflow: hidden;
    }


button.btn-link-back {
    width: 295px;
    height: 35px;
    margin: 2.5px;
    border: 1px solid rgb(127, 126, 0);
    color: rgb(101, 100, 0);
    background-color: white;
    border-radius: 2px;
    text-align: left;
    position: relative;
    float: left;
    display : block;
}

    button.btn-link-back:hover {
        background-color: #f7f7f7;
    }

    button.btn-link-back[current="current"] {
        background-color: rgb(127, 126, 0);
        color: white;
    }

    button.btn-link-back[current="current"]:hover {
        background-color: rgb(121, 120, 0);
        color: white;
    }

table.progress-bar-custom {
    overflow: hidden;
    width: 100%;
    height: 8px;
    background-color: transparent;
    margin-top: 2px;
    margin-bottom: 2px;
    table-layout: fixed;
}

.progress-bar-custom tr {
    height: 100%;
}

.progress-bar-custom th {
    height: 100%;
    background-color: lightgray;
    border: 1px solid white;
    border-bottom: 0px;
    border-top: 0px;
    content: "";
}

    .progress-bar-custom th[can-edit="can-edit"] {
        background-color: rgb(127, 126, 0);
    }

    .progress-bar-custom th[current="current"] {
        background-color: rgb(101, 100, 0);
    }

.progress-bar-custom td {
    height: 0;
}


.btn-next,
a.btn-next{
    width: 100px;
    height: 35px;
    margin: 2.5px;
    padding: 5px;
    border: none;
    border-radius: 2px;
    text-align: center;
    background-color: rgb(127, 126, 0);
    color: white;
    float: right
}

    .btn-next:hover,
    a.btn-next:hover{
        background-color: rgb(101, 100, 0);
        text-decoration: none;
    }



.btn-back {
    border: none;
    width: 100px;
    height: 35px;
    margin: 2.5px;
    text-align: center;
    background-color: white;
    color: rgb(127, 126, 0);
    float: left;
}

    .btn-back:hover {
        color: rgb(101, 100, 0);
    }

.checkbox-not-checked { /*TODO: Combine these*/
    margin: 2px;
    margin-right: 6px;
    content: "";
    height: 16px;
    width: 16px;
    background-color: white;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgb(101, 100, 0);
    display: inline-block;
    float: left;
}

.checkbox-checked {
    margin: 2px;
    margin-right: 6px;
    content: "";
    height: 16px;
    width: 16px;
    background-color: rgb(127, 126, 0);
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgb(101, 100, 0);
    display: inline-block;
    float: left;
}

.radio-not-selected {
    margin: 2px;
    margin-right: 6px;
    content: "";
    height: 16px;
    width: 16px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgb(127, 126, 0);
    display: inline-block;
    float: left;
}

.radio-selected {
    margin: 2px;
    margin-right: 6px;
    content: "";
    height: 16px;
    width: 16px;
    background-color: rgb(127, 126, 0);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgb(127, 126, 0);
    display: inline-block;
    float: left;
}


.question {
    margin-top: 10px;
    margin-bottom: 20px
}

.option {
    line-height: 20px;
    text-align: left;
    position: static;
    min-height: 30px;
    margin-top: auto;
    margin-bottom: 2px;
    box-sizing: border-box;
    display: table;
}

label.option {
    margin-left: 4px;
}



.edit-form-entry { /*TODO: Make these specific for the form*/
    margin-top: 8px;
}

.form-input {
    width: 100%;
    height: 37px;
    border: 1px solid rgb(20, 20, 0);
    border-radius: 2px;
    margin-top:4px;
    margin-bottom: 4px;
}

    .form-input:focus {
        box-shadow: 0 0 5px rgb(127, 126, 0);
    }


@keyframes rotate {
    from{transform: rotate(0deg)}
    to{transform: rotate(360deg)}
}


@media (min-width: 768px) {
    /* zentriert den gesamten Fragen-Content und schiebt ihn 40px nach unten */
    .info-collection,
    .progress-control {
        display: block; /* Block-Level, damit margin auto wirkt */
        max-width: 700px; /* Breite anpassen wie auf der Referenz-Site */
        margin: 40px auto 0 auto; /* 40px oben, automatisch zentriert, 0 unten */
        padding: 0 1rem; /* optional: 1rem innenabstand links/rechts */
        text-align: left; /* Text linksbündig */
        font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
    }
}

.bold {
    font-weight: bold;  
}

@media (min-width: 768px) {
    /* Basis-Styling für deine Options-Zeilen */
    .progress-control .option {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        cursor: pointer;
        transition: background-color .2s ease;
        border-radius: 8px; /* <<< Hier die Ecken abrunden */
        box-sizing: border-box;
    }

        /* Hover- und Selected-State übernehmen die Abrundung automatisch */
        .progress-control .option:hover,
        .progress-control .option[selected="selected"] {
            background-color: rgba(96, 95, 0, 0.1);
        }
}

.form-control {
    font-family: OpenSans, sans-serif;
    font-size: 1rem;
    color: #0b162b;
    background-color: #ffffff;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 8px 12px;
    max-width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

    .form-control:focus {
        outline: none;
        border-color: #696200; /* z.?B. Kanzleigrün */
        box-shadow: 0 0 5px rgba(105, 98, 0, 0.6); /* leichter grüner Fokus */
    }

/* Stepper - global eingebunden */
.sm-wrapper {
    --sm-bg: #efefe5;
    --sm-rail: #ffffff;
    --sm-fill: #6dd400 !important;
    --sm-text: #0b162b;
    --sm-muted: #6b7280;
    --sm-current: #111827;
    --sm-shadow: 0 6px 20px rgba(0,0,0,.06);
    background: var(--sm-bg);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: var(--sm-shadow);
    width: 100%;
    font-family: inherit; /* nimmt die bestehende Schriftart, verändert nichts global */
}

.sm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--sm-text);
    font-weight: 600;

}

.sm-badge {
    font-size: 12px;
    letter-spacing: .08em;
    background: var(--sm-bg);
    color: #1f2937;
    padding: 4px 8px;
    border-radius: 999px;
    font-family: inherit;
}

.sm-percent {
    font-size: 13px;
    color: var(--sm-muted);
}

.sm-rail {
    position: relative;
    height: 8px;
    background: var(--sm-rail);
    border-radius: 999px;
    overflow: hidden;
}

.sm-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--sm-fill);
    transition: width .35s ease;
}

.sm-viewport {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.sm-track {
    display: flex;
    gap: 18px;
    padding: 8px 6px 2px 6px;
}

.sm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

    .sm-step.done .sm-label {
        color: var(--sm-muted);
    }

    .sm-step.current .sm-label {
        color: var(--sm-current);
        font-weight: 700;
    }

.sm-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid var(--sm-rail);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.sm-step.done .sm-dot {
    background: var(--sm-fill);
    color: #fff;
    border-color: var(--sm-fill);
}

.sm-dot-current {
    border-color: var(--sm-fill);
    box-shadow: 0 0 0 4px rgba(105, 98, 0,.18);
}

.sm-label {
    font-size: 12px;
    text-align: center;
    color: var(--sm-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    font-family: OpenSans, sans-serif;
}

/* Gradienten ? nehmen den Hintergrund vom Stepper */
.sm-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
}

.sm-left {
    left: 0;
    background: linear-gradient(90deg, var(--sm-bg), rgba(239,239,229,0));
}

.sm-right {
    right: 0;
    background: linear-gradient(270deg, var(--sm-bg), rgba(239,239,229,0));
}

@media (max-width: 640px) {
    .sm-step {
        min-width: 72px;
    }

    .sm-label {
        max-width: 92px;
    }
}

.sm-top .process-name {
    font-size: 16px; 
    font-weight: bold; 
    color: rgb(101, 100, 0); 
    font-family: OpenSans, sans-serif; 
    text-transform: uppercase; 
}








    





