        /* Profile icon styling */
        .profile-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 1px solid #dee2e6;
        }

        .profile-icon:hover {
            background-color: #e9ecef;
        }
        .loginForm, .registerForm {
            width: 30%;
            margin: auto;
        }
        

        @media (max-width: 768px) {
            /* Adjustments for smaller screens */
            .navbar-brand {
                font-size: 1rem;
            }
            .profile-icon {
                width: 35px;
                height: 35px;
            }
            .footer p {
                text-align: center;
            }
            .loginForm, .registerForm   {
                width: 80%;
            }
        }
                /* Form width adjustments for responsiveness */
        /* Modal Styles */
        .hint-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hint-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh; /* Limit height to 90% of viewport height */
    display: flex;
    flex-direction: column;
}

.hint-modal-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint-modal-body {
    padding: 15px;
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.hint-close {
    cursor: pointer;
    font-size: 24px;
}

.hidden {
    display: none;
}

.show {
    display: flex;
}

#messageDiv {
    position: fixed;
    top: 20px; /* Adjust the top distance as needed */
    left: 50%;
    transform: translateX(-50%); /* Centers the div horizontally */
    z-index: 1050;
    width: auto; /* Width will adjust to the message length */
    max-width: 90%; /* Prevents it from getting too wide on large screens */
    opacity: 0.95; /* Sets the opacity */
    border-radius: 10px; /* Adds rounded corners */
}
.proof-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proof-group .form-control {
    flex-grow: 1;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    height: calc(0.75em + 0.5rem + 2px);
}

.proof-group .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.proof-group a {
    font-size: 0.75rem;
}
.custom-file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.custom-file-upload .file-label {
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 150px;
    display: inline-block;
    color: var(--bs-body-color);
}
#printableReport {
    /* Set dimensions for A4 portrait orientation */
    width: 210mm; 
    min-height: 297mm;
    
    /* Add padding to simulate margins inside the div */
    padding: 10mm; 
    
    /* Ensure padding and border are included in the element's total width and height */
    box-sizing: border-box; 
    
    /* Optional: Hide this div when printing from the browser's native print function
       to avoid double content, but html2pdf handles this fine. */
    /* @media print {
        display: none;
    } */
}

/* Optional: Additional styles for a clean PDF */
#printableReport h1, #printableReport h2, #printableReport p {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

#printableReport img {
    max-width: 100%; /* Ensures images do not overflow the container */
    height: auto;
}

/* Use a print media query to fine-tune styles for PDF generation */
@media print {
/* Hide the button */
            #downloadPdfBtn {
                display: none;
            }

            /* Mask all content by default */
            body * {
                visibility: hidden;
            }
            
            /* Make the printableReport div and its children visible */
            #printableReport, #printableReport * {
                visibility: visible;
            }

            /* Adjust the position of the visible div */
            #printableReport {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
            }
}   