/**
 * Drag and Drop Upload Field Styling - Küster Corporate Design
 */

.drag-drop-upload-container {
    margin-bottom: 1.5rem;
}

.drag-drop-area {
    border: 1px dashed #000;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f2f5f8;
    position: relative;
}

.drag-drop-area:hover,
.drag-drop-area.drag-over {
    border-color: #25609c;
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.drag-drop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.drag-drop-message i {
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.drag-drop-area:hover .drag-drop-message i,
.drag-drop-area.drag-over .drag-drop-message i {
    color: #25609c;
}

.drag-drop-message p {
    margin: 0 0 0.5rem 0;
}

.drag-drop-message .browse-files {
    color: #25609c;
    text-decoration: underline;
    cursor: pointer;
}

.drag-drop-message .browse-files:hover {
    color: #1d4ed8;
}

.drag-drop-message .hint {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.file-preview-container {
    margin-top: 1.5rem;
}

.file-preview-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #f2f5f8;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
}

.file-preview-item:hover {
    border-color: #d1d5db;
}

.file-preview-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-preview-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #6b7280;
    font-size: 1.25rem;
}

.file-preview-details {
    flex: 1;
}

.file-preview-filename {
    color: #111827;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.file-preview-size {
    color: #6b7280;
    font-size: 0.875rem;
}

.file-preview-progress {
    height: 6px;
    width: 100%;
    background-color: #f3f4f6;
    margin-top: 0.5rem;
    overflow: hidden;
}

.file-preview-progress-bar {
    height: 100%;
    background-color: #8bc200;
    transition: width 0.3s ease;
}

.file-preview-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.file-preview-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    padding: 0;
}

.file-preview-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.error-messages {
    margin-top: 1rem;
}

.error-messages .error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
