/* Drag & Drop, Progress Indicator, and Live Validation Styles */

/* Drag & Drop styles removed */

/* ========== LIVE VALIDATION ========== */
.field-validation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    min-height: 24px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.validation-icon {
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.field-validation.valid .validation-icon {
    color: #10b981;
    animation: checkmark 0.5s ease;
}

.field-validation.invalid .validation-icon {
    color: #ef4444;
    animation: shake 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.validation-message {
    color: #ef4444;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Valid and Invalid Input States */
.admin-form input.valid,
.admin-form select.valid,
.admin-form textarea.valid {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.admin-form input.invalid,
.admin-form select.invalid,
.admin-form textarea.invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    animation: errorPulse 0.5s ease;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* File name display */
.file-name {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    padding: 8px 12px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name::before {
    content: '📎';
    font-size: 1rem;
}

/* Enhanced image input group for drag & drop */
.image-input-group.has-file {
    border: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

/* Success animation */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.form-success {
    animation: successPulse 0.6s ease;
}

.field-tooltip:hover::before {
    background: #7fb8b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .drag-drop-zone {
        padding: 2rem 1.5rem;
    }

    .drag-drop-icon {
        font-size: 2.5rem;
    }
}