/* Dropzone Container */
.dropzone-container {
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-family: 'Poppins', sans-serif;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #0066FF !important;
    background: transparent !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-align: center !important;
    font-family: 'Poppins', sans-serif !important;
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 180px !important;
}

.dropzone:hover, .dropzone.dz-drag-hover {
    border-color: #0055CC !important;
    background: #F8FAFC !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.1) !important;
}

/* Default Message — ПОЛНОСТЬЮ ПО ЦЕНТРУ */
.dz-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
}

.dz-message > * {
    pointer-events: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    color: #000000 !important;
}

.dz-message .upload-logo {
    width: 3.5rem !important;
    height: 3.5rem !important;
    margin-bottom: 0.75rem !important;
    object-fit: contain !important;
}

.dz-message p {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 0 0 0.25rem !important;
    line-height: 1.4 !important;
}

.dz-message span {
    font-size: 0.875rem !important;
    color: #000000 !important;
    margin-top: 0.25rem !important;
    display: block !important;
    line-height: 1.4 !important;
}

.dz-message span:last-child {
    margin-top: 0.5rem !important;
}

/* Убираем всё лишнее */
.dz-message small,
.dz-default,
.dz-fallback {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
}

/* Preview */
.dz-preview {
    position: relative;
    display: inline-block;
    margin: 0.75rem;
    width: 110px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.dz-image img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dz-details {
    font-size: 0.75rem;
    color: #4B5563;
    margin-top: 0.4rem;
    word-break: break-all;
}

.dz-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 102, 255, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
}

.dz-upload {
    display: block;
    height: 100%;
    background: #0066FF;
    transition: width 0.3s ease;
}

.dz-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #EF4444;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    line-height: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dz-preview:hover .dz-remove {
    opacity: 1;
}

/* Options */
.upload-options {
    max-width: 600px;
    margin: 0.75rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.password-container, .terms-container {
    margin-top: 0;
    width: 100%;
}

.password-container label, .terms-container label {
    display: flex;
    align-items: center;
    color: #1F2937;
    font-size: 0.875rem;
}

.password-container input[type="checkbox"], .terms-container input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #0066FF;
}

.password-container input[type="password"] {
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    width: 100%;
    font-size: 0.875rem;
    background: #FFFFFF;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.password-container input[type="password"].visible {
    opacity: 1;
    max-height: 2.5rem;
    margin-top: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    display: none;
    opacity: 0;
    width: 0%;
    background: linear-gradient(90deg, #00D4B4 0%, #0066FF 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease, opacity 0.3s ease;
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.progress-bar.show {
    display: block;
    opacity: 1;
}

/* Messages */
.error, .success, .file-info {
    max-width: 600px;
    margin: 0.5rem auto;
    text-align: center;
    display: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.error {
    background: #FEE2E2;
    color: #EF4444;
}

.success {
    background: #D1FAE5;
    color: #059669;
}

.file-info {
    color: #1F2937;
    background: #F3F4F6;
}

/* Result Panel */
.upload-result-panel {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    max-width: 90vw;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.panel-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* Social Icons Placeholder */
.social-placeholder {
    width: 32px;
    height: 32px;
    background: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .upload-result-panel {
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }

    .dropzone-container {
        margin: 1.5rem auto;
        padding: 1.25rem;
    }

    .dropzone {
        padding: 1.25rem;
        min-height: 160px;
    }

    .dz-message p {
        font-size: 1.125rem;
    }

    .dz-message .upload-logo {
        width: 3rem;
        height: 3rem;
    }
}