/* Main Pages - Consolidated Styles */

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .timeline::before {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 0;
    margin-left: 55%;
    text-align: left;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content::before {
    left: -60px;
    right: auto;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content::before {
    right: -60px;
    left: auto;
}

[dir="rtl"] .profile-image-placeholder i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .package-features li::before {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .enable-link, 
[dir="rtl"] .action-link {
    margin-right: 1rem;
    margin-left: 0;
}

/* Arabic font support */
body[lang="ar"] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Teacher avatar placeholder */
.teacher-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: #6c757d;
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.no-teachers {
    padding: 3rem 1rem;
}

.no-teachers i {
    opacity: 0.5;
}

body[lang="ar"] h1,
body[lang="ar"] h2,
body[lang="ar"] h3,
body[lang="ar"] h4,
body[lang="ar"] h5,
body[lang="ar"] h6 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Course Image Placeholder */
.course-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 1px solid var(--border-color);
}

.course-image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Profile Image Styles */
.profile-image-section {
    text-align: center;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    background: var(--light-color);
}

.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.profile-image-placeholder i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* No Data States */
.no-courses-found,
.no-packages-found {
    padding: 3rem 1rem;
    text-align: center;
}

.no-courses-found i,
.no-packages-found i {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-courses-found h4,
.no-packages-found h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.no-courses-found p,
.no-packages-found p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 6rem 0;
}

.mission-vision {
    background: var(--light-color);
    padding: 5rem 0;
}

.mission-card, .vision-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    text-align: center;
}

.mission-icon, .vision-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.values-section {
    padding: 5rem 0;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.team-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.team-card {
    text-align: center;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
    text-align: left;
}

.timeline-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.stats-section {
    padding: 5rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 6rem 0;
}

.contact-info {
    background: var(--light-color);
    padding: 5rem 0;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    padding: 5rem 0;
}

.form-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.map-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.map-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Dashboard Page Styles */
.dashboard-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 6rem 0;
}

.features-section {
    padding: 5rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cta-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.cta-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Courses Page Styles */
.course-filters {
    background: var(--light-color);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

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

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.course-grid {
    margin-bottom: 3rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Packages Page Styles */
.packages-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 6rem 0;
}

.packages-section {
    padding: 5rem 0;
}

.package-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Teachers Page Styles */
.teachers-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 6rem 0;
}

.teachers-section {
    padding: 5rem 0;
}

.teacher-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.teacher-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
}

.teacher-specialties {
    margin: 1rem 0;
}

.specialty-tag {
    display: inline-block;
    background: var(--light-color);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.teacher-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin: 1rem 0;
}

/* Profile Page Styles */
.profile-section {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: #f8fafc;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.profile-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.profile-avatar-section {
    margin-bottom: 2rem;
}

.avatar-container {
    display: inline-block;
    text-align: center;
}

.avatar-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.avatar-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.info-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-profile {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-edit {
    background: var(--primary-color);
    color: white;
}

.btn-edit:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

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

.security-card .info-group {
    background: #fef7ff;
    border-color: #e9d5ff;
}

.preferences-card .info-group {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.enable-link, .action-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.enable-link:hover, .action-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.preference-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.preference-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .profile-info-grid {
        gap: 1rem;
    }
    
    .info-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-profile {
        width: 100%;
        max-width: 200px;
    }
    
    .avatar-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* Dashboard Page Styles */
.dashboard-section {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: #f8fafc;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.welcome-message {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.welcome-message h2 {
    color: #0369a1;
    margin-bottom: 1rem;
}

.welcome-message p {
    color: #0c4a6e;
    margin-bottom: 0;
}

.dashboard-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    margin-bottom: 2rem;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.dashboard-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.dashboard-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-action-btn strong {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.quick-action-btn small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
        right: auto;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .contact-form .form-card {
        padding: 2rem;
    }
    
    .profile-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .about-hero,
    .contact-hero,
    .dashboard-hero,
    .packages-hero,
    .teachers-hero,
    .profile-hero {
        padding: 4rem 0;
    }
    
    .mission-vision,
    .contact-info,
    .features-section,
    .cta-section,
    .packages-section,
    .teachers-section,
    .profile-section {
        padding: 3rem 0;
    }
    
    .mission-card,
    .vision-card,
    .contact-card,
    .feature-card,
    .package-card,
    .teacher-card {
        padding: 1.5rem;
    }
}
