/* Base Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* Form Styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Navbar Styles */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Layout Styles */
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* Beispielbilder Styling */
.example-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
    background-color: #f8f9fa;
}

    .example-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .example-thumb:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

        .example-thumb:hover img {
            transform: scale(1.05);
        }

/* Beispielbilder Styling */
.example-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: block;
    background-color: #f8f9fa;
    text-decoration: none;
}

    .example-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
        transition: transform 0.3s ease;
        border-radius: 0.25rem 0.25rem 0 0;
    }

    .example-thumb:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

        .example-thumb:hover img {
            transform: scale(1.05);
        }

/* Label unter dem Bild */
.example-label {
    display: block;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.25rem;
    border-radius: 0 0 0.25rem 0.25rem;
    transition: all 0.3s ease;
}

.example-thumb:hover .example-label {
    background-color: #007bff;
    color: white;
}

/* Download-Icon beim Hover */
.example-thumb::after {
    content: '\f019'; /* Font Awesome Download Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.example-thumb:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Overlay beim Hover */
.example-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30px; /* Platz für Label */
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.25rem 0.25rem 0 0;
    z-index: 1;
}

.example-thumb:hover::before {
    opacity: 1;
}

/* Kompaktere Darstellung in der schmalen Sidebar */
@media (max-width: 1200px) {
    .example-thumb img {
        aspect-ratio: 1/1; /* Quadratisch auf kleineren Bildschirmen */
    }

    .example-label {
        font-size: 0.7rem;
        padding: 0.2rem;
    }
}

/* Upload Form während Verarbeitung */
.upload-processing #uploadForm .form-control,
.upload-processing #uploadForm .form-label {
    opacity: 0.5;
    pointer-events: none;
}

/* Submit Button während Upload */
#submitButton:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Spinner Animation verstärken */
#submitButton .spinner-border {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Optional: Progress-Bar Style für Button */
.upload-processing #submitButton {
    position: relative;
    overflow: hidden;
}

    .upload-processing #submitButton::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: uploadProgress 2s linear infinite;
    }

@keyframes uploadProgress {
    to {
        left: 100%;
    }
}

#editModal {
    z-index: 1060 !important;
}

    #editModal .modal-backdrop {
        z-index: 1055 !important;
    }