.lux-card {
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 4px 32px rgba(34, 50, 100, 0.09), 0 1.5px 6px rgba(34, 50, 100, 0.07);
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(.41, 1.1, .7, 1), box-shadow 0.18s cubic-bezier(.41, 1.1, .7, 1);
    min-width: 280px;
    max-width: 380px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
}

.lux-card:hover {
    transform: translateY(-4px) scale(1.022);
    box-shadow: 0 8px 40px rgba(34, 50, 100, 0.16), 0 2px 8px rgba(34, 50, 100, 0.10);
}

.lux-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    box-shadow: 0 1px 8px rgba(34, 50, 100, 0.08);
}

.lux-card-body {
    padding: 1.3rem 1.6rem 1.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lux-card-meta {
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.lux-card-meta i {
    margin-right: 0.5rem;
    color: #2250ff;
}

.lux-card-title {
    font-weight: 600;
    font-size: 1.28rem;
    margin-bottom: 0.5rem;
    color: #1b2436;
}

.lux-card-desc {
    font-size: 0.98rem;
    color: #3d4252;
    opacity: 0.9;
    line-height: 1.55;
}


.card.profile-card {
    border-radius: 16px;
    box-shadow: 0 3px 16px 0 rgba(35, 119, 255, 0.07), 0 1.5px 6px 0 rgba(0, 0, 0, 0.04);
    border: none;
}

.profile-info .row {
    align-items: center;
    font-size: 1.12rem;
}

.profile-info .text-secondary {
    font-weight: 500;
    color: #777 !important;
}


.dashboard-table-card {
    border-radius: 16px;
    box-shadow: 0 2px 18px 0 rgba(35, 119, 255, 0.08), 0 1px 4px 0 rgba(0, 0, 0, 0.06);
    border: 2px solid #2377ff;
    background: #fff;
    margin-top: 2rem;
    padding-bottom: 80px;
    position: relative;
}

.dashboard-table-card thead th {
    background: #4376f7;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-top: none;
    border-bottom: none;
    vertical-align: middle;
}

.dashboard-table-card tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.dashboard-table-card tbody td {
    vertical-align: middle;
    font-size: 1.08rem;
}

.dashboard-table-card .action-btn {
    border-radius: 50%;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.3rem;
    font-size: 1.12rem;
}

.dashboard-table-card .action-btn.edit {
    background: #f1f5ff;
    color: #4376f7;
    border: none;
    transition: background .2s;
}

.dashboard-table-card .action-btn.edit:hover {
    background: #2377ff;
    color: #fff;
}

.dashboard-table-card .action-btn.delete {
    background: #ffeaea;
    color: #ea4747;
    border: none;
    transition: background .2s;
}

.dashboard-table-card .action-btn.delete:hover {
    background: #ea4747;
    color: #fff;
}

.dashboard-table-card .add-course-btn {
    position: absolute;
    bottom: 24px;
    right: 30px;
    z-index: 2;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 1px 6px rgba(35, 119, 255, 0.09);
    padding: .7rem 1.5rem;
    background: #fff;
    border: 1.5px solid #e6eaff;
    transition: border-color .2s, box-shadow .2s;
}

.dashboard-table-card .add-course-btn:hover {
    border-color: #2377ff;
    box-shadow: 0 1px 12px #2377ff15;
}

.dashboard-table-card .add-course-btn i {
    color: #2377ff;
    font-size: 1.25rem;
    margin-left: 6px;
    vertical-align: middle;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1.25rem;
    background-color: #f8f9fa;
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
    background-color: #fafbfc;
}

.form-control:hover,
.form-select:hover {
    border-color: #dee2e6;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Required Field Indicator */
.text-danger {
    color: #f56565 !important;
    font-weight: 700;
}

/* Input Group Styling */
.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #667eea;
}

.input-group .form-control {
    border-left: none;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #e9ecef;
    border: none;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #dee2e6;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

/* Delete Modal Specific Styling */
#deleteModal .modal-header {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* Form Validation Styling */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #48bb78;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2348bb78' 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);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #f56565;
}

.invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Helper Text */
.form-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Icon Integration */
.modal-body .bi {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Loading State */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Animated Modal Entry */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
    transition: all 0.3s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}