

/* Общие стили для всех попапов */ 
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: var(--modal-bg);
    padding: 40px;
    border-radius: 20px;
    width: 96%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: popupAppear 0.3s ease-out;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--modal-border);
}


/* Специфические стили для каждого попапа */
.file-upload-area {
    border: 3px dashed var(--modal-border);
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.file-upload-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100px;
}

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

.remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-list {
    margin-bottom: 30px;
}

.album-item {
    display: flex;
    align-items: center;
    padding: 18px;
    background: #fafbfc;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    cursor: move;
    transition: all 0.3s;
    user-select: none;
}

.album-item:hover {
    background: #f0f7ff;
    border-color: #3498db;
}

.album-item.dragging {
    opacity: 0.5;
    border: 2px dashed #3498db;
}

.album-item.drag-over {
    border-top: 3px solid #2ecc71;
}

.drag-handle {
    font-size: 20px;
    color: #95a5a6;
    margin-right: 15px;
    cursor: grab;
    padding: 8px;
    border-radius: 6px;
}

.drag-handle:active {
    cursor: grabbing;
}

.album-name {
    font-weight: 500;
    color: #2c3e50;
    margin-right: 15px;
}

.album-photo-count {
    background: #2c3e50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.album-position {
    margin-left: auto;
    color: #7f8c8d;
    font-weight: 500;
}

.privacy-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.privacy-option {
    flex: 1;
    text-align: center;
    padding: 20px 10px;
    border: 2px solid #e8ebf0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.privacy-option:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.privacy-option.active {
    border-color: #2ecc71;
    background: #f0fff4;
}

.privacy-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .privacy-options {
        flex-direction: column;
    }
}




