body {
    min-height: 100vh;
}

.card {
    overflow: hidden;
}

textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

.text-box {
    white-space: pre-wrap;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    max-height: 500px;
    overflow: auto;
    border: 1px solid #e9ecef;
}


.file-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-card:hover {
    background: #eef4ff !important;
    border-color: #86b7fe !important;
    transform: translateY(-1px);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.file-thumb-link {
    text-decoration: none;
    color: inherit;
}

.file-thumb-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.file-thumb-card:hover {
    transform: translateY(-2px);
    border-color: #86b7fe;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.12);
}

.image-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    background: #dee2e6;
}

.file-thumb-caption {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 12px;
    line-height: 1.3;
    word-break: break-word;
}

.pdf-thumb-card {
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 18px;
}

.pdf-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.pdf-icon {
    color: #dc3545;
}


.epaper-card {
    border: 1px solid #edf1f5;
}

.epaper-form-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) minmax(140px, 0.8fr) minmax(220px, 1fr);
    gap: 18px;
    align-items: end;
}

.epaper-field,
.epaper-action {
    min-width: 0;
}

.epaper-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #1f2937;
}

.epaper-length-field input {
    text-align: left;
}


.epaper-status-box {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.epaper-status-processing {
    background: #fff8e6;
    border-color: #ffe08a;
    color: #8a6700;
}

.epaper-status-success {
    background: #ecfdf3;
    border-color: #a6f4c5;
    color: #05603a;
}

.epaper-status-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b42318;
}

#createEpaperBtn:disabled {
    opacity: 1;
    filter: saturate(0.9);
}

@media (max-width: 991.98px) {
    .epaper-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .epaper-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .epaper-form-grid {
        grid-template-columns: 1fr;
    }

    .epaper-action {
        grid-column: auto;
    }

    .epaper-submit-btn {
        white-space: normal;
    }
}


.epaper-submit-btn:disabled {
    background: #9bbcf7;
    border-color: #9bbcf7;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
}


/* Epaper Bereich */

.epaper-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.epaper-card p {
    font-size: 0.9rem;
    color: #6c757d;
}

.epaper-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Eingabefelder */

.epaper-card .form-control {
    font-size: 0.9rem;
    padding: 8px 10px;
    height: 40px;
}

/* Button */

.epaper-submit-btn {
    font-size: 0.95rem;
    font-weight: 600;
    height: 40px;
    border-radius: 10px;
    padding: 0 16px;
}

/* Badge */

.epaper-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
}

/* Statusbox */

.epaper-status-box {
    font-size: 0.85rem;
}

/* Abstand innerhalb der Card */

.epaper-card .card-body {
    padding: 20px 22px;
}
