/* Shared File Upload Styles */

.file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-upload:hover {
    border-color: #e11f12;
    background-color: #fff5f5;
    transform: translateY(-2px);
}

.file-upload.drag-over {
    border-color: #e11f12;
    background-color: #fff5f5;
    box-shadow: 0 0 0 3px rgba(225, 31, 18, 0.1);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-upload-text i {
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.file-upload:hover .file-upload-text i {
    color: #e11f12;
}

.file-upload-text p {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
}

.file-upload-text small {
    color: #718096;
    font-size: 0.875rem;
}

.file-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.file-selected i {
    font-size: 2rem;
    color: #10b981;
}

.file-selected p.file-name {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
    word-break: break-all;
    max-width: 100%;
}

.file-selected small {
    color: #718096;
    font-size: 0.875rem;
}

.file-info-text {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}


/* Toast notification styles */

.file-toast-notification {
    z-index: 1060;
}

.file-toast-notification .toast {
    min-width: 350px;
    max-width: 400px;
}

.file-toast-notification .toast-header {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.file-toast-notification .toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.file-toast-notification .toast-body {
    color: white;
}

.file-toast-notification .toast-body strong {
    display: block;
    margin-bottom: 0.25rem;
}


/* Global form toast notification styles */

.file-upload-error-toast {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
}

.file-upload-success-toast {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
}

.file-upload-warning-toast {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
}

.file-upload-info-toast {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .file-toast-notification .toast {
        min-width: 300px;
        max-width: calc(100vw - 2rem);
    }
    .file-upload {
        padding: 20px;
        min-height: 120px;
    }
    .file-upload-text i {
        font-size: 2rem;
    }
    .file-upload-text p {
        font-size: 0.9rem;
    }
}