body {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(93, 114, 12, 0.8)), url('../Images/DumontLogoRGB.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.comment {
    max-width: 200px; /* Adjust as needed */
    word-wrap: break-word;
    overflow: hidden;
    white-space: normal;
}
.form-container {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    padding: 20px;
    width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color:white;
}

th, td {
    padding: 10px;
}
.card-container {
    overflow-x: hidden !important;
    min-height: 95vh;
    max-height: 95vh;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90vw; /* Default width for small screens */
    position:relative;
    justify-content:flex-start;
}

@media (min-width: 600px) {
    .card-container {
        min-width: 350px;
        max-width: 80vw;
    }
    .table-container {
        min-width: 350px;
        max-width: 80vw;
    }
}

@media (min-width: 768px) {
    .card-container {
        width: 70vw; /* Adjust max width for tablets */
    }
    .table-container {
        width: 70vw;
    }
}

@media (min-width: 1100px) {
    .card-container {
        width: 35vw; /* Adjust max width for desktops */
    }
    .table-container {
        width: 70vw; /* Adjust max width for desktops */
    }

}
.table-button {
    background-color: #5d720c;
    border-color: #75927c;
    border-radius: 10px;
    color: white;
}
.start-button {
    min-height: 6vh;
    font-size: 1.6em;
    background-color: #5d720c;
    border-color: white;
    border-radius: 10px;
    color: white;
}
.start-button:hover{
    background-color:#47570b;
    transition:0.4s;
}
h1 {
    font-size: 6vh;
}

h1:focus{
    outline:none;
}
h2 {
    font-size: 4vh;
}

h2:focus {
    outline: none;
}
.form-section-title {
    background-color: #EFF2E6;
    color: #5d720c;
}
.form-question {
    background-color: #EFF2E6;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensure items are aligned to the start */
    margin-bottom: 10px;
}
.form-typo {
    font-size: 1.2em;
    margin-right: 1.5vw;
    margin-left: 1.5vw;
    margin-bottom: 20px !important;
    margin-top: 10px;
    text-align: left;
}
.form-typo-subtitle {
    margin-right: 1.5vw;
    margin-left: 1.5vw;
    margin-bottom: 20px !important;
    margin-top: 10px;
    text-align: left;
}
.form-title {
    font-size: 1.4em;
    margin-right: 1.5vw;
    margin-left: 1.5vw;
    margin-bottom: 10px !important;
    margin-top: 20px;
}
.gradient-header {
    width: 100%;
    background: linear-gradient(rgba(93, 114, 12, 0.1), rgba(255, 255, 255, 0.9));
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: #5d720c;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    box-sizing: border-box;
}
.question-number-box {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #5d720c;
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 3px;
    margin-right: 1.5vw;
    margin-left: 1.5vw;   
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust the spacing between items as needed */
    justify-content: center; /* Center the items horizontally */
}
.radio-item {
    display: flex;
    flex-direction: column; /* Align items in a column */
    align-items: center; /* Center items horizontally */
    text-align: center;
}

.radio-logo {
    margin-top: 5px; /* Adjust the spacing between radio button and logo as needed */
    width: 150px; /* Adjust the logo size as needed */
    height: auto;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: 30px;
    height: 50px; 
    margin-right: 10px;
}

.radio-item input[type="radio"]:checked {
    accent-color: #5d720c !important;
}

.radio-text-item {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    gap: 15px; /* Adjust the spacing between items as needed */
}

.radio-text-item h3 {
    margin: 0; /* Remove default margin from the headings */
}

.radio-text-item input[type="radio"] {
    margin-right: 10px; /* Adjust the spacing between radio button and label */
}
.radio-text-item input[type="radio"] {
    width: 30px;
    height: 50px;
    margin-right: 10px;
}
.radio-text-item input[type="radio"]:checked {
    accent-color: #5d720c !important;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content:center;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-preview {
    width: 100%;
    max-width: 300px; /* Adjust the preview size as needed */
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
}

.remove-button {
    padding: 5px 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.remove-button:hover {
    background-color: #e60000;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.validation-message {
    color: red;
}
.assign-input-chip {
    font-size: 0.85em;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #ccc; /* light gray border */
    background-color: #f8f9fa; /* very light gray / clean background */
    color: #333; /* standard text color */
    min-width: 80px;
    max-width: 150px;
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.assign-input-chip:focus {
    background-color: #f5f5f5; /* pure white on focus */
    border-color: #00796b; /* subtle teal border to indicate focus */
    box-shadow: 0 0 2px rgba(0, 121, 107, 0.4); /* soft shadow for focus */
}

.chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.4rem;
    font-size: 0.85em;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.confirm-chip {
    background-color: #00796b;
    color: white;
}

.confirm-chip:hover {
    background-color: #004d40;
}

.cancel-chip {
    background-color: #ffe6e6;
    color: #d32f2f;
}

.cancel-chip:hover {
    background-color: #f5b5b5;
}

.assigned-text {
    font-size: 0.95em;
    color: lightseagreen;
}

.unassigned-text {
    font-size: 0.95em;
    color: orangered;
}

.assign-input {
    font-size: 0.95em;
    padding: 0.2rem 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: auto; /* shrink to content */
    min-width: 120px; /* keep it usable */
    max-width: 200px; /* prevents overflow */
}
.assigned-chip {
    display: inline-flex;
    align-items: center;
    background-color: #e6f7f7; /* light teal background */
    color: #00796b; /* teal text */
    border: 1px solid #b2dfdb;
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.85em;
    gap: 0.35rem;
    cursor: pointer; /* indicate clickable */
    transition: background-color 0.2s;
}

.assigned-chip:hover {
    background-color: #b2dfdb; /* slightly darker on hover */
}

.unassigned-chip {
    background-color: #ffe6e6; /* light red/pink background for clarity */
    color: #d32f2f; /* red text */
    border: 1px solid #f5b5b5;
}

.chip-close {
    border: none;
    background: transparent;
    color: #00796b;
    font-size: 0.9em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.chip-close:hover {
    color: #d32f2f; /* red highlight on hover */
}

.map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(3px);
}



/* Header bar */
.map-modal-header {
    display: flex;
    flex-direction: row; /* ensure horizontal layout */
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Title */
.map-modal-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Map container */
.map-modal-map {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-modal-map #map {
    width: 100%;
    height: 100%;
}
/* Modal box */
.map-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    height: 70vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: fadeIn 0.25s ease-in-out;
}
/* Close button (inside header, top-right) */
.map-modal-close {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.map-modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.map-modal-close i {
    color: #334155;
    font-size: 16px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1;}
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.25s ease-in-out forwards;
}
/* Responsive */
@media (max-width: 600px) {
    .map-modal-content {
        width: 95%;
        height: 75vh;
    }

    .map-modal-title {
        font-size: 1rem;
    }
}

.responsive-history-dialog {
    height: 80% !important;
    max-height: 80% !important;
}

/* On small screens (phones) */
@media (max-width: 600px) {
    .responsive-history-dialog {
        height: 85vh !important;
        max-height: 100vh !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }
}
.rz-notification {
    z-index: 9999 !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-grid div {
    display: flex;
    flex-direction: column;
}

.form-grid label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 4px;
    min-height: 2.8em;
    display: flex;
    align-items: flex-end;
}
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
