/* Основные стили */
.ddu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ddu-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.ddu-upload-area:hover {
    border-color: #999;
}

.ddu-upload-area.dz-drag-hover {
    border-color: #4CAF50;
    background: #f0fff0;
}

.dz-message {
    color: #555;
}

.ddu-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.ddu-upload-info {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* Прогресс загрузки */
.ddu-progress {
    margin-bottom: 20px;
}

.ddu-file-progress {
    margin-bottom: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.ddu-file-name {
    margin-bottom: 8px;
    font-weight: 600;
    word-break: break-all;
    color: #333;
}

.ddu-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.ddu-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.ddu-progress-percent {
    text-align: right;
    font-size: 12px;
    color: #666;
}

.ddu-file-error {
    color: #f44336;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.ddu-file-progress.ddu-success {
    background: #e8f5e9;
    border-left: 3px solid #4CAF50;
}

.ddu-file-progress.ddu-error {
    background: #ffebee;
    border-left: 3px solid #f44336;
}

/* Кнопки */
.ddu-actions {
    text-align: center;
    margin-bottom: 20px;
}

.ddu-button {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ddu-button:hover {
    background: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ddu-button:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Результаты */
.ddu-results {
    margin-top: 30px;
}

.ddu-links {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.ddu-links h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.ddu-links-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ddu-links-table th {
    background: #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.ddu-links-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.ddu-link-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: monospace;
    font-size: 14px;
}

.ddu-copy-link,
.ddu-view-link {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 8px;
    text-decoration: none;
    display: inline-block;
}

.ddu-copy-link {
    background: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.ddu-copy-link:hover {
    background: #0b7dda;
}

.ddu-view-link {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.ddu-view-link:hover {
    background: #e0e0e0;
}

.ddu-new-upload-container {
    text-align: center;
    margin-top: 20px;
}

.ddu-new-upload {
    background: #ff9800;
}

.ddu-new-upload:hover {
    background: #f57c00;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ddu-container {
        padding: 15px;
    }
    
    .ddu-upload-area {
        padding: 25px 15px;
    }
    
    .ddu-links-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .ddu-links-table td {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .ddu-upload-area {
        padding: 20px 10px;
    }
    
    .ddu-icon {
        font-size: 36px;
    }
    
    .ddu-upload-info {
        font-size: 13px;
    }
    
    .ddu-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .ddu-links {
        padding: 15px;
    }
    
    .ddu-links h3 {
        font-size: 18px;
    }
}

.ddu-links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.ddu-links-table tr {
    border-bottom: 1px solid #eee;
}

.ddu-links-table td {
    padding: 10px 5px;
    vertical-align: middle;
}

.ddu-file-link-cell {
    width: 40%;
}

.ddu-file-url-cell {
    width: 60%;
    display: flex;
    align-items: center;
}

.ddu-link-input {
    flex-grow: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: monospace;
    font-size: 14px;
}

.ddu-copy-link {
    padding: 6px 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.ddu-copy-link:hover {
    background: #0b7dda;
}

.ddu-file-size {
    color: #777;
    font-size: 12px;
    margin-left: 8px;
}