/* ============================================
   public/assets/css/modal.css
   Styling für das zentrale Modal-System
   ============================================ */

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: appModalFadeIn 0.2s ease;
}

.app-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    animation: appModalSlideUp 0.25s ease;
    overflow: hidden;
}

/* Header */
.app-modal-header {
    padding: 20px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.app-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    flex: 1;
}

.app-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.app-modal-close:hover {
    background: #f1f3f5;
    color: #495057;
}

/* Body */
.app-modal-body {
    padding: 24px;
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
}

.app-modal-body p {
    margin: 0;
    white-space: pre-line;
}

.app-modal-input {
    width: 100%;
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.app-modal-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Footer */
.app-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Animationen */
@keyframes appModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes appModalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .app-modal {
        padding: 16px;
    }

    .app-modal-content {
        width: 100%;
    }

    .app-modal-footer {
        flex-direction: column-reverse;
    }

    .app-modal-footer .btn {
        width: 100%;
    }
}