
html, body {
    height: 100%;
    margin: 0;
}
html {
    font-size: 14px;
    height:fit-content;
    
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient( 90deg, #022c22 0%, /* deep green at the far left */
    #065f46 40%, /* your var(--tt-green-main)-style mid green */
    #0f766e 70%, /* teal that matches the header tones */
    #14b8a6 100% /* light teal to blend into the header bg */
    );
    overflow-y: auto;
    /*background: radial-gradient(circle at top left, #020617 0, #020617 40%, #022c22 100%);*/
}


header {
    height: max-content;
    width:100%;
}

.rendered-content {
    width: 100%;
    height:fit-content;
    overflow-x: hidden;
    flex: 1 0 auto;
}

main{
    height:fit-content;
}

#dashboardTopRow {
    height: fit-content;
}

.content-card {
    height: fit-content !important;
    max-height: none !important;
    background: radial-gradient( circle at top left, #ecfdf5 0%, /* very light mint */
    #d1fae5 35%, /* soft pastel green */
    #f9fafb 100% /* almost white for readability */
    );
    border-radius: 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
}

.table-card{
    max-height:none!important;
}

.main-navbar {
    background: linear-gradient(90deg, var(--tt-green-deep), var(--tt-green-main));
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

    /* Brand */
    .main-navbar .navbar-brand {
        color: #f9fafb !important;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }

        .main-navbar .navbar-brand i {
            font-size: 1.1rem;
            color: #a7f3d0;
        }

        .main-navbar .navbar-brand:hover {
            color: #e5e7eb !important;
        }

    /* Top nav links (if you add some) */
    .main-navbar .navbar-nav .nav-link {
        color: #e5e7eb;
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    }

        .main-navbar .navbar-nav .nav-link:hover {
            background-color: rgba(15, 23, 42, 0.35);
            color: #fefce8;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.5);
            transform: translateY(-1px);
        }

        .main-navbar .navbar-nav .nav-link.active {
            background: radial-gradient(circle at top left, var(--tt-green-soft), var(--tt-green-main));
            color: #ecfdf5;
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.7);
        }

    /* Toggler */
    .main-navbar .navbar-toggler {
        border-color: rgba(248, 250, 252, 0.6);
        border-radius: 0.75rem;
        padding: 0.2rem 0.45rem;
    }

    .main-navbar.navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(249,250,251,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }


.main-footer {
    /*margin-top: 2rem;*/
    margin-top: auto;
    padding: 0.75rem 0;
    background: linear-gradient(90deg, var(--tt-green-deep), var(--tt-green-main));
    color: #e5e7eb;
    font-size: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
    position: relative!important; /* just in case */
}

    .main-footer .container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    /* Footer link */
    .main-footer a {
        color: var(--tt-accent-blue);
        text-decoration: none;
        font-weight: 500;
        position: relative;
    }

        .main-footer a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2px;
            height: 1px;
            background: linear-gradient(90deg, var(--tt-accent-blue), #fef9c3);
            opacity: 0;
            transform: scaleX(0.9);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }

        .main-footer a:hover {
            color: #e0f2fe;
        }

            .main-footer a:hover::after {
                opacity: 1;
                transform: scaleX(1);
            }


.save-btn, .accept-btn {
    /* override Bootstrap secondary */
    display:flex;
    justify-content:center;
    align-content:center;
    align-items:center;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, /* green */
    #0f766e, /* teal */
    #0ea5e9 /* blue accent */
    );
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.45);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

    /* Icon a tiny bit larger & bright */
    .save-btn i, .accept-btn i {
        font-size: 1rem;
        color: #bbf7d0;
    }

    /* Hover / active */
    .save-btn:hover, .accept-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e, #0284c7 );
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.6);
        color: #f9fafb;
    }

    /* Focus ring */
    .save-btn:focus,
    .save-btn:focus-visible, 
    .accpet-btn:focus,
    .accept-btn:focus-visible
    {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }



.cancel-btn {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    border-radius: 0.35rem;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.45);
    display: flex;
    text-align: center;
}

    .cancel-btn:hover {
        background: linear-gradient(135deg, #2563eb, #4338ca);
    }

.cancel-btn i {
    font-size: 1.3rem;
}

.btn-outline-danger {
    padding: 0.45rem 1.1rem !important;
    font-size: 0.9rem;
}

.add-entry-btn {
    /* override Bootstrap secondary */
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, /* green */
    #0f766e, /* teal */
    #0ea5e9 /* blue accent */
    );
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.45);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

    /* Icon a tiny bit larger & bright */
    .add-entry-btn i {
        font-size: 1rem;
        color: #bbf7d0;
    }

    /* Hover / active */
    .add-entry-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e, #0284c7 );
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.6);
        color: #f9fafb;
    }

    /* Focus ring */
    .add-entry-btn:focus,
    .add-entry-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }



