/* Application Status Styles */
.status-submitted {
    color: #46b450 !important;
    font-weight: bold;
}

.status-in-progress {
    color: #000 !important;
    font-weight: bold;
    background-color: #ffb900 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.status-unlocked {
    color: #fff !important;
    font-weight: bold;
    background-color: #ff5722 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}


/* Login and Registration Form Styles */
.login-form, .registration-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.registration-form {
    max-width: 600px; /* 20% wider than login form */
}

.register-section {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.register-section p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.register-section h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.btn-primary {
    background-color: #1CA1C5;
    color: white;
    border: 1px solid #1CA1C5;
}

.btn-primary:hover {
    background-color: #1589a3;
    border-color: #1589a3;
}

.btn-outline-primary, 
.login-form .btn-outline-primary,
.register-section .btn-outline-primary {
    background-color: #ffc145 !important;
    color: #000 !important;
    border: 1px solid #ffc145 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.btn-outline-primary:hover,
.login-form .btn-outline-primary:hover,
.register-section .btn-outline-primary:hover {
    background-color: #e6ad3e !important;
    color: #000 !important;
    border-color: #e6ad3e !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Force consistent button sizing for registration form */
.registration-form .form-buttons .btn,
.registration-form .form-buttons .btn-primary,
.registration-form .form-buttons .btn-outline-primary,
.registration-form .form-buttons .btn-back-to-login {
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    min-width: 140px !important;
    height: auto !important;
    line-height: 1.2 !important;
    border: 1px solid !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* Primary button (Create Account) */
.registration-form .form-buttons .btn-primary {
    background-color: #1CA1C5 !important;
    color: white !important;
    border-color: #1CA1C5 !important;
}

.registration-form .form-buttons .btn-primary:hover {
    background-color: #1589a3 !important;
    border-color: #1589a3 !important;
    color: white !important;
}

/* Back to Login button */
.registration-form .form-buttons .btn-back-to-login,
.registration-form .form-buttons .btn-outline-primary {
    background-color: #ffc145 !important;
    color: #000 !important;
    border-color: #ffc145 !important;
}

.registration-form .form-buttons .btn-back-to-login:hover,
.registration-form .form-buttons .btn-outline-primary:hover {
    background-color: #e6ad3e !important;
    color: #000 !important;
    border-color: #e6ad3e !important;
    text-decoration: none !important;
}

.text-right {
    text-align: right;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.edit-application, .review-application {
    margin: 20px 0;
}

.btn-success {
    color: #fff;
    background-color: #319f6c !important;
    border-color: #198754;
}

.uploaded-file a {
    font-size: 0.9rem;
    color: #000 !important;
}
.uppy-Dashboard-inner {
    width: 100%;
    min-width: 100%;
}
.uppy-size--md .uppy-Dashboard-AddFiles-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
}
.uppy-size--md .uppy-Dashboard-AddFiles-title button {
    font-weight: 700;
    color: #000;
    text-decoration: underline;
}

.uppy-Dashboard-inner {
    background: #cce4ea !important;
}
[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles {
    border: 1px dashed #84b2bd !important;
    background: #cce4ea !important;
}

.uploaded-file div a {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
}

.file-upload-wrapper {
    margin-top: 1rem;
}
.edit-form-subtitle {
    font-weight: 400;
    font-size: 1rem;
    margin: 0 0 0.8rem 0;
}
.edit-form-title {
    font-size: 1.8rem;
    line-height: 130%;
    width: 80%;
}
.btn.btn-links {
    background: #ffc144;
}
.save-message, .success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.judge-message {
    background-color: #f8f8f8;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-field {
    margin-bottom: 25px !important;
}

.form-field label.field-label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: bold;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #979797;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-field input[type="file"] {
    padding: 3px;
}

button {
    background-color: #1CA1C5;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.delete-file, .delete-application {
    color: #dc3545;
    margin-left: 10px;
}

.delete-file:hover, .delete-application:hover {
    text-decoration: underline;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.status-table-wrapper {
    padding: 0;
    background: #f8f8f8;
}

.status-table th, .status-table td {
    border: 1px solid #ddd;
    padding: 6px;
    font-size: 0.8rem;
    text-align: left;
    font-weight: 500;
}

.status-table th {
    background-color: #e4e4e4;
}

.message-conversation {
    margin-bottom: 20px;
}

.message-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 15px;
    max-width: 80%;
    position: relative;
}

.message-judge {
    background-color: #1CA1C5;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message-member {
    background-color: #e5e5ea;
    color: black;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.message-content {
    word-wrap: break-word;
}

.message-meta {
    font-size: 0.8em;
    color: #7a7a7a;
    margin-top: 5px;
    text-align: left;
}

.message-conversation form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.message-conversation form button {
    width: 100%;
}

.message-notification {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center;
}

.message-notification.success {
    background-color: #dff0d8;
    color: #3c763d;
}

body .btn {
    font-weight: 600 !important;
}

.message-notification.error {
    background-color: #f2dede;
    color: #a94442;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #dcdcdc;
    border-radius: 0;
    margin-top: 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #1CA1C5;
    width: 0;
    transition: width 0.3s ease;
}

.checkbox-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.48rem;
    margin-bottom: 1.8rem;
}

.checkbox-button {
    width: 100%;
    align-items: center;
    justify-items: center;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-button:hover {
    background-color: #e0e0e0;
}

.checkbox-buttons input[type="radio"]:checked + .checkbox-button,
.checkbox-buttons input[type="checkbox"]:checked + .checkbox-button {
    background-color: #1CA1C5;
    color: white;
    border-color: #1CA1C5;
}

.checkbox-buttons input[type="radio"],
.checkbox-buttons input[type="checkbox"] {
    display: none;
}

.select2-container {
    width: 100% !important;
}

.select2-selection--single,
.select2-selection--multiple {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.select2-selection--multiple .select2-selection__choice {
    background-color: #1CA1C5;
    color: white;
    border: none;
}

.select2-selection--multiple .select2-selection__choice__remove {
    color: white;
}

.field-number {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.field-guidance {
    font-size: 0.924rem;
    color: #1e1e1e;
    background-color: #ffcb61;
    padding: 14px;
    border-left: 4px solid #de9500;
    border-radius: 0;
    font-weight: 600;
    margin: 6px 0;
    white-space: normal !important;
}

.field-guidance p,
.field-guidance li,
.field-guidance a {
    font-weight: 600;
}

.field-guidance p:last-child {
    padding-bottom: 0px;
    margin: 0;
}

.not-applicable-wrapper {
    font-size: 0.924rem;
    color: #1e1e1e;
    background-color: #ffcb61;
    padding: 14px;
    border-left: 4px solid #de9500;
    border-radius: 0;
    font-weight: 600;
    margin: 6px 0;
    white-space: normal !important;
}

.not-applicable-wrapper label {
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.not-applicable-wrapper input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

.career-assessment-notice {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.career-assessment-notice h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0073aa;
}

.career-assessment-notice p {
    margin: 0 0 15px 0;
}

.career-assessment-notice a {
    display: inline-block;
    background: #0073aa;
    color: #FFF !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    margin-top: 5px;
}

.career-assessment-notice a:hover {
    background: #005a87;
    color: #FFF !important;
}

.inline-step-number {
    background: #1aa1c5;
    width: 38px;
    height: 38px;
    font-size: 0.88rem;
    color: #FFF;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-description p, .step-description li {
    font-size: 0.94rem;
    font-weight: 400;
}
.d-flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.align-items-center {
    align-items: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.steps {
    justify-content: space-between;
    border: 1px solid #e4e4e4;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    margin: 0;
    border-radius: 0px;
    transition: background-color 0.3s;
}
.step.empty:nth-child(even) {
    background: #f2f2f2;
}

.step a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 15px;
}

.step-number {
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    line-height: 22px;
    border-radius: 50%;
    background-color: #ddd;
    color: #969696;
    font-weight: 600;
    font-size: 0.66rem;
}

.inline-step-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 100%;
    background-color: #12852d;
    color: #FFF;
    font-weight: bold;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

.inline-step-title {
    gap: 0.786rem;
}

.step-title {
    font-size: 0.84em;
    font-weight: 600;
    text-align: left;
}

.step.empty {
    background-color: #fff;
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 42px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f1f1f;
    line-height: 28px;
    font-size: 0.9rem;
    font-weight: 500;
}
.select2-results__option {
    font-size: 0.9rem;
    font-weight: 500;
}

.step.in-progress {
    background: #034c5e;
    color: var(--theme-white);
}
.step.in-progress .step-number {
    background-color: #ffc144;
    color: #000;
}

.step.complete, .step.complete.active {
    background: #1aa1c5;
    color: #FFF;
}
.step.complete .step-number {
    background-color: #2cbfe7 !important;
    color: #FFF;
}
.step.active {
    background-color: #034C5E !important;
    border: none;
    color: #FFF;
}

.step.complete .step-tick {
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background-color: #1aa1c5;
    border-radius: 50%;
    position: relative;
    margin-left: auto;
}

.step.complete .step-tick::after {
    content: '\2713';
    color: white;
    font-size: 9px;
    position: absolute;
    top: 50%;
    left: 50%;
    font-weight: 700;
    transform: translate(-50%, -50%);
}

.step.active .step-number {
    background-color: #0c84a5;
    color: white;
}


.login-form {
    background: #eeefef;
    padding: 2rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    max-width: 100%;
    width: 640px;
    margin: 0 auto;
}
.login-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.login-form input[type=text], .login-form input[type=password] {
    font-size: 0.92rem;
    font-weight: 400;
    padding: 0.76rem;
    background: #FFF;
    border: 1px solid #878787;
}

.modal {
    z-index: 100050 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-backdrop {
    z-index: 100040 !important;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show:nth-of-type(n+2) {
    display: none !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
    margin: 10vh auto; /* Center vertically and horizontally */
    max-width: 500px;
}

.modal-content {
    border-radius: 4px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 15px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-body {
    padding: 15px;
    font-size: 1rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #1CA1C5;
    border-color: #1CA1C5;
    color: white;
}
.btn-primary#save-button {
    background-color: #1CA1C5 !important;
    border-color: #1CA1C5;
    color: white;
    font-size: 1rem !important;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.save-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.save-tick {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    border-radius: 50%;
    position: relative;
}

.save-tick::after {
    content: '\2713';
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-center {
    text-align: center;
}

/* Reset stacking context for modal parents */
.edit-application, .review-application, .members-area, .panel-dashboard {
    z-index: auto !important;
}

/* Applications Table Enhancements */
.applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: auto; /* Changed from fixed to auto */
}

.applications-table th,
.applications-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left; /* All columns left-aligned */
    font-size: 0.9rem;
    font-weight: 500;
    vertical-align: middle;
}

.applications-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    white-space: nowrap; /* Prevent header text wrapping */
}

/* Remove specific column width constraints - let them auto-size */
.applications-table th:nth-child(1) { /* Application */
    min-width: 200px; /* Minimum width for application names */
}

.applications-table th:nth-child(2) { /* ID */
    min-width: 100px;
    font-size: 0.85rem;
}

.applications-table th:nth-child(3) { /* Began */
    min-width: 140px;
    font-size: 0.85rem;
}

.applications-table th:nth-child(4) { /* Modified */
    min-width: 140px;
    font-size: 0.85rem;
}

.applications-table th:nth-child(5) { /* Status */
    min-width: 100px;
}

.applications-table th:nth-child(6) { /* Action */
    min-width: 120px; /* Wider for Continue/Locked buttons */
}

.applications-table th:nth-child(7) { /* Delete */
    min-width: 60px;
    text-align: center; /* Center the delete column only */
}

/* ID, Began, Modified, Status columns - lighter grey and smaller text */
.applications-table td:nth-child(2), /* ID */
.applications-table td:nth-child(3), /* Began */
.applications-table td:nth-child(4), /* Modified */
.applications-table td:nth-child(5) { /* Status */
    font-size: 0.8rem !important;
    color: #888 !important;
    white-space: nowrap;
}

/* Keep date columns consistent */
.applications-table td:nth-child(3), /* Began */
.applications-table td:nth-child(4) { /* Modified */
    white-space: nowrap; /* Prevent date wrapping */
}

/* Center the delete button only */
.applications-table td:nth-child(7) { /* Delete */
    text-align: center;
}

.applications-table th:nth-child(7) { /* Delete */
    text-align: center;
}

/* Available Forms Table - Auto widths */
.available-forms-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: auto;
}

.available-forms-table th,
.available-forms-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    vertical-align: middle;
}

.available-forms-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.available-forms-table th:nth-child(1) { /* Registration */
    min-width: 300px;
}

.available-forms-table th:nth-child(2) { /* Action */
    min-width: 185px;
    text-align: center;
}

.available-forms-table td:nth-child(2) { /* Action */
    text-align: center;
}

/* Responsive Design - Stack on smaller screens */
@media (max-width: 768px) {
    .applications-table th:nth-child(3),
    .applications-table td:nth-child(3),
    .applications-table th:nth-child(4),
    .applications-table td:nth-child(4) {
        display: none;
    }
    
    .applications-table th:nth-child(1) {
        min-width: 150px;
    }
}

/* Button styling remains the same */
.start-application-btn,
.btn-primary,
.btn-primary.btn-sm {
    background-color: #1CA1C5 !important;
    border-color: #1CA1C5 !important;
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem !important;
}

.delete-application.btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Tab Styling - Stronger appearance */
.nav-tabs {
    border-bottom: 3px solid #1CA1C5;
    margin-bottom: 4rem; /* Increased from 3rem to 4rem */
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 0;
    overflow: hidden;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #414141;
    font-weight: 600; /* Stronger font weight */
    font-size: 1.2rem;
    padding: 16px 28px;
    background: #f8f9fa;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0px;
    position: relative;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: #e9ecef;
    color: #1CA1C5;
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    color: #1CA1C5;
    background: white;
    border-color: transparent transparent #1CA1C5 transparent;
    border-bottom-color: #1CA1C5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-tabs .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1CA1C5, #0056b3);
}

/* Tab Content Wrapper */
.tab-content-wrapper {
    padding: 30px 0 20px 0; /* Increased top padding from 20px to 30px */
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Progress Bar - Remove border radius, make it solid and taller */
.progress-bar-container {
    width: 100%;
    height: 13px !important; /* Made 5px taller (was 8px) */
    background-color: #e9ecef;
    border-radius: 0 !important; /* Remove border radius - solid edges */
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar {
    height: 100%;
    background-color: #1CA1C5 !important; /* Match button blue */
    transition: width 0.3s ease;
    border-radius: 0 !important; /* Remove border radius - solid edges */
}

.progress-percentage {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 2px;
    font-weight: 500;
}

/* Submitted Application Status Styling */
.status-submitted {
    background-color: #28a745 !important; /* Green background for submitted */
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important; /* Prevent text wrapping */
}

/* Submitted Application Row Styling */
.applications-table tr:has(.status-submitted) {
    background-color: #f8fff8 !important; /* Very light green background for entire row */
}

/* View button styling for submitted applications */
.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    color: white !important;
}

/* Submitted Application View Styling */
.submitted-application-notice {
    margin-bottom: 30px;
}

.submitted-application-notice .alert {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.submitted-application-notice .alert-success {
    color: #0c5460;
}

.submitted-application-notice h4 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.submitted-application-notice .fas {
    color: #28a745;
    margin-right: 8px;
}

.submitted-application-view {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
}

.submitted-application-view h3 {
    margin-bottom: 25px;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #1CA1C5;
    padding-bottom: 10px;
}

.submitted-step {
    margin-bottom: 30px;
    background: white;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.submitted-step h4 {
    margin-bottom: 15px;
    color: #343a40;
    font-weight: 600;
    font-size: 1.1rem;
    border-left: 3px solid #1CA1C5;
    padding-left: 12px;
}

.submitted-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submitted-field-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.submitted-field-row:last-child {
    border-bottom: none;
}

.field-question {
    font-weight: 600;
    color: #495057;
    width: 25%;
    flex-shrink: 0;
    padding-right: 15px;
    font-size: 0.95rem;
    padding-top: 8px; /* Align with input box content */
}

.field-answer {
    width: 75%;
    flex-shrink: 0;
}

.field-answer .submitted-input,
.field-answer .submitted-textarea,
.field-answer .submitted-file-input {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    cursor: default;
    user-select: text;
}

.field-answer .submitted-textarea {
    min-height: 60px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.field-answer .submitted-file-input {
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.field-answer .file-download-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-answer .file-download-link:hover {
    text-decoration: underline;
    color: #004499;
}

.field-answer .file-download-link .fas {
    font-size: 0.9rem;
}

.field-answer .file-size {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: normal;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .submitted-field-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .field-question {
        min-width: auto;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 5px;
    }
    
    .field-answer {
        padding-left: 0;
    }
}

.submitted-file-input {
    padding: 12px 16px;
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.file-download-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-download-link:hover {
    text-decoration: underline;
    color: #004499;
}

.file-download-link .fas {
    font-size: 0.9rem;
}

.file-size {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: normal;
}

.no-file {
    color: #6c757d;
    font-style: italic;
}

/* Form Tag Group Titles - Smaller with blue vertical line */
.form-tag-group h4 {
    font-size: 1.1rem; /* Smaller than before */
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-left: 12px;
    border-left: 3px solid #1CA1C5; /* Blue vertical line */
    line-height: 1.4;
}

.form-tag-group {
    margin-bottom: 30px;
}

/* Main tab titles remain larger */
.tab-content-wrapper h3 {
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* Date Display - Date on top, time below */
.date-display {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.date-line {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 2px;
}

.time-line {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 400;
}

/* Adjust began/modified column styling */
.applications-table td:nth-child(2), /* Began */
.applications-table td:nth-child(3) { /* Modified */
    white-space: normal; /* Allow wrapping for two lines */
    vertical-align: middle;
    padding: 8px 12px;
}

.form-ending {
    padding: 2rem;
    margin-top: 1.4rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}
.form-ending h3 {
    font-weight: 700;
}
.form-ending p {
    font-size: 1rem;
    margin: 0 0 0.8rem 0;
}
.form-ending.submit-ready {
    background: #afd557;
    border: 1px solid #75932f;
}
.form-ending.submit-not-ready {
    background: #ff9ea7;
    border: 1px solid #ff7381;
}

/* Email validation styling */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

/* Start New Registration Form List Styling */
.form-tag-group {
    margin-bottom: 2rem;
}

.form-tag-group h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.form-tag-description {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-left: 3px solid #007cba;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-tag-description p {
    margin: 0 0 0.5rem 0;
}

.form-tag-description p:last-child {
    margin-bottom: 0;
}

.form-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.form-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.1);
}

.form-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.form-title {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.form-action {
    flex-shrink: 0;
}

.form-action .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-item-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
    }
    
    .form-action .btn {
        width: 100%;
    }
}

/* Dashboard Navigation Styling */
.prims-dashboard-header {
    margin-bottom: 2rem;
}

.pas-user-bar {
    text-align: right;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.pas-user-bar .btn {
    margin-left: 0.5rem;
}

.prims-dashboard-nav {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.prims-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.prims-dashboard-nav li {
    margin: 0;
}

.prims-dashboard-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ffc144;
    color: #000;
    text-decoration: none;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.prims-dashboard-nav a:hover {
    background-color: #e6a635;
    color: #000;
    text-decoration: none;
}

.prims-dashboard-nav a.active {
    background-color: #d4940b;
    color: #000;
}

/* Messages Button Badge Styling */
.messages-btn {
    position: relative;
}

.message-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    min-width: 20px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Print Application Button Styling */
.print-application {
    background: #28a745 !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin: 0 5px !important;
    border: 1px solid #28a745 !important;
    transition: all 0.2s ease !important;
}

.print-application:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
    color: white !important;
    text-decoration: none !important;
}

.print-application:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    outline: none !important;
}

/* Members area table action styling */
.members-area table td a {
    margin-right: 8px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.members-area table td a:last-child {
    margin-right: 0;
}

/* ===================================
   Competencies Field Styles
   =================================== */

/* Competencies Field Container */
.competencies-field-wrapper {
    margin-bottom: 2rem;
}

.competencies-help-text {
    background-color: #ffcb61;
    border-left: 4px solid #de9500;
    padding: 18px 20px;
    margin-bottom: 1.4rem;
    margin-top: 1.4rem;
    font-size: 12px;
    line-height: 1.4;
}

.competencies-help-text p,
.competencies-help-text li,
.competencies-help-text ul,
.competencies-help-text ol {
    font-size: 16px !important;
    line-height: 130% !important;
    margin: 0 0 8px 0 !important;
    font-weight: 600;
}

.competencies-help-text ul {
    padding: 0.8rem 0 0.4rem 1rem;
}

.competencies-help-text p:last-child {
    margin-bottom: 0 !important;
}

.competencies-help-text code {
    background: #e7f3ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.competencies-help-text li {
    margin: 4px 0;
}

/* Competencies Layout */
.competencies-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    align-items: start;
}

.competencies-editor-column {
    min-height: 400px;
}

/* Ensure TinyMCE container displays properly */
.competencies-editor-column .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.competencies-editor-column .wp-editor-wrap {
    margin-bottom: 0;
}

.competencies-editor-column .mce-toolbar {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
}

.competencies-editor-column iframe {
    display: block;
    min-height: 400px;
}

.competencies-references-column {
    position: sticky;
    top: 20px;
}

.competencies-reference-tags {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-height: 400px;
}

/* Tag Display */
.competencies-tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Style for competencies textarea */
.competencies-textarea {
    color: #000;
    border-color: #000;
    position: relative;
    z-index: 1;
    resize: none;
}

/* Make the textarea background consistent */
.competencies-textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Wrapper for competencies field */
.competencies-editor-wrapper {
    position: relative;
}

.competency-tag {
    background: #2271b1;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.2s ease;
}

.competency-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Tag colors by prefix */
.competency-tag[data-prefix="A"] {
    background: #e74c3c;
}

.competency-tag[data-prefix="B"] {
    background: #3498db;
}

.competency-tag[data-prefix="C"] {
    background: #2ecc71;
}

.competency-tag[data-prefix="D"] {
    background: #f39c12;
}

.competency-tag[data-prefix="E"] {
    background: #9b59b6;
}

/* Inline Tag Styling (in content) */
.competency-tag-inline {
    background: #2271b1;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin: 0 2px;
    white-space: nowrap;
    display: inline-block;
}

/* Static Display (Read-Only Views) */
.competencies-content {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.8;
}

.competencies-static-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .competencies-layout,
    .competencies-static-layout {
        grid-template-columns: 1fr;
    }
    
    .competencies-references-column {
        position: static;
        order: -1;
    }
    
    .competencies-reference-tags {
        min-height: auto;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .competencies-tags-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Admin Backend Styles */
.admin-competencies-wrapper {
    margin: 15px 0;
}

.admin-competencies-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
}

/* External View Styles */
.external-view-header h1 {
    margin: 0 0 10px 0 !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
}

.external-competencies-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.external-competencies-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
}

.multi-text-row-item input[type=text] {
    font-size: 0.8rem;
}