/* Modernes Upload-Feld Design - SINGLE FILE */
.modern-upload-wrapper {
    position: relative;
    margin: 20px 0;
}

.modern-upload-field {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    border: 2px dashed #e1e8ed;
    border-radius: 12px;
    background: #fafbfc;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-upload-field:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.1);
}

.modern-upload-field.dragover {
    border-color: #007cba;
    background: #e6f7ff;
    border-style: solid;
    box-shadow: 0 6px 30px rgba(0, 124, 186, 0.15);
}

.modern-upload-field.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

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

.upload-content {
    position: relative;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-preview {
    pointer-events: auto;
    z-index: 15;
    margin-top: 20px;
    width: 100%;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23007cba"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"/></svg>') center/contain no-repeat;
    transition: all 0.3s ease;
}

.modern-upload-field:hover .upload-icon {
    opacity: 1;
    transform: scale(1.1);
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.upload-browse {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.upload-browse:hover {
    border-bottom-color: #007cba;
}

.upload-hint {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.4;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.file-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #475569;
    text-transform: uppercase;
}

.file-icon.pdf { background: #fef2f2; color: #dc2626; }
.file-icon.doc, .file-icon.docx { background: #eff6ff; color: #2563eb; }
.file-icon.txt { background: #f8fafc; color: #475569; }
.file-icon.jpg, .file-icon.jpeg, .file-icon.png { background: #f0fdf4; color: #16a34a; }

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: #64748b;
}

.file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    z-index: 25;
}

.file-remove:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.upload-status {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.upload-status.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.upload-status.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .modern-upload-field { padding: 25px 15px; min-height: 100px; }
    .upload-text { font-size: 14px; }
    .upload-hint { font-size: 12px; }
}