.edit-btn {
    border-radius: 0.4rem;
    border: 1px solid #a7f3d0; /* mint border */
    background: #f9fafb;
    color: #047857; /* green */
    padding: 0.25rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    /* Pencil icon */
    .edit-btn i {
        font-size: 0.9rem;
    }

    /* Hover – fill with green/teal gradient */
    .edit-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e);
        border-color: #0f766e;
        color: #ecfdf5;
        box-shadow: 0 3px 10px rgba(5, 150, 105, 0.55);
        transform: translateY(-1px);
    }

    /* Focus ring */
    .edit-btn:focus,
    .edit-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }



.download-btn {
    /* override Bootstrap secondary */
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, /* green */
    #0f766e, /* teal */
    #0ea5e9 /* blue accent */
    );
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.25rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.45);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

    /* Icon a tiny bit larger & bright */
    .download-btn i {
        font-size: 1rem;
        color: #bbf7d0;
    }

    /* Hover / active */
    .download-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e, #0284c7 );
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.6);
        color: #f9fafb;
    }

    /* Focus ring */
    .download-btn:focus,
    .download-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }

    .save-changes-div{
        display:none;
    }



/* =========================================================
   TimeTracker modal theme (unified + de-duplicated)
   ========================================================= */



/* ---------------------------
   Bootstrap modal base
---------------------------- */
.modal {
    color: var(--tt-text);
}

.modal-dialog {
    width: 100%;
    max-width: min(820px, 92vw); /* instead of 50% (more responsive) */
}

.modal-content {
    background-color: var(--tt-surface);
    border-radius: var(--tt-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--tt-shadow-lg);
    overflow: hidden;
    background-clip: padding-box;
}

/* Header (single source of truth — no duplicates) */
.modal-header {
    background: var(--tt-header-bg);
    color: #fff;
    border-bottom: 1px solid var(--tt-header-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    border-radius: 0;
    background-clip: padding-box;
    /*border-top-left-radius: var(--tt-radius-lg);
    border-top-right-radius: var(--tt-radius-lg);*/
}

    /* If you want the title centered but keep close button on the right */
    .modal-header .modal-title {
        flex: 1;
        text-align: center;
        font-weight: 600;
        font-size: 1.05rem;
        margin: 0;
    }

    .modal-header .btn-close {
        margin: 0;
        filter: invert(1) grayscale(1); /* makes close icon visible on dark header */
    }

/* Footer */
.modal-footer {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
}

/* ---------------------------
   Form controls (modal + custom modal)
---------------------------- */
.form-floating > label {
    color: var(--tt-text-muted);
}

.modal .form-control,
.modal .form-select,
.shift-modal .form-control,
.shift-modal .form-select,
.shift-modal input,
.shift-modal select {
    border-radius: var(--tt-radius);
    border: 1px solid var(--tt-border);
    background-color: var(--tt-surface-muted);
    color: var(--tt-text);
}

    .modal .form-control:focus,
    .modal .form-select:focus,
    .shift-modal .form-control:focus,
    .shift-modal .form-select:focus,
    .shift-modal input:focus,
    .shift-modal select:focus {
        border-color: var(--tt-primary);
        box-shadow: 0 0 0 0.2rem rgba(var(--tt-primary-rgb), 0.20);
        background-color: var(--tt-surface);
        outline: none;
    }

/* ---------------------------
   Buttons (consistent)
---------------------------- */
.modal-footer .btn-success {
    background-color: var(--tt-success);
    border-color: var(--tt-success);
    border-radius: var(--tt-radius);
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

    .modal-footer .btn-success:hover {
        background-color: var(--tt-success-hover);
        border-color: var(--tt-success-hover);
    }

.modal-footer .btn-outline-secondary {
    border-radius: var(--tt-radius);
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

/* =========================================================
   Custom shift modal (your existing div-based modal)
   ========================================================= */

.archiveShiftModal {
    display: none;
    z-index: 9999;
}

/* Keep your structure, but align styling with Bootstrap modal */
.shift-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--tt-surface);
    border-radius: var(--tt-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--tt-shadow-pop);
    min-width: 320px;
    width: min(520px, 92vw);
    padding: 1rem 1.25rem;
    display: none;
}

    .shift-modal h3 {
        margin: 0 0 1rem 0;
        text-align: center;
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--tt-text);
    }

    .shift-modal input,
    .shift-modal select,
    .shift-modal button {
        display: block;
        width: 100%;
        margin: 0.6rem 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.95rem;
        border-radius: var(--tt-radius);
    }


