/* Modern File Upload Component */
.modern-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modern-file-upload.compact {
    gap: 4px;
}

.upload-control-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modern-file-upload.compact .upload-control-wrapper {
    gap: 4px;
}

/* Label stil modern */
.modern-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    color: white;
    white-space: nowrap;
}

.modern-file-upload.compact .modern-upload-label {
    padding: 4px 8px;
    font-size: 12px;
    gap: 4px;
}

.modern-upload-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modern-upload-label:active {
    transform: translateY(0);
}

.modern-upload-label i {
    font-size: 14px;
}

.modern-file-upload.compact .modern-upload-label i {
    font-size: 12px;
}

/* Culori */
.upload-indigo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.upload-indigo:hover {
    background: linear-gradient(135deg, #5568d3 0%, #5e3a82 100%);
}

.upload-darkmagenta {
    background: linear-gradient(135deg, #8B008B 0%, #4B0082 100%);
}

.upload-darkmagenta:hover {
    background: linear-gradient(135deg, #700070 0%, #3a0066 100%);
}

.upload-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.upload-success:hover {
    background: linear-gradient(135deg, #0e7d72 0%, #2dd169 100%);
}

.upload-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.upload-primary:hover {
    background: linear-gradient(135deg, #3a8dd6 0%, #00c9d6 100%);
}

.upload-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.upload-danger:hover {
    background: linear-gradient(135deg, #d877df 0%, #d94356 100%);
}

/* Lista fișiere */
.upload-files-list {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    max-width: 300px;
}

.modern-file-upload.compact .upload-files-list {
    max-width: 200px;
}

.upload-file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.modern-file-upload.compact .upload-file-item {
    padding: 3px 6px;
    font-size: 11px;
    gap: 4px;
}

.upload-file-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.upload-file-item i {
    color: #6c757d;
    font-size: 11px;
}

.upload-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* Butoane cancel și upload */
.btn-upload-cancel,
.btn-upload-submit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.modern-file-upload.compact .btn-upload-cancel,
.modern-file-upload.compact .btn-upload-submit {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-upload-cancel {
    background: #dc3545;
    color: white;
}

.btn-upload-cancel:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-upload-submit {
    background: #28a745;
    color: white;
}

.btn-upload-submit:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-upload-cancel i,
.btn-upload-submit i {
    font-size: 11px;
}

/* Responsive pentru tabele */
@media (max-width: 768px) {
    .modern-file-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upload-control-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .upload-files-list {
        max-width: 100%;
        width: 100%;
    }
}

/* Animații */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-file-item {
    animation: fadeIn 0.2s ease;
}

/* Focus styles pentru accesibilitate */
.modern-file-input:focus + .modern-upload-label {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}
