/* Basic Box Model and Colors */

* {
box-sizing: border-box;
font-family: sans-serif;
}

:root {
--modal-bg: #f8f9fa;
--modal-border: #dee2e6;
--primary-color: #007bff;
--primary-hover: #0056b3;
--danger-color: #dc3545;
--input-border: #ced4da;
--input-focus: #80bdff;
--label-color: #495057;
--error-color: #dc3545;
}

/* Modal Container Styles */
.modal-container {
display: flex;
justify-content: center;
align-items: flex-start;
padding: 20px;
background-color: rgba(0, 0, 0, 0.5);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow-y: auto;
}

.modal-subject {
background: var(--modal-bg);
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 900px;
margin: 40px auto;
padding: 0;
}

/* Modal Header */
.modal-heading {
background: #007bff;
color: white;
padding: 1rem 1.5rem;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}

.modal-heading h2 {
margin: 0;
font-size: 1.5rem;
}

.close-modal {
font-size: 2rem;
font-weight: bold;
color: #fff;
cursor: pointer;
transition: color 0.2s;
}

.close-modal:hover {
color: var(--danger-color);
}

/* Form Layout and Inputs */
.rows {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 20px;
}

.c-3, .c-4, .c-12 {
padding: 0;
flex-grow: 1;
}

.c-3 {
flex-basis: calc(25% - 15px);
}

.c-4 {
flex-basis: calc(33.333% - 14px);
}

.c-12 {
flex-basis: 100%;
}

.form-input-group {
display: flex;
flex-direction: column;
width: 100%;
margin-bottom: 1rem;
}

.form-input-group label {
font-weight: bold;
margin-bottom: 0.5rem;
color: var(--label-color);
}

.form-input-group input[type="checkbox"] {
margin-right: 8px;
}

.form-input {
padding: 0.75rem;
border: 1px solid var(--input-border);
border-radius: 4px;
font-size: 1rem;
transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Specific Styles */
.required {
color: var(--danger-color);
}

.error {
color: var(--error-color);
font-size: 0.8rem;
margin-top: 0.25rem;
}

.section-label {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 1rem;
color: #333;
display: block;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 5px;
}

/* Buttons */
.center {
display: flex;
justify-content: center;
padding: 20px;
}

.btn-blue {
background-color: var(--primary-color);
color: white;
border: none;
padding: 12px 24px;
border-radius: 4px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
}

.btn-blue:hover {
background-color: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
.c-3, .c-4 {
flex-basis: calc(50% - 10px);
}
}

@media (max-width: 576px) {
    .c-3, .c-4, .c-12 {
    flex-basis: 100%;
    }

    .modal-subject {
    margin: 20px;
    }

}


.full-width-table {
    width: 100%;
    border-collapse: collapse; /* Optional: for a cleaner border look */
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
}


.highlighted-row {
    background-color: #ffeeba !important;
}