/* Base: applies to all buttons in modal footer */
.modal-footer .btn {
    border-radius: var(--tt-btn-radius);
    padding: var(--tt-btn-pad-y) var(--tt-btn-pad-x);
    font-weight: var(--tt-btn-font);
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .08s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

    .modal-footer .btn:active {
        transform: translateY(1px);
    }

    .modal-footer .btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 0.22rem rgba(var(--tt-primary-rgb), 0.28);
    }

/* ---------------------------
   Abbrechen (Cancel) - default
   Use: class="btn tt-btn-cancel"
---------------------------- */
.modal-footer .tt-btn-cancel {
    background: transparent;
    color: var(--tt-text);
    border: 1px solid rgba(0, 0, 0, 0.14);
}

    .modal-footer .tt-btn-cancel:hover {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.22);
    }

/* ---------------------------
   Primary (Save / Apply)
   Use: class="btn tt-btn-primary"
---------------------------- */
.modal-footer .tt-btn-primary {
    background: var(--tt-primary);
    border: 1px solid var(--tt-primary);
    color: #fff;
}

    .modal-footer .tt-btn-primary:hover {
        filter: brightness(0.95);
    }

    .modal-footer .tt-btn-primary:focus-visible {
        box-shadow: 0 0 0 0.22rem rgba(var(--tt-primary-rgb), 0.30);
    }

/* ---------------------------
   Success (Confirm / OK)
   Use: class="btn tt-btn-success"
---------------------------- */
.modal-footer .tt-btn-success {
    background: var(--tt-success);
    border: 1px solid var(--tt-success);
    color: #fff;
}

    .modal-footer .tt-btn-success:hover {
        background: var(--tt-success-hover);
        border-color: var(--tt-success-hover);
    }

/* ---------------------------
   Danger (Delete / Archive)
   Use: class="btn tt-btn-danger"
---------------------------- */
.tt-btn-danger {
    background: var(--tt-danger);
    border: 1px solid var(--tt-danger);
    color: #fff;
    padding: 0.45rem 1.1rem;
}

    .tt-btn-danger:hover {
        background: var(--tt-danger-hover);
        border-color: var(--tt-danger-hover);
    }

    .tt-btn-danger:focus-visible {
        box-shadow: 0 0 0 0.22rem rgba(220, 53, 69, 0.28);
    }

/* ---------------------------
   Secondary (Less prominent)
   Use: class="btn tt-btn-secondary"
---------------------------- */
.modal-footer .tt-btn-secondary {
    background: var(--tt-secondary);
    border: 1px solid var(--tt-secondary);
    color: #fff;
}

    .modal-footer .tt-btn-secondary:hover {
        background: var(--tt-secondary-hover);
        border-color: var(--tt-secondary-hover);
    }

/* ---------------------------
   Ghost (Quiet action: "Mehr", "Später")
   Use: class="btn tt-btn-ghost"
---------------------------- */
.modal-footer .tt-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--tt-text-muted);
}

    .modal-footer .tt-btn-ghost:hover {
        background: rgba(0, 0, 0, 0.035);
        color: var(--tt-text);
    }

/* ---------------------------
   Disabled look
---------------------------- */
.modal-footer .btn:disabled,
.modal-footer .btn.disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.disabilities-card{
    max-height:none!important;
}

.pdf-item {
    position: relative;
}
.img-link {
    width: fit-content;
    position: relative;
}
.remove-img-btn {
    position: absolute;
    top: 2px;
    right: 2px;
}
.remove-pdf-btn {
    position: absolute;
    top: 2px;
    right: 2px;
}

.disability-card{
    max-height:none!important;
}

.additional-employments-card, .ae-card {
    max-height: none !important;
}

body {
}
/* HTML: <div class="loader"></div> */
.dots-loader {
    width: 60px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    20% {
        background-position: 0% 0%, 50% 50%,100% 50%
    }

    40% {
        background-position: 0% 100%, 50% 0%,100% 50%
    }

    60% {
        background-position: 0% 50%, 50% 100%,100% 0%
    }

    80% {
        background-position: 0% 50%, 50% 50%,100% 100%
    }
}





#loaderOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(1px);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000; /* above modals/toasts */
}

#loaderOverlayTransparent {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none; /* <-- key: don't block scroll or clicks */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
}

    #loaderOverlayTransparent.is-visible {
        opacity: 1;
        visibility: visible;
    }

/* Centered loader container */
.loader-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.6);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.body--loading {
    overflow: hidden;
}

#wrapper {
    background-color: black !important;
}