@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.2jmos03fny.bundle.scp.css';

/* /SharedComponents/Components/ExamTimer.razor.rz.scp.css */
/* Exam Timer Styles */
.exam-timer-container[b-0f4dujjd2l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exam-timer[b-0f4dujjd2l] {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: monospace;
    color: #343a40;
    margin: 10px 0;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    text-align: center;
}

.exam-timer.warning[b-0f4dujjd2l] {
    color: #fd7e14;
    background-color: #fff3cd;
    animation: pulse-b-0f4dujjd2l 1s infinite;
}

.exam-timer.danger[b-0f4dujjd2l] {
    color: #dc3545;
    background-color: #f8d7da;
    animation: pulse-b-0f4dujjd2l 0.5s infinite;
}

.exam-timer.error[b-0f4dujjd2l] {
    color: #721c24;
    background-color: #f8d7da;
}

.exam-warning[b-0f4dujjd2l] {
    display: none;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
}

.exam-warning.active[b-0f4dujjd2l] {
    display: block;
    animation: slideIn-b-0f4dujjd2l 0.3s ease-out;
}

.exam-warning.error[b-0f4dujjd2l] {
    background-color: #f8d7da;
    color: #721c24;
}

.exam-timer-label[b-0f4dujjd2l] {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 5px;
}

@keyframes pulse-b-0f4dujjd2l {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn-b-0f4dujjd2l {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .exam-timer[b-0f4dujjd2l] {
        font-size: 2rem;
        min-width: 120px;
    }

    .exam-timer-label[b-0f4dujjd2l] {
        font-size: 0.9rem;
    }
}
/* /SharedComponents/Components/PdfImageCropper.razor.rz.scp.css */
.pdf-image-cropper-container[b-pxl85t54v0] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.upload-section[b-pxl85t54v0] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-indicator[b-pxl85t54v0] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.pdf-page-container[b-pxl85t54v0] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-selector[b-pxl85t54v0] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.image-container[b-pxl85t54v0] {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #ffffff;
    margin: 0 auto;
    max-height: 70vh; /* Limit height to 70% of viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img[b-pxl85t54v0] {
    max-width: 100%;
    max-height: 70vh; /* Limit height to 70% of viewport height */
    object-fit: contain;
    display: block;
}

.crop-overlay[b-pxl85t54v0] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0);
    z-index: 5;
    pointer-events: none;
}

.crop-rectangle[b-pxl85t54v0] {
    position: absolute;
    border: 2px dashed #009ef7;
    background-color: transparent;
    cursor: move;
    z-index: 10; /* Ensure crop rectangle is above the image */
    /* Cut out the rectangle from the overlay and add a subtle inner glow */
    box-shadow: inset 0 0 10px rgba(0, 158, 247, 0.3), 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.resize-handle[b-pxl85t54v0] {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 2px solid #009ef7;
    z-index: 11; /* Ensure handles are above the crop rectangle */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    pointer-events: all; /* Ensure events are captured */
}

.top-left[b-pxl85t54v0] {
    top: -8px;
    left: -8px;
    cursor: nw-resize;
}

.top-right[b-pxl85t54v0] {
    top: -8px;
    right: -8px;
    cursor: ne-resize;
}

.bottom-left[b-pxl85t54v0] {
    bottom: -8px;
    left: -8px;
    cursor: sw-resize;
}

.bottom-right[b-pxl85t54v0] {
    bottom: -8px;
    right: -8px;
    cursor: se-resize;
}

.action-buttons[b-pxl85t54v0] {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cropped-result[b-pxl85t54v0] {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 100%;
    overflow: hidden;
}

.cropped-result h3[b-pxl85t54v0] {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.cropped-result img[b-pxl85t54v0] {
    max-width: 100%;
    max-height: 50vh; /* Limit height of cropped result */
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Add responsive layout for smaller screens */
@media (max-width: 768px) {
    .pdf-image-cropper-container[b-pxl85t54v0] {
        width: 100%;
        padding: 0 10px;
    }
    
    .image-container[b-pxl85t54v0], .image-container img[b-pxl85t54v0] {
        max-height: 60vh;
    }
}
