.dropzone-upload-container {
    --dz-primary: #2563eb;
    --dz-primary-hover: #1d4ed8;
    --dz-primary-bg: #eff6ff;
    --dz-border: #cbd5e1;
    --dz-border-hover: #94a3b8;
    --dz-bg: #f8fafc;
    --dz-bg-hover: #f1f5f9;
    --dz-text: #1e293b;
    --dz-text-muted: #64748b;
    --dz-danger: #ef4444;
    --dz-danger-bg: #fef2f2;
    --dz-danger-border: #fecaca;
    --dz-radius: 12px;
    --dz-radius-sm: 8px;

    width: 100%;
    margin-bottom: 1.25rem;
    font-family: inherit;
    box-sizing: border-box;
}

.dropzone-upload-container *,
.dropzone-upload-container *::before,
.dropzone-upload-container *::after {
    box-sizing: inherit;
}

.dropzone-hidden-input {
    display: none !important;
}

.dropzone-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.25rem 1.5rem;
    background-color: var(--dz-bg);
    border: 2px dashed var(--dz-border);
    border-radius: var(--dz-radius);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    user-select: none;
}

.dropzone-area:hover {
    border-color: var(--dz-primary);
    background-color: var(--dz-primary-bg);
}

.dropzone-area:focus-visible {
    border-color: var(--dz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.dropzone-area.is-dragover {
    border-color: var(--dz-primary);
    background-color: #e0f2fe;
    transform: scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.18);
}

.dropzone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--dz-primary);
    margin-bottom: 0.85rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dropzone-area:hover .dropzone-icon-wrapper,
.dropzone-area.is-dragover .dropzone-icon-wrapper {
    transform: translateY(-2px);
    background-color: #dbeafe;
    color: var(--dz-primary-hover);
}

.dropzone-icon {
    display: block;
}

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.dropzone-prompt-primary {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dz-text);
}

.dropzone-prompt-primary strong {
    font-weight: 600;
}

.dropzone-browse-link {
    color: var(--dz-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.dropzone-prompt-secondary {
    font-size: 0.825rem;
    color: var(--dz-text-muted);
}

.dropzone-info-types {
    font-size: 0.775rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    max-width: 480px;
    word-break: break-word;
}

.dropzone-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem 0.25rem 0.25rem;
    font-size: 0.825rem;
    color: var(--dz-text-muted);
    font-weight: 500;
}

.dropzone-file-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dropzone-clear-all {
    background: none;
    border: none;
    color: var(--dz-danger);
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.dropzone-clear-all:hover {
    background-color: var(--dz-danger-bg);
}

.dropzone-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.dropzone-file-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--dz-radius-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    animation: dropzone-fadeIn 0.25s ease-out;
}

.dropzone-file-item:hover {
    border-color: var(--dz-border-hover);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
}

@keyframes dropzone-fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropzone-file-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.dropzone-file-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
}

.badge-pdf {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-image {
    background-color: #e0e7ff;
    color: #4338ca;
}

.badge-doc {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-sheet {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-archive {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-text {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-generic {
    background-color: #e2e8f0;
    color: #475569;
}

.dropzone-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dropzone-file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dz-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.dropzone-file-meta {
    font-size: 0.75rem;
    color: var(--dz-text-muted);
    margin-top: 0.15rem;
}

.dropzone-file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background-color: transparent;
    color: var(--dz-text-muted);
    border-radius: 6px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.15s ease;
}

.dropzone-file-remove:hover {
    background-color: var(--dz-danger-bg);
    color: var(--dz-danger);
}

.dropzone-feedback-messages {
    margin-top: 0.75rem;
}

.dropzone-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: var(--dz-radius-sm);
    font-size: 0.825rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    animation: dropzone-fadeIn 0.2s ease-out;
}

.dropzone-alert.alert-error {
    background-color: var(--dz-danger-bg);
    border: 1px solid var(--dz-danger-border);
    color: #991b1b;
}

.dropzone-alert-icon {
    display: flex;
    align-items: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.dropzone-alert-content {
    flex: 1;
}

.dropzone-alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.65;
    transition: opacity 0.15s ease;
}

.dropzone-alert-close:hover {
    opacity: 1;
}

.dropzone-existing-file {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    background-color: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--dz-text);
}

.dropzone-existing-badge {
    background-color: #dbeafe;
    color: var(--dz-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
