/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%; /* Reduce width */
    max-height: 90%;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal.show {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.file-preview {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-top: 10px;
}

#identity-loader {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    color: #007bff;
}

.modal-results {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

#cameraModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 99999;
}

#cameraModal video {
    width: 100%;
    height: auto;
    border: 2px solid #007cba;
    margin-bottom: 10px;
}

#captureButton, #closeCameraModal {
    display: inline-block;
    margin: 5px 10px;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#captureButton:hover, #closeCameraModal:hover {
    background: #005a9c;
}

.analysis-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.analysis-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: left;
}

.analysis-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.analysis-section p {
    font-size: 14px;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.score-section {
    grid-column: span 3;
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.score-item {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 200px;
}

.status-clear {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: green;
    margin-right: 10px;
}

.status-attention {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: orange;
    margin-right: 10px;
}

.status-not-processed {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: gray;
    margin-right: 10px;
}

.status-unknown {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red;
    margin-right: 10px;
}


/* Style for the tooltip icon */
.tooltip {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: #0073aa; /* Blue background */
    color: #fff; /* White text */
    font-weight: bold;
    font-size: 14px;
    cursor: help; /* Show a help cursor on hover */
    position: relative; /* Position for the tooltip message */
    margin-left: 5px;
}

/* jQuery UI Tooltip Styling */
.ui-tooltip {
    background: #333; /* Dark background for tooltip */
    color: #fff; /* White text */
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 200px; /* Limit width for readability */
    z-index: 99999 !important; /* Ensure it's above other elements */
    text-align: center; /* Center the tooltip text */
}

/* Optional: Arrow for Tooltip */
.ui-tooltip::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #333 transparent transparent transparent; /* Dark arrow matching tooltip */
    position: absolute;
    top: 100%; /* Position below the tooltip */
    left: 50%;
    transform: translateX(-50%);
}

.fd-button {
    background-color: #DD8500 !important;
    border-radius: 25px;
    color: #fff !important;
    padding: 10px 30px;
    text-decoration: none;
    border: 1px solid #DD8500 !important;
    transition: all 0.4s;
}
.fd-button:hover{
    border-color: #DD8500 !important;
    background-color: #fff !important;
    color: #DD8500 !important;
}

.fd-check-button {
    background-color: #53f222 !important;
    border-radius: 25px;
    color: #000000 !important;
    padding: 10px 30px;
    text-decoration: none;
    border: 1px solid #53f222 !important;
    transition: all 0.4s;
}

.fd-check-button:hover {
    border-color: #53f222 !important;
    background-color: #1f8500 !important;
    color: #ffffff !important;
}


/* General input field styling */
.modal-body input[type="email"],
.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Focus effect for input fields */
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="date"] {
    display: inline-block;
    width: calc(100% - 30px); /* Adjust width to fit the tooltip */
}

/* Tooltip styling */
.modal-body .tooltip {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle; /* Align with input */
}

/* Button styling */
.modal-body button {
    background-color: #007cba;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.modal-body button:hover {
    background-color: #005a9c;
    transform: scale(1.05);
}

/* Add a red asterisk to required fields */
.required-field::after {
    content: ' *';
    color: red;
    margin-left: 4px; /* Add space between the label and the asterisk */
    font-size: 16px; /* Optional: adjust size for emphasis */
}

.swal2-container {
    z-index: 99999 !important;
}