/* AiGinex Admission Test Public CSS */
.aiginex_at_form {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.aiginex_at_form_row {
    margin-bottom: 15px;
}

.aiginex_at_form_row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.aiginex_at_form_row input[type="text"],
.aiginex_at_form_row input[type="date"],
.aiginex_at_form_row input[type="tel"],
.aiginex_at_form_row input[type="email"],
.aiginex_at_form_row input[type="number"],
.aiginex_at_form_row select,
.aiginex_at_form_row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.aiginex_at_form_row textarea {
    min-height: 100px;
}
.aiginex_at_form_row input:focus, .aiginex_at_form_row textarea:focus, .aiginex_at_form_row select:focus {
    border-color: #0073aa;
}

.aiginex_at_form input[type="submit"] {
    background-color: #0085ba;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.aiginex_at_form input[type="submit"]:hover {
    background-color: #0073aa;
}

.aiginex_at_table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.aiginex_at_table th, .aiginex_at_table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.aiginex_at_table th {
    background-color: #0085ba;
    color: #ffffff;
}

.aiginex_at_table tbody tr:nth-of-type(even) {
    background-color: #f3f3ff;
}
.aiginex_at_list_title {
    text-align: center;
    color: #333;
    margin-top: 30px;
}

.aiginex_at_result_viewer {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}
.aiginex_at_result_viewer form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.aiginex_at_result_display {
    margin-top: 20px;
    padding: 15px;
    border-left: 5px solid #0085ba;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.aiginex_at_error {
    color: #D8000C;
    background-color: #FFD2D2;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
}
.aiginex_at_success {
    color: #2b7d2b;
    background-color: #d4edda;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}


/* Management Dashboard Styles */
.aiginex_at_management_dashboard {
    margin: 20px 0;
}

.aiginex_at_filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.aiginex_at_filters label {
    font-weight: bold;
}

.aiginex_at_filters input[type="search"],
.aiginex_at_filters input[type="date"],
.aiginex_at_filters input[type="number"],
.aiginex_at_filters select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Added for better layout consistency */
}

.aiginex_at_filters input[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.aiginex_at_button_edit,
.aiginex_at_button_delete {
    display: inline-block;
    padding: 5px 10px;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 5px;
}

.aiginex_at_button_edit {
    background-color: #0085ba;
}
.aiginex_at_button_edit:hover {
    background-color: #0073aa;
}

.aiginex_at_button_delete {
    background-color: #d63638;
}
.aiginex_at_button_delete:hover {
    background-color: #b02a2c;
}

.aiginex_at_edit_form_container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fdfdfd;
}
.aiginex_at_edit_form_container h3 {
    margin-top: 0;
}
.aiginex_at_edit_form_container a {
    margin-bottom: 20px;
    display: inline-block;
}

/* Applicant List Viewer */
.aiginex_at_applicant_list_container {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}
.aiginex_at_applicant_list_container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
.aiginex_at_applicant_list_container .aiginex_at_filters {
    justify-content: center;
}

.aiginex_at_filters noscript input {
    margin-left: 10px;
}

.aiginex_at_summary_box {
    padding: 5px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 5px 0;
}

.aiginex_at_summary_box h4 {
    margin-top: 0;
    color: #0073aa;
    text-align: center;
    margin-bottom: 20px;
}

.aiginex_at_summary_box p {
    margin: 0 0 5px;
    font-size: 16px;
}
.aiginex_at_summary_box p strong {
    color: #333;
}

/* Styles for the summary table inside the summary box */
.aiginex_at_summary_box .aiginex_at_table {
    margin: 0; /* Override default table margin */
}

.aiginex_at_summary_box .aiginex_at_table tfoot tr {
    background-color: #e9ecef;
    font-weight: bold;
}

.aiginex_at_summary_box .aiginex_at_table tfoot tr {
    background-color: #e9ecef;
    font-weight: bold;
}

/* Responsive Table Wrapper */
.aiginex_at_table_wrapper {
    overflow-x: auto;
    margin: 15px 0; /* Match original table margin */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Remove margin from table when it's inside the wrapper */
.aiginex_at_table_wrapper .aiginex_at_table {
    margin: 0;
}

/* Adjust for summary box table */
.aiginex_at_summary_box .aiginex_at_table_wrapper {
     margin: 0;
}

/* START: Style the new marks filter */
.aiginex_at_filters input[name="marks_margin"] {
    width: 120px;
}
/* END: Style the new marks filter */

/* Batch Update Styles */
.aiginex_at_batch_select {
    width: 100%;
    min-width: 120px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
}

/* START: Added style for batch marks input */
.aiginex_at_batch_input {
    width: 100%;
    min-width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
}
/* END: Added style for batch marks input */

.aiginex_at_table .aiginex-batch-col-editable {
    vertical-align: top;
}

/* START: Admission Note Table Styles */
.aiginex_at_admission_note_form {
    background: #fff;
    max-width: 100%; /* changed from 600px/none to 100% */
    width: 100%;     /* Force full width */
    border-left: 4px solid #0085ba;
    box-sizing: border-box;
}

.aiginex_at_admission_note_form h3 {
    margin-top: 0;
}

.aiginex_at_note_table th {
    background-color: #2c3338;
    color: #fff;
}

.aiginex_note_input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.aiginex_note_input:focus {
    border-color: #0085ba;
    box-shadow: 0 0 2px rgba(0, 133, 186, 0.3);
}
/* END: Admission Note Table Styles */

/* START: Collapsible Details Styles */
details.aiginex_at_details {
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

details.aiginex_at_details summary {
    padding: 15px 20px;
    cursor: pointer;
    background: #f1f1f1;
    font-weight: bold;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.3s;
}

details.aiginex_at_details summary:hover {
    background: #e5e5e5;
}

/* Hide default marker in Safari/Chrome */
details.aiginex_at_details summary::-webkit-details-marker {
    display: none; 
}

details.aiginex_at_details summary h3 {
    margin: 0;
    font-size: 1.1em;
    display: inline-block;
    color: #333;
}

/* Custom Toggle Icon */
details.aiginex_at_details summary::after {
    content: '+'; 
    font-size: 1.5em;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

details.aiginex_at_details[open] summary {
    border-bottom: 1px solid #ddd;
    background: #e9e9e9;
}

details.aiginex_at_details[open] summary::after {
    content: '-';
    color: #d63638;
}

details.aiginex_at_details .aiginex_at_form_content {
    padding: 20px;
    background: #fff;
}

/* Remove margins from forms inside details to avoid double padding */
details.aiginex_at_details .aiginex_at_form {
    margin: 0 !important; 
    border: none;
    box-shadow: none;
    padding: 0;
}
/* END: Collapsible Details Styles */