/* Modal Overlay (Hintergrund-Verdunkelung) */
.crasy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 40, 0.6); /* Sanftes, warmes Dunkelgrau-Blau */
    backdrop-filter: blur(4px); /* Schöner Unschärfe-Effekt für den Fokus */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Wenn das Modal aktiv ist */
.crasy-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Die Modal-Karte */
.crasy-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    margin: 20px;
    border-radius: 24px; /* Schön weich und stabil */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Federnder Effekt */
}

.crasy-modal-overlay.is-active .crasy-modal-card {
    transform: translateY(0);
}

/* Header */
.crasy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
}

.crasy-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2D3748;
    font-weight: 600;
}

.crasy-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #A0AEC0;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.crasy-modal-close:hover {
    color: #4A5568;
}

/* Body */
.crasy-modal-body {
    padding: 0 24px 24px 24px;
}

/* Drag & Drop Zone */
.crasy-dropzone {
    border: 2px dashed #E2E8F0;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #F7FAFC;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.crasy-dropzone:hover, .crasy-dropzone.is-dragover {
    background-color: #EDF2F7;
    border-color: #CBD5E0;
}

.crasy-dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.crasy-dropzone-text {
    font-size: 0.95rem;
    color: #4A5568;
    margin: 0 0 6px 0;
}

.crasy-highlight {
    color: #4A5568;
    font-weight: 600;
    text-decoration: underline;
}

.crasy-dropzone-sub {
    font-size: 0.8rem;
    color: #A0AEC0;
    margin: 0;
}

/* Vorschau des Avatars */
.crasy-avatar-preview-container {
    margin-top: 20px;
    text-align: center;
}

.crasy-avatar-preview-container p {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 10px;
}

.crasy-avatar-preview-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Kreisrund für den echten Avatar-Look */
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid #EDF2F7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.crasy-avatar-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer & Buttons */
.crasy-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.crasy-btn {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px; /* Soft, nicht spitz */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crasy-btn-secondary {
    background-color: #EDF2F7;
    color: #4A5568;
}

.crasy-btn-secondary:hover {
    background-color: #E2E8F0;
}

.crasy-btn-primary {
    background-color: #2D3748; /* Passend zum dunklen Akzent deines Dashboards */
    color: #ffffff;
}

.crasy-btn-primary:hover:not(:disabled) {
    background-color: #1A202C;
}

.crasy-btn-primary:disabled {
    background-color: #E2E8F0;
    color: #A0AEC0;
    cursor: not-allowed;
}