/* css/pdf-rotate.css */

/* Upload Area Hover Effect */
#upload-area-pdf.drag-over {
    border-color: #3498db;
    /* primary color */
    background-color: rgba(52, 152, 219, 0.05);
}

/* Grid container for PDF page previews */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    /* gap-6 */
    padding: 1rem 0;
}

/* Container for a single page preview (canvas + controls) */
.page-container {
    position: relative;
    border: 1px solid #e2e8f0;
    /* gray-200 */
    border-radius: 0.5rem;
    /* rounded-lg */
    background-color: #f8fafc;
    /* gray-50 */
    padding: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* The canvas element where the PDF page is rendered */
.page-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    /* rounded-md */
    transition: transform 0.3s ease-in-out;
}

/* Page number label */
.page-info {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* medium */
    color: #4a5568;
    /* gray-700 */
    margin-top: 0.75rem;
}

/* Rotate button */
.rotate-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #3498db;
    /* primary */
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}

.rotate-btn:hover {
    background-color: #2980b9;
    /* darker primary */
    transform: scale(1.1);
}

/* Hide the default upload UI if previews are shown */
#upload-area-pdf.hidden {
    display: none;
}