/**
 * DRV Teilnehmer Delete - Modal Styles
 * Version: 1.0.0
 */

/* Modal Overlay */
.drv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    /* display wird per inline-style gesteuert (none/flex) */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

/* Sichtbar nur wenn explizit geöffnet */
.drv-modal-overlay[style*="display: flex"],
.drv-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

/* Versteckt wenn geschlossen */
.drv-modal-overlay[style*="display: none"],
.drv-modal-overlay[style*="display:none"] {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.drv-modal-content,
.drv-modal {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 12px;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    color: #1f2937 !important;
}

.drv-modal-sm {
    max-width: 450px !important;
    height: auto !important;
}

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

/* Modal Header */
.drv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff !important;
}

.drv-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626 !important;
}

.drv-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.drv-modal-close:hover {
    color: #000;
}

/* Modal Body */
.drv-modal-body {
    padding: 1.5rem;
    color: #1f2937 !important;
    background: #ffffff !important;
    min-height: 0 !important;
    height: auto !important;
}

.drv-modal-body p {
    color: #374151 !important;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.drv-modal-body strong {
    color: #111827 !important;
    font-weight: 600;
}

/* Delete Warning */
.drv-delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.drv-warning-icon {
    font-size: 2rem;
    line-height: 1;
}

.drv-delete-warning strong {
    font-size: 1.1rem;
    color: #92400e;
}

/* Certificates Warning */
.drv-certificates-warning {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.drv-certificates-warning h4 {
    margin: 0 0 1rem 0;
    color: #1e40af;
    font-size: 1rem;
}

/* Certificates List */
.drv-certificates-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.drv-cert-item {
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 0.9rem;
}

.drv-cert-item strong {
    color: #1e40af;
}

/* Delete Option */
.drv-delete-option {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.drv-delete-option .drv-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.drv-delete-option input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Info Box */
.drv-info-box {
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.drv-info-box strong {
    color: #075985;
}

/* Modal Footer */
.drv-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb !important;
}

/* Delete Button Danger */
.drv-btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drv-btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.drv-btn-danger:active {
    transform: translateY(0);
}

/* Form Control */
.drv-form-control {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.drv-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
    .drv-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .drv-modal-header,
    .drv-modal-body,
    .drv-modal-footer {
        padding: 1rem;
    }
    
    .drv-delete-warning {
        flex-direction: column;
    }
    
    .drv-modal-footer {
        flex-direction: column-reverse;
    }
    
    .drv-modal-footer .drv-btn {
        width: 100%;
    }
}
