﻿/* Main Container */
.form-container {
    max-width: 1400px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Banner Section */
.banner-section {
    background-color: #29b952;
    padding: 30px 0;
    color: white;
}

.banner-content {
    text-align: center;
}

/* GREEN BOX behind image */
.banner-image-box {
    display: inline-block;
    background-color: #29b952; /* green area */
    border-radius: 18px; /* rounded container */
}


/* NEW */
.banner-logo {
    height: 110px;
    border-radius: 14px; /* rounded image corners */
    display: block;
}

/* Existing – slightly improved */
.banner-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.6px;
}

.banner-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
    .banner-logo {
        height: 60px;
    }

    .banner-title {
        font-size: 1.7rem;
    }
}

/* Quick Stats */
.quick-stats {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 30px;
}

    .quick-stats .stat {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 0 15px;
        border-right: 1px solid #e0e0e0;
    }

        .quick-stats .stat:last-child {
            border-right: none;
        }

.stat-icon {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Registration Card */
.registration-card {
    background: #ffffff;
    margin: 0;
    border-bottom: 1px solid #eaeaea;
}

.card-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .card-header h3 {
        margin: 0;
        color: #2c3e50;
        font-size: 1.3rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .card-header h3 i {
            color: #3498db;
        }

.header-actions {
    display: flex;
    gap: 10px;
}

/* Form Progress */
.form-progress {
    padding: 15px 30px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.progress-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

    .progress-label span {
        font-weight: 600;
        color: #3498db;
    }

.progress-bar-container {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Form Grid */
.card-body {
    padding: 25px 30px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

.required-field label:after {
    content: '*';
    color: #e74c3c;
    margin-left: 3px;
}

.form-control {
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
    min-height: 40px;
}

    .form-control:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

    .form-control.select2 {
        border: 1.5px solid #ddd;
        padding: 0;
    }

        .form-control.select2.select2-container--focus .select2-selection {
            border-color: #3498db !important;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
        }

.validation-message {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .validation-message.show {
        opacity: 1;
    }

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2980b9, #3498db);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

.btn-clear {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

    .btn-clear:hover {
        background: #e9ecef;
        color: #333;
    }

.btn-add {
    padding: 12px 30px;
    font-size: 1rem;
    min-width: 150px;
}

.form-notice {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .form-notice i {
        color: #3498db;
    }

/* Course Table Container */
.course-table-container {
    background: #fff;
    padding: 0;
}

.table-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .table-header h3 {
        margin: 0;
        color: #2c3e50;
        font-size: 1.3rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .table-header h3 i {
            color: #3498db;
        }

.table-actions {
    display: flex;
    gap: 10px;
}

.btn-export {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
}

    .btn-export:hover {
        background: linear-gradient(135deg, #219653, #27ae60);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

.btn-clear-all {
    background: #fff;
    color: #e74c3c;
    border: 1.5px solid #e74c3c;
}

    .btn-clear-all:hover {
        background: #e74c3c;
        color: white;
    }

/* Table Styles */
.table-wrapper {
    padding: 0 30px 30px 30px;
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

    .courses-table thead {
        background: linear-gradient(135deg, #2c3e50, #34495e);
        color: white;
    }

    .courses-table th {
        background-color: #29b952;
        padding: 15px 12px;
        font-size: 0.9rem;
        font-weight: 600;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
    }

        .courses-table th:last-child {
            border-right: none;
        }

    .courses-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.2s ease;
    }

        .courses-table tbody tr:hover {
            background-color: #f8fafc;
        }

        .courses-table tbody tr:last-child {
            border-bottom: none;
        }

    .courses-table td {
        padding: 12px 12px;
        font-size: 0.9rem;
        color: #333;
        vertical-align: middle;
        border-right: 1px solid #f0f0f0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .courses-table td:last-child {
            border-right: none;
        }

        /* Course Code Cell */
        .courses-table td:first-child {
            font-weight: 600;
            color: #2c3e50;
            font-family: 'Consolas', 'Monaco', monospace;
        }

        /* Numeric Cells */
        .courses-table td:nth-child(3), /* Credit */
        .courses-table td:nth-child(5) /* Max Enroll */ {
            text-align: center;
            font-weight: 600;
            color: #2c3e50;
        }

        /* Section Cell */
        .courses-table td:nth-child(4) {
            text-align: center;
            font-weight: 600;
        }

        /* Type Cell */
        .courses-table td:nth-child(10) {
            text-align: center;
        }

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .type-badge.lecture {
        background: #e3f2fd;
        color: #1976d2;
    }

    .type-badge.lab {
        background: #f3e5f5;
        color: #7b1fa2;
    }

    .type-badge.seminar {
        background: #e8f5e8;
        color: #388e3c;
    }

/* Actions Cell */
.courses-table td:last-child {
    padding: 8px 12px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

    .btn-edit:hover {
        background: #1976d2;
        color: white;
        transform: translateY(-2px);
    }

.btn-delete {
    background: #fdeaea;
    color: #e74c3c;
}

    .btn-delete:hover {
        background: #e74c3c;
        color: white;
        transform: translateY(-2px);
    }

/* Empty Table State */
.empty-table-message {
    text-align: center;
    padding: 60px 20px !important;
    background: #fafafa;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

    .empty-state i {
        color: #ddd;
        margin-bottom: 20px;
    }

    .empty-state h4 {
        color: #666;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .empty-state p {
        color: #888;
        font-size: 0.95rem;
    }

/* Table Footer */
.courses-table tfoot {
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.summary-cell {
    padding: 15px 12px !important;
    font-size: 0.9rem;
    color: #2c3e50;
    border-right: 1px solid #e0e0e0 !important;
}

    .summary-cell:last-child {
        border-right: none !important;
    }

    .summary-cell strong {
        color: #2c3e50;
        font-size: 1rem;
    }

.type-breakdown {
    font-size: 0.9rem;
    color: #666;
}

    .type-breakdown span {
        font-weight: 600;
        color: #2c3e50;
    }

#lastSavedTime {
    color: #3498db;
    font-weight: 600;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        border-left-color: #27ae60;
    }

        .notification.success i {
            color: #27ae60;
        }

    .notification.error {
        border-left-color: #e74c3c;
    }

        .notification.error i {
            color: #e74c3c;
        }

    .notification.warning {
        border-left-color: #f39c12;
    }

        .notification.warning i {
            color: #f39c12;
        }

    .notification i {
        font-size: 1.2rem;
    }

.notification-content {
    flex: 1;
}

    .notification-content h4 {
        margin: 0 0 5px 0;
        font-size: 0.95rem;
        color: #2c3e50;
    }

    .notification-content p {
        margin: 0;
        font-size: 0.85rem;
        color: #666;
    }

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .notification-close:hover {
        color: #333;
    }

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-saved {
    background: #27ae60;
}

.status-pending {
    background: #f39c12;
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        height: 40px !important;
        border: 1.5px solid #ddd !important;
        border-radius: 5px !important;
        background: #fff !important;
    }

        .select2-container .select2-selection--single .select2-selection__rendered {
            line-height: 40px !important;
            padding-left: 12px !important;
            color: #333 !important;
            font-size: 0.95rem !important;
        }

        .select2-container .select2-selection--single .select2-selection__arrow {
            height: 38px !important;
            right: 8px !important;
        }

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #666 transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #666 transparent !important;
}

.select2-dropdown {
    border: 1.5px solid #ddd !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-top: 2px !important;
}

.select2-search--dropdown {
    padding: 10px !important;
}

    .select2-search--dropdown .select2-search__field {
        border: 1.5px solid #ddd !important;
        border-radius: 5px !important;
        padding: 8px 12px !important;
    }

.select2-results__option {
    padding: 8px 12px !important;
    font-size: 0.95rem !important;
}

.select2-results__option--highlighted {
    background-color: #3498db !important;
}

/* Error States */
.form-control.is-invalid {
    border-color: #e74c3c !important;
    background-color: #fffafa !important;
}

.form-control.is-valid {
    border-color: #27ae60 !important;
    background-color: #f8fff8 !important;
}

/* Animation for Added Row */
@keyframes highlightRow {
    0% {
        background-color: rgba(52, 152, 219, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

.highlight-row {
    animation: highlightRow 1s ease;
}

/* Print Styles */
@@media print {
    .table-actions,
    .form-actions,
    .notification-container,
    .btn-action {
        display: none !important;
    }

    .courses-table {
        border: 1px solid #000 !important;
    }

        .courses-table th {
            background: #fff !important;
            color: #000 !important;
            border: 1px solid #000 !important;
        }

        .courses-table td {
            border: 1px solid #000 !important;
        }
}


/* Add these styles to your existing course-form.css */

.required-field label::after {
    content: " *";
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

    .validation-message.show {
        display: block;
    }

.confirm-checkbox {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin: 1rem 0;
    transition: border-color 0.3s ease;
}

    .confirm-checkbox label {
        font-weight: 600;
        color: #495057;
        cursor: pointer;
    }

    .confirm-checkbox small {
        color: #6c757d;
        margin-top: 0.5rem;
    }

/* Modal styles */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.modal-title {
    color: #495057;
    font-weight: 600;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Action buttons in table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-edit {
    color: #17a2b8;
    border: 1px solid #17a2b8;
    background: transparent;
}

    .btn-edit:hover {
        background-color: #17a2b8;
        color: white;
    }

.btn-delete {
    color: #dc3545;
    border: 1px solid #dc3545;
    background: transparent;
}

    .btn-delete:hover {
        background-color: #dc3545;
        color: white;
    }

/* Highlight for edit mode */
.highlight-row {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

/* Progress bar */
.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 3px;
}


/* Add these styles to your existing course-form.css */

/* Secondary instructor styles */
.secondary-instructor-fields {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

    .secondary-instructor-fields.show {
        border-style: solid;
        border-color: #ffc107;
        background-color: #fff3cd;
    }

.secondary-instructor-toggle {
    padding-top: 1.5rem;
}

    .secondary-instructor-toggle .form-check-input {
        margin-top: 0.3rem;
    }

    .secondary-instructor-toggle label {
        font-weight: normal;
        cursor: pointer;
        color: #495057;
    }

/* Instructor badges */
.instructor-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.primary-badge {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.secondary-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Table cell styles for instructors */
td > div:first-child {
    margin-bottom: 0.25rem;
}

td small.text-muted {
    font-size: 0.75rem;
    display: block;
}

/* Form row spacing for secondary instructor */
.form-row.secondary-instructor-fields .form-group {
    margin-bottom: 0;
}



/* Add these styles to your existing CSS */

/* Better error display */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem) !important;
}

.is-valid {
    border-color: #28a745 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem) !important;
}

/* Select2 error styling */
.select2-container .select2-selection.is-invalid {
    border-color: #dc3545 !important;
}

/* Validation message styling */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    display: none;
}

    .validation-message.show {
        display: block;
        animation: fadeIn 0.3s ease-in;
    }

/* Detailed error notification */
.notification.detailed-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #721c24;
}

    .notification.detailed-error h4 {
        color: #721c24;
    }

    .notification.detailed-error .notification-content {
        max-width: 500px;
    }

.error-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

    .error-list li {
        margin-bottom: 5px;
        color: #721c24;
    }

        .error-list li strong {
            color: #491217;
        }

/* Field highlighting */
.highlight-required {
    animation: pulse-error 2s infinite;
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

@@keyframes pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form group error styling */
.form-group.has-error label {
    color: #dc3545;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
}

/* Required field indicator */
.required-field label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Success state */
.form-group.has-success label {
    color: #28a745;
}

.form-group.has-success .form-control {
    border-color: #28a745;
}

/* Real-time validation feedback */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}