/**
 * File Uploader Styles
 * Modern drag-and-drop interface
 */

.file-drop-zone {
    border: 2px dashed #0d6efd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.file-drop-zone:hover {
    background-color: #e7f3ff;
    border-color: #0056b3;
}

.file-drop-zone.drag-over {
    background-color: #cfe2ff;
    border-color: #0056b3;
    border-style: solid;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 10px 0;
}

.drop-zone-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.btn-select-files {
    pointer-events: all;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-select-files:hover {
    background-color: #0056b3;
}

.btn-select-files i {
    margin-right: 5px;
}

/* File List Styles */
.file-list-container {
    margin-top: 20px;
}

.file-list-header {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-info i {
    font-size: 20px;
    color: #0d6efd;
}

.file-name {
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: #6c757d;
    margin-left: 5px;
}

.btn-remove-file {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-file:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.btn-remove-file i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-drop-zone {
        padding: 30px 15px;
    }

    .drop-zone-text {
        font-size: 14px;
    }

    .file-item {
        padding: 10px 12px;
    }

    .file-name {
        font-size: 14px;
    }
}

/* Animation for file addition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item {
    animation: slideIn 0.3s ease;
}

/* Helper styles for form layout */
.file-upload-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
}

.file-upload-info p {
    margin-bottom: 0 !important;
}

.uploader-label-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.uploader-label-row p {
    margin: 0 !important;
    font-weight: 500;
}