/* Modal Component Styles - Class-based selectors for better maintainability */

/* Modal Root Container */
.klass-modal-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.klass-modal-root *,
.klass-modal-root *::before,
.klass-modal-root *::after {
    box-sizing: border-box;
    pointer-events: auto;
}

/* Modal Backdrop */
.klass-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 999999;
}

/* Modal Container */
.klass-modal-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    transform: scale(1);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.klass-modal-container {
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Header */
.klass-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.klass-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

.klass-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
}

.klass-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Modal Body */
.klass-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Content Styles */
.klass-course-details,
.klass-teacher-details {
    color: #374151;
    line-height: 1.6;
}

.klass-course-details-header {
    margin-bottom: 24px;
}

.klass-course-details-image,
.klass-teacher-details-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.klass-course-details-title,
.klass-teacher-details-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.3;
}

/* Tabs and Meta */
.klass-course-details-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    overflow-x: auto;
}

.klass-course-details-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    white-space: nowrap;
}

.klass-course-details-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.klass-course-details-tab:hover:not(.active) {
    color: #3b82f6;
    background: #f8fafc;
}

.klass-course-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.klass-course-details-meta-item {
    font-size: 0.875rem;
    color: #6b7280;
}

.klass-course-details-meta-item strong {
    color: #374151;
    margin-right: 4px;
}

.klass-course-details-content {
    margin-top: 20px;
}

.klass-course-details-section {
    margin-bottom: 20px;
}

.klass-course-details-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.klass-course-details-section-title .icon {
    margin-right: 8px;
    transition: transform 0.3s;
}

.klass-course-details-section-title .icon.open {
    transform: rotate(90deg);
}

.klass-course-details-section-content {
    padding: 10px 0;
}

