:root {
    --primary-color: #0d6efd;
    --error-color: #dc3545;
}
.upload-area {
    width: 100%;
    height: 200px;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}
.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}
.preview-container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.preview-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
}
.preview-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: repeating-conic-gradient(#f8f9fa 0% 25%, #e9ecef 0% 50%) 50% / 20px 20px;
}
.preview-footer {
    padding: 12px;
    border-top: 1px solid #dee2e6;
}
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #495057;
}
.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
