﻿/* ==========================================
   INSTRUCTORS MODULE - PREMIUM STYLING
   ========================================== */

/* Module Isolation */
.module-isolated-instructors {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Instructors Container */
.module-isolated-instructors {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --color-surface: #ffffff;
  --color-background: #f8fafc;
  --color-border: #e2e8f0;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --shadow-premium: 0 4px 20px rgba(102, 126, 234, 0.15);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  background: var(--color-background);
}

.instructors-isolated {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Premium Header */
.module-header-premium {
    background: linear-gradient(135deg, var(--color-surface, #f8f9fa) 0%, var(--color-background, #ffffff) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.module-title-premium {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #667eea);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.breadcrumb-item {
    color: var(--text-secondary, #6c757d);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: var(--primary-color, #667eea);
}

.breadcrumb-item.active {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted, #adb5bd);
}

/* Instructor Editor Container */
.instructor-editor-container {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

/* Inline Notifications */
.instructor-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.instructor-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.breadcrumb-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.breadcrumb-item {
    color: var(--text-secondary, #6c757d);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--primary-color, #667eea);
}

.breadcrumb-item.active {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted, #adb5bd);
}

/* Instructors Header */
.instructors-isolated .instructors-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructors-isolated .instructors-header h2 {
    color: var(--color-text);
    font-size: 1.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructors-isolated .instructors-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Grid */
.stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-enhanced {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.stat-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Instructors Stats */
.instructors-isolated .instructors-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.instructors-isolated .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.instructors-isolated .stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.instructors-isolated .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #667eea);
    margin-bottom: 0.5rem;
}

.instructors-isolated .stat-value.active {
    color: var(--color-success);
}

.instructors-isolated .stat-value.completed {
    color: var(--color-info);
}

.instructors-isolated .stat-value.pending {
    color: var(--color-warning);
}

.instructors-isolated .stat-label {
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Filters and Search */
.instructors-isolated .instructors-filters {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.instructors-isolated .filter-group,
.instructors-isolated .sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructors-isolated .filter-group label,
.instructors-isolated .sort-group label {
    color: var(--color-border);
    font-weight: 500;
    margin-right: 0.5rem;
}

.instructors-isolated .instructor-filter,
.instructors-isolated .instructor-sort {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.instructors-isolated .instructor-filter:hover,
.instructors-isolated .instructor-sort:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.instructors-isolated .instructor-filter.active,
.instructors-isolated .instructor-sort.active {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border-color: var(--primary-color, #667eea);
}

.instructors-isolated .search-group {
    flex: 1;
    max-width: 300px;
}

.instructors-isolated .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.instructors-isolated .search-input::placeholder {
    color: var(--color-text-light);
}

.instructors-isolated .search-input:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Data Cards */
.data-card-premium {
    background: linear-gradient(135deg, var(--color-surface, #f8f9fa) 0%, var(--color-background, #ffffff) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header-premium {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-premium h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
}

/* Instructors Grid */
.instructors-isolated .instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.instructors-isolated .instructor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.instructors-isolated .instructor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.instructors-isolated .instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.instructors-isolated .instructor-card.active::before {
    background: linear-gradient(90deg, var(--color-success), #059669);
}

.instructors-isolated .instructor-card.inactive::before {
    background: linear-gradient(90deg, #6B7280, #4B5563);
}

.instructors-isolated .instructor-card.vacation::before {
    background: linear-gradient(90deg, var(--color-warning), #D97706);
}

/* Instructor Card Header */
.instructors-isolated .instructor-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instructors-isolated .instructor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.instructors-isolated .instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructors-isolated .instructor-info {
    flex: 1;
}

.instructors-isolated .instructor-info h3 {
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructors-isolated .instructor-title {
    color: var(--primary-color, #667eea);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructors-isolated .instructor-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.instructors-isolated .instructor-contact span {
    color: var(--color-text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Status Badge */
.instructors-isolated .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.instructors-isolated .status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.instructors-isolated .status-badge.inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #6B7280;
}

.instructors-isolated .status-badge.vacation {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.instructors-isolated .status-badge.suspended {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-error);
}

/* Instructor Content */
.instructors-isolated .instructor-content {
    margin-bottom: 1.5rem;
}

.instructors-isolated .instructor-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.instructors-isolated .detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.instructors-isolated .detail-label {
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

.instructors-isolated .detail-value {
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 600;
}

.instructors-isolated .detail-value.rating {
    color: var(--color-warning);
}

/* Belt Colors */
.instructors-isolated .detail-value.belt-white {
    color: var(--color-background);
}

.instructors-isolated .detail-value.belt-yellow {
    color: #FDE047;
}

.instructors-isolated .detail-value.belt-orange {
    color: #FB923C;
}

.instructors-isolated .detail-value.belt-green {
    color: #4ADE80;
}

.instructors-isolated .detail-value.belt-blue {
    color: #60A5FA;
}

.instructors-isolated .detail-value.belt-brown {
    color: #A78BFA;
}

.instructors-isolated .detail-value.belt-black-1,
.instructors-isolated .detail-value.belt-black-2,
.instructors-isolated .detail-value.belt-black-3,
.instructors-isolated .detail-value.belt-black-4,
.instructors-isolated .detail-value.belt-black-5 {
    color: var(--color-text);
    background: linear-gradient(45deg, var(--color-warning), #DC2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Instructor Rating */
.instructors-isolated .instructor-rating {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.instructors-isolated .rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
}

.instructors-isolated .rating-value {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.instructors-isolated .rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.instructors-isolated .star {
    font-size: 1.25rem;
}

.instructors-isolated .star.full {
    color: var(--color-warning);
}

.instructors-isolated .star.half {
    color: var(--color-warning);
}

.instructors-isolated .star.empty {
    color: #4B5563;
}

.instructors-isolated .rating-text {
    color: var(--color-text-light);
    font-size: 0.75rem;
    text-align: center;
}

/* Instructor Specialties */
.instructors-isolated .instructor-specialties {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.instructors-isolated .specialties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
}

.instructors-isolated .specialties-count {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color, #667eea);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.instructors-isolated .specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.instructors-isolated .specialty-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color, #667eea);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Instructor Schedule */
.instructors-isolated .instructor-schedule {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.instructors-isolated .schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
}

.instructors-isolated .schedule-hours {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-info);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.instructors-isolated .schedule-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructors-isolated .schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.instructors-isolated .schedule-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.instructors-isolated .schedule-value {
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Instructor Certifications */
.instructors-isolated .instructor-certifications {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.instructors-isolated .certifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
}

.instructors-isolated .certifications-count {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.instructors-isolated .certifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructors-isolated .certification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.instructors-isolated .certification-name {
    color: var(--color-background);
    font-weight: 500;
    font-size: 0.875rem;
}

.instructors-isolated .certification-date {
    color: var(--color-text-light);
    font-size: 0.75rem;
}

/* Instructor Bio */
.instructors-isolated .instructor-bio {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.instructors-isolated .bio-label {
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.instructors-isolated .bio-content {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Instructor Actions */
.instructors-isolated .instructor-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.instructors-isolated .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.instructors-isolated .btn:hover {
    transform: translateY(-1px);
}

.instructors-isolated .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.instructors-isolated .btn-primary {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
}

.instructors-isolated .btn-primary:hover {
    background: linear-gradient(135deg, #7c8ff0 0%, #8a5bb3 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.instructors-isolated .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-background);
}

.instructors-isolated .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.instructors-isolated .btn-warning {
    background: var(--color-warning);
    color: white;
}

.instructors-isolated .btn-warning:hover {
    background: #D97706;
}

.instructors-isolated .btn-danger {
    background: var(--color-error);
    color: white;
}

.instructors-isolated .btn-danger:hover {
    background: #DC2626;
}

/* Table */
.table-container-premium {
    overflow-x: auto;
}

.table-premium {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-premium th {
    background: var(--color-surface, #f8f9fa);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    border-bottom: 2px solid var(--border-color, #e9ecef);
}

.table-premium td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light, #f1f3f4);
}

.table-row-premium {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.table-row-premium:hover {
    background-color: var(--color-surface, #f8f9fa);
}

/* User Info */
.user-info-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-premium {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-name-premium {
    font-weight: 500;
    color: var(--text-primary, #212529);
}

/* Instructor Professional Badges */
.instructor-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-specialization {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: var(--primary-color, #667eea);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.badge-martial-art {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: var(--success-color, #10b981);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rate {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: var(--warning-color, #f59e0b);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

.badge-count {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-secondary, #6b7280);
    border: 1px solid rgba(107, 114, 128, 0.3);
    font-size: 0.7rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Table Actions */
.table-actions-premium {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-icon.edit-btn {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color, #667eea);
}

.btn-icon.edit-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.btn-icon.delete-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-icon.delete-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.05);
}

/* Loading States */
.loading-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.spinner-premium {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light, #f1f3f4);
    border-top: 4px solid var(--primary-color, #667eea);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Empty State */
.empty-state-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon-premium {
    font-size: 4rem;
    color: var(--text-muted, #adb5bd);
    margin-bottom: 1rem;
}

.empty-state-premium h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary, #6c757d);
    font-weight: 600;
}

.empty-state-premium p {
    margin: 0 0 2rem 0;
    color: var(--text-muted, #adb5bd);
    max-width: 400px;
}

/* Error State */
.error-state-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-icon-premium {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-state-premium h3 {
    margin: 0 0 0.5rem 0;
    color: #dc3545;
    font-weight: 600;
}

.error-message {
    margin: 0 0 2rem 0;
    color: var(--text-secondary, #6c757d);
    max-width: 400px;
}

/* Form Styles */
.form-premium {
    max-width: 1200px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
}

.form-section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light, #f1f3f4);
}

.form-section-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #212529);
    font-size: 1.25rem;
    font-weight: 600;
}

.form-section-header p {
    margin: 0;
    color: var(--text-secondary, #6c757d);
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary, #212529);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    font-style: italic;
}

/* Course Management Styles */
.courses-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-background, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.courses-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.courses-selector select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    color: var(--text-primary, #1f2937);
    transition: all 0.2s ease;
}

.courses-selector select:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.courses-selector button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.courses-selector button:hover {
    background: var(--primary-dark, #5568d3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.courses-selector button i {
    margin-right: 0.5rem;
}

.selected-courses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-card {
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.course-card:hover {
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.course-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.course-card-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.course-level {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: var(--primary-color, #667eea);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-lead {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.course-card-actions {
    display: flex;
    gap: 0.5rem;
}

.course-card-actions button {
    padding: 0.5rem 0.75rem;
    background: var(--danger-color, #ef4444);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-card-actions button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.course-description {
    color: var(--text-secondary, #6c757d);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted, #9ca3af);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-meta-item i {
    color: var(--primary-color, #667eea);
}

.course-meta-label {
    font-weight: 500;
    color: var(--text-primary, #1f2937);
}

.empty-courses-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted, #9ca3af);
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--border-color, #e5e7eb);
}

.empty-courses-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color, #667eea);
    opacity: 0.3;
}

.empty-courses-state p {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.empty-courses-state small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Responsive adjustments for course cards */
@media (max-width: 768px) {
    .courses-selector {
        flex-direction: column;
    }
    
    .courses-selector select {
        width: 100%;
    }
    
    .courses-selector button {
        width: 100%;
    }
    
    .course-card-header {
        flex-direction: column;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color, #e9ecef);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #667eea);
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-primary, #212529);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.field-error.show {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--color-surface, #f8f9fa);
    border-radius: 12px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: var(--color-surface, #f8f9fa);
    color: var(--text-secondary, #6c757d);
    border: 2px solid var(--border-color, #e9ecef);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--border-color, #e9ecef);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Success State */
.success-state-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.success-icon-premium {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-state-premium h3 {
    margin: 0 0 0.5rem 0;
    color: #28a745;
    font-weight: 600;
}

.success-message {
    margin: 0 0 2rem 0;
    color: var(--text-secondary, #6c757d);
    max-width: 400px;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
    }
    
    .form-section-header {
        margin-bottom: 1.5rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .action-group {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .module-header-premium {
        padding: 1.5rem;
    }
    
    .module-title-premium {
        font-size: 1.5rem;
    }
    
    .stats-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .module-filters-premium {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container-premium {
        min-width: auto;
    }
    
    .filter-group-premium {
        justify-content: space-between;
    }
    
    .table-premium {
        font-size: 0.875rem;
    }
    
    .table-premium th,
    .table-premium td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .module-header-premium {
        padding: 1rem;
    }
    
    .card-header-premium {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .table-premium th,
    .table-premium td {
        padding: 0.5rem 0.75rem;
    }
    
    .user-info-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-avatar-premium {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Theme Support */
.theme-light .instructors-isolated .instructor-card,
.theme-light .instructors-isolated .instructors-header,
.theme-light .instructors-isolated .instructors-filters,
.theme-light .instructors-isolated .stat-card,
.theme-light .instructors-isolated .instructor-rating,
.theme-light .instructors-isolated .instructor-specialties,
.theme-light .instructors-isolated .instructor-schedule,
.theme-light .instructors-isolated .instructor-certifications,
.theme-light .instructors-isolated .instructor-bio {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .instructors-isolated .instructor-info h3,
.theme-light .instructors-isolated .instructors-header h2 {
    color: var(--color-text);
}

.theme-light .instructors-isolated .detail-label,
.theme-light .instructors-isolated .rating-header,
.theme-light .instructors-isolated .specialties-header,
.theme-light .instructors-isolated .schedule-header,
.theme-light .instructors-isolated .certifications-header,
.theme-light .instructors-isolated .bio-label {
    color: #6B7280;
}

.theme-light .instructors-isolated .detail-value,
.theme-light .instructors-isolated .certification-name,
.theme-light .instructors-isolated .schedule-value {
    color: #374151;
}

.theme-light .instructors-isolated .instructor-contact span,
.theme-light .instructors-isolated .rating-text,
.theme-light .instructors-isolated .schedule-label,
.theme-light .instructors-isolated .certification-date,
.theme-light .instructors-isolated .bio-content {
    color: #6B7280;
}

.theme-light .instructors-isolated .search-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
}

.theme-light .instructors-isolated .search-input::placeholder {
    color: #6B7280;
}

/* Accessibility */
.instructors-isolated .instructor-card:focus-visible {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
}

.instructors-isolated .btn:focus-visible {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
}

.instructors-isolated .search-input:focus-visible {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .instructors-isolated .instructors-actions,
    .instructors-isolated .instructor-actions {
        display: none;
    }
    
    .instructors-isolated .instructor-card {
        background: white;
        border: 1px solid #ccc;
        color: black;
        break-inside: avoid;
    }
    
    .instructors-isolated .instructor-info h3,
    .instructors-isolated .certification-name {
        color: #000;
    }
    
    .instructors-isolated .instructor-photo {
        border-color: #ccc;
    }
}