.klass-course-details-timetable {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.klass-course-details-timetable-header {
    background: #f9fafb;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.klass-course-details-timetable-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
}

.klass-course-details-timetable-item:last-child {
    border-bottom: none;
}

.klass-course-details-sessions {
    margin-top: 15px;
}

.klass-course-details-session {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.klass-course-details-session-header {
    font-weight: 600;
    margin-bottom: 5px;
}

.klass-course-details-session-meta {
    font-size: 0.9rem;
    color: #6b7280;
}

.klass-course-details-price {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.klass-price-free {
    background: #d1e7dd;
    color: #0f5132;
}

.klass-price-module {
    background: #fff3cd;
    color: #664d03;
}

.klass-price-paid {
    background: #cfe2ff;
    color: #084298;
}

/* Course Actions */
.klass-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.klass-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.klass-primary-button {
    background: #3b82f6;
    color: white;
}

.klass-primary-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.klass-secondary-button {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.klass-secondary-button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.klass-whatsapp-button {
    background: #25d366;
    color: white;
}

.klass-whatsapp-button:hover {
    background: #128c7e;
    transform: translateY(-1px);
}

.klass-telegram-button {
    background: #0088cc;
    color: white;
}

.klass-telegram-button:hover {
    background: #006699;
    transform: translateY(-1px);
}

/* Course Header and Info */
.klass-course-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.klass-course-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.klass-course-info {
    flex: 1;
}

.klass-course-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.klass-course-teachers {
    margin-bottom: 12px;
}

.klass-course-teachers strong {
    color: #374151;
    font-weight: 600;
}

.klass-course-price-tag {
    margin-bottom: 16px;
}

.klass-price-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Course Schedule Section */
.klass-course-schedule-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.klass-schedule-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
}

/* Course Timetable */
.klass-course-timetable {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.klass-course-timetable table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.klass-course-timetable thead {
    background: #374151;
    color: white;
}

.klass-course-timetable th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.klass-course-timetable td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.klass-course-timetable tbody tr:last-child td {
    border-bottom: none;
}

.klass-course-timetable tbody tr:nth-child(even) {
    background: #f8fafc;
}

.klass-course-timetable tbody tr:hover {
    background: #f1f5f9;
}

.klass-course-timetable td:first-child {
    font-weight: 500;
    color: #374151;
}

.klass-course-timetable td:last-child {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Tabs System */
.klass-tabs {
    margin-top: 24px;
}

.klass-tabs-header {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    overflow-x: auto;
}

.klass-tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.klass-tab-button:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.klass-tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #f8fafc;
}

.klass-tabs-content {
    min-height: 200px;
}

.klass-tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Course Content */
.klass-course-description {
    line-height: 1.7;
    color: #374151;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.klass-course-description p {
    margin-bottom: 16px;
}

.klass-course-description p:last-child {
    margin-bottom: 0;
}

.klass-course-description br {
    margin-bottom: 8px;
}

.klass-course-description strong,
.klass-course-description b {
    font-weight: 600;
    color: #111827;
}

.klass-course-description em,
.klass-course-description i {
    font-style: italic;
}

.klass-course-description ul,
.klass-course-description ol {
    margin: 16px 0;
    padding-left: 24px;
}

.klass-course-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.klass-course-description h1,
.klass-course-description h2,
.klass-course-description h3,
.klass-course-description h4,
.klass-course-description h5,
.klass-course-description h6 {
    font-weight: 600;
    color: #111827;
    margin: 20px 0 12px 0;
}

.klass-course-description h1 { font-size: 1.5rem; }
.klass-course-description h2 { font-size: 1.3rem; }
.klass-course-description h3 { font-size: 1.1rem; }
.klass-course-description h4 { font-size: 1rem; }

.klass-course-description a {
    color: #3b82f6;
    text-decoration: underline;
}

.klass-course-description a:hover {
    color: #2563eb;
}

.klass-empty-message {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

/* Collapsible Components */
.klass-collapsible {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.klass-collapsible-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #e5e7eb;
}

.klass-collapsible-header:hover {
    background: #f3f4f6;
}

.klass-collapsible-icon {
    margin-right: 8px;
    color: #6b7280;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.klass-collapsible-content {
    padding: 16px;
    background: white;
}

/* Course Content by Month */
.klass-course-content-by-month {
    margin-top: 16px;
}

.klass-month-group {
    margin-bottom: 24px;
}

.klass-month-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Modules and Sessions */
.klass-modules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.klass-module {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.klass-module-header {
    padding: 12px 16px;
    background: #374151;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.klass-module-content {
    padding: 16px;
}

.klass-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.klass-session-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
}

.klass-session-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.klass-session-item.klass-even {
    background: #f8fafc;
}

.klass-session-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.klass-session-content {
    flex: 1;
}

.klass-session-content h5 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.klass-session-description {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.klass-session-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.klass-session-meta span {
    margin-right: 12px;
}

/* Live Classes */
.klass-live-classes {
    margin-top: 16px;
}

.klass-live-class-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 8px;
}

.klass-live-class-title {
    font-weight: 600;
    color: #92400e;
}

.klass-live-class-time {
    font-size: 0.875rem;
    color: #b45309;
}

/* Teacher Details Styles */
.klass-teacher-details {
    padding: 0;
}

.klass-teacher-details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.klass-teacher-details-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.klass-teacher-details-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.klass-teacher-details-qualifications {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.klass-teacher-details-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.klass-teacher-email,
.klass-teacher-phone {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.klass-teacher-email a,
.klass-teacher-phone a {
    color: #3b82f6;
    text-decoration: none;
}

.klass-teacher-email a:hover,
.klass-teacher-phone a:hover {
    text-decoration: underline;
}

/* Teacher Description */
.klass-teacher-details-description {
    margin-bottom: 32px;
}

.klass-teacher-details-description h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
}

.klass-teacher-details-description p {
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Teacher Courses */
.klass-teacher-details-courses {
    margin-bottom: 24px;
}

.klass-teacher-details-courses h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 20px 0;
}

.klass-teacher-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.klass-teacher-course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.klass-teacher-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.klass-teacher-course-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.klass-teacher-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.klass-teacher-course-content {
    padding: 16px;
}

.klass-teacher-course-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.klass-teacher-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.klass-teacher-course-meta .klass-button {
    font-size: 0.875rem;
    padding: 8px 16px;
    min-width: auto;
}

.klass-teacher-details-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.klass-teacher-details-contact-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.klass-teacher-details-contact-item strong {
    margin-right: 5px;
}

.klass-teacher-details-section {
    margin-bottom: 20px;
}

.klass-teacher-details-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
}

.klass-teacher-details-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.klass-teacher-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.klass-teacher-course-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.klass-teacher-course-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.klass-teacher-course-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.klass-teacher-course-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Loading and Error States */
.klass-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.klass-loading-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.klass-error-message {
    padding: 16px;
    text-align: center;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .klass-modal-backdrop {
        padding: 10px;
    }
    
    .klass-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .klass-modal-header {
        padding: 16px;
    }
    
    .klass-modal-body {
        padding: 16px;
    }
    
    .klass-modal-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .klass-course-details-header {
        flex-direction: row;
        gap: 20px;
    }
    
    .klass-course-details-image {
        width: 300px;
        margin-bottom: 0;
    }
    
    .klass-teacher-details-header {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    
    .klass-teacher-details-image {
        margin-bottom: 0;
    }
}



.course-details-content {
    margin-top: 20px;
}

.course-details-section {
    margin-bottom: 20px;
}

.course-details-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.course-details-section-title .icon {
    margin-right: 8px;
    transition: transform 0.3s;
}

.course-details-section-title .icon.open {
    transform: rotate(90deg);
}

.course-details-section-content {
    padding: 10px 0;
}

.course-details-timetable {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.course-details-timetable-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.course-details-timetable-item {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
}

.course-details-timetable-item:last-child {
    border-bottom: none;
}

.course-details-sessions {
    margin-top: 15px;
}

.course-details-session {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
}

.course-details-session-header {
    font-weight: 600;
    margin-bottom: 5px;
}

.course-details-session-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.course-details-price {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.price-free {
    background-color: #d1e7dd;
    color: #0f5132;
}

.price-module {
    background-color: #fff3cd;
    color: #664d03;
}

.price-paid {
    background-color: #cfe2ff;
    color: #084298;
}

/* Teacher Details Styles */
.teacher-details {
    color: #333;
}

.teacher-details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.teacher-details-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.teacher-details-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.teacher-details-qualifications {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.teacher-details-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.teacher-details-contact-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.teacher-details-contact-item strong {
    margin-right: 5px;
}

.teacher-details-section {
    margin-bottom: 20px;
}

.teacher-details-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.teacher-details-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.teacher-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.teacher-course-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.teacher-course-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.teacher-course-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.teacher-course-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Loading and Error States */
/* Loading and Error States */


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Responsive Design */
@media (max-width: 640px) {
    .klass-modal-backdrop {
        padding: 10px;
    }
    
    .klass-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .klass-modal-header {
        padding: 16px;
    }
    
    .klass-modal-body {
        padding: 16px;
    }
    
    .klass-modal-title {
        font-size: 1.125rem;
    }
}
