.dropzone {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-muted);
    overflow: hidden;
}

.dropzone:hover {
    border-color: var(--d8-green-300);
    background: var(--d8-green-50);
}

.dropzone.dragover {
    border-color: var(--d8-green-500);
    background: var(--d8-green-50);
    box-shadow: inset 0 0 0 2px rgba(46, 125, 50, 0.08);
    transform: scale(1.01);
}

.dropzone.has-files {
    border-style: solid;
    border-color: var(--d8-green-200);
    background: var(--bg-card);
    padding: 16px;
}

.dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dropzone-content {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dropzone.has-files .dropzone-content {
    display: none;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.25s ease;
}

.dropzone:hover .dropzone-icon,
.dropzone.dragover .dropzone-icon {
    background: var(--d8-green-50);
    border-color: var(--d8-green-200);
}

.dropzone-icon svg {
    width: 24px;
    height: 24px;
    color: var(--d8-green-500);
}

.dropzone.dragover .dropzone-icon svg {
    color: var(--d8-green-600);
}

.dropzone-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dropzone-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.dropzone-formats {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 4px;
}

.dropzone-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    pointer-events: none;
}

.dropzone-preview:empty {
    display: none;
}

.dropzone-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-body);
    box-shadow: var(--shadow-sm);
}

.dropzone-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone-thumb-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.65);
    font-size: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropzone-thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 3;
    transition: background 0.2s ease;
}

.dropzone-thumb-remove:hover {
    background: var(--red);
}

.dropzone-thumb-remove svg {
    width: 10px;
    height: 10px;
}

.dropzone-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0 0;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: var(--d8-green-600);
    pointer-events: none;
}

.dropzone-sm {
    padding: 20px 16px;
}

.dropzone-sm .dropzone-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.dropzone-sm .dropzone-icon svg {
    width: 20px;
    height: 20px;
}

.dropzone-sm .dropzone-label {
    font-size: 13px;
}

.dropzone-sm .dropzone-hint {
    font-size: 12px;
}

.dropzone-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: none;
}

.dropzone-logo-preview img {
    max-height: 70px;
    max-width: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.dropzone-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--bg-card);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 3;
    transition: all 0.2s ease;
}

.dropzone-remove:hover {
    background: var(--red-dark);
    transform: scale(1.1);
}

.dropzone-remove svg {
    width: 12px;
    height: 12px;
}

.dropzone.has-logo .dropzone-content {
    display: none;
}

.dropzone.has-logo {
    border-style: solid;
    border-color: var(--d8-green-200);
    background: var(--bg-card);
    padding: 16px;
}

@media (max-width: 480px) {
    .dropzone {
        padding: 24px 16px;
    }

    .dropzone-thumb {
        width: 64px;
        height: 64px;
    }

    .dropzone-sm {
        padding: 16px 12px;
    }
}
