/* Export Dialog Styles - Based on PatientImages */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.dialog-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.dialog-close-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.dialog-close-btn:hover {
    color: #333;
}

.dialog-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Export Dialog Specific */
.export-dialog {
    max-width: 1200px;
    background: #2d2d2d;
}

.export-dialog .dialog-header {
    border-bottom-color: #444;
}

.export-dialog .dialog-header h2 {
    color: #fff;
}

.export-dialog .dialog-close-btn {
    color: #aaa;
}

.export-dialog .dialog-close-btn:hover {
    color: #fff;
}

.export-images-preview {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow-x: auto;
}

.export-image-item {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: transform 0.2s;
}

.export-image-item:hover {
    transform: scale(1.05);
}

.export-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.export-format-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.export-format-btn {
    padding: 40px 30px;
    border: 2px solid #444;
    border-radius: 12px;
    background: #2d2d2d;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.export-format-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #666;
}

.export-format-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.export-format-btn i {
    font-size: 48px;
}

.export-format-btn span {
    font-size: 16px;
    font-weight: 600;
}

/* All format buttons use the same styling */

.export-progress {
    margin-top: 20px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
    text-align: center;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
}

.export-progress i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .export-dialog {
        max-width: 900px;
    }

    .export-image-item {
        width: 120px;
        height: 120px;
    }

    .export-images-preview {
        gap: 20px;
        padding: 30px;
    }

    .export-format-btn {
        padding: 30px 20px;
    }

    .export-format-btn i {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .dialog-container {
        width: 95%;
        max-width: none;
        max-height: 90vh;
    }

    .export-dialog {
        max-width: none;
    }

    .dialog-header {
        padding: 16px 20px;
    }

    .dialog-header h2 {
        font-size: 18px;
    }

    .dialog-body {
        padding: 20px;
    }

    .export-image-item {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .export-images-preview {
        gap: 15px;
        padding: 20px;
    }

    .export-format-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .export-format-btn {
        padding: 25px;
        flex-direction: row;
        justify-content: center;
    }

    .export-format-btn i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .export-image-item {
        width: 100px;
        height: 100px;
    }

    .export-images-preview {
        padding: 15px;
        gap: 10px;
    }

    .dialog-header h2 {
        font-size: 16px;
    }

    .export-format-btn {
        padding: 20px;
    }

    .export-format-btn i {
        font-size: 28px;
    }
}
