/**
 * custom.css - AI-Modifiable Stylesheet
 * 
 * NOTICE TO AI AGENTS:
 * - This is the ONLY CSS file you are allowed to modify
 * - Always append new styles, never remove existing ones
 * - Use module-specific prefixes to avoid conflicts
 * - Add comments with module name and generation date
 * - Scope styles with specific selectors (e.g., #module-name)
 * 
 * Format for additions:
 * /* Module: {module-name} - Generated on {YYYY-MM-DD} */
 * /* Business Prompt: {brief description} */
 * 
 * NEVER use !important unless absolutely necessary
 * NEVER remove or modify existing styles without explicit request
 */

/* RTL and Theme Updates - Generated on 2025-09-11 */
/* Business Prompt: Make website RTL with NELC purple theme #7747C1 */

/* NELC Header Styling */
.nelc-header {
    background: linear-gradient(135deg, #7747C1 0%, #9B59D1 100%);
    border-bottom: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(119, 71, 193, 0.3);
}

.nelc-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

/* Global RTL Enhancements */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

/* Primary Color Updates */
.btn-primary {
    background-color: #7747C1;
    border-color: #7747C1;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary:focus-visible {
    background-color: #6639A8 !important;
    border-color: #6639A8 !important;
    box-shadow: 0 0 0 0.25rem rgba(119, 71, 193, 0.25) !important;
}

.btn-outline-primary {
    color: #7747C1;
    border-color: #7747C1;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary:focus-visible {
    background-color: #7747C1 !important;
    border-color: #7747C1 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(119, 71, 193, 0.25) !important;
}

/* Secondary button updates for consistency */
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active, .btn-secondary.active, .btn-secondary:focus-visible {
    background-color: #5a5a5a !important;
    border-color: #5a5a5a !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25) !important;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active, .btn-outline-secondary.active, .btn-outline-secondary:focus-visible {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25) !important;
}

/* Remove Bootstrap's default focus styles */
.btn:focus {
    box-shadow: none !important;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(119, 71, 193, 0.25) !important;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(119, 71, 193, 0.25) !important;
}

.text-primary {
    color: #7747C1 !important;
}

.bg-primary {
    background-color: #7747C1 !important;
}

.badge.bg-primary {
    background-color: #7747C1 !important;
}

.progress-bar {
    background-color: #7747C1;
}

.spinner-border.text-primary {
    color: #7747C1 !important;
}

/* RTL-specific adjustments */
[dir="rtl"] .d-flex.gap-3 {
    gap: 1rem !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* Global custom styles can be added below */

/* Module: test-module - Generated on 2025-09-11 */
/* Business Prompt: Manual test module to validate template system */
.test-module-wrapper {
    padding: 20px 0;
}

/* Enhance card appearance for test module */
.container .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    transition: box-shadow 0.3s ease;
}

.container .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Module: home - Generated on 2025-09-11 - Updated for RTL */
/* Business Prompt: Home page with Hello Nelc message and link to courses */
#module-home .display-4 {
    color: #7747C1;
    font-weight: 300;
}

#module-home .lead {
    color: #666;
}

/* RTL Button spacing */
[dir="rtl"] #module-home .d-flex.gap-3 .btn + .btn {
    margin-right: 1rem;
    margin-left: 0;
}

/* Module: courses - Generated on 2025-09-11 */
/* Business Prompt: Courses page with API integration to fetch and display courses */
#courses-container .course-card {
    margin-bottom: 1.5rem;
}

#courses-container .card {
    height: 100%;
    transition: transform 0.2s;
}

#courses-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#courses-container .card-title {
    color: #7747C1;
}

#courses-container .badge {
    font-size: 0.85rem;
}

/* RTL adjustments for course cards */
[dir="rtl"] #courses-container .d-flex.justify-content-between {
    text-align: right;
}

/* Module: learners - Generated on 2025-09-11 */
/* Business Prompt: Learners page with API integration to fetch and display learners list */
#learners-container .learner-card {
    margin-bottom: 1.5rem;
}

#learners-container .card {
    height: 100%;
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.125);
}

#learners-container .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.learner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

#learners-container .card-title {
    color: #7747C1;
    font-size: 1.1rem;
}

#learners-container .job-title {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
}

#learners-container .join-date {
    font-size: 0.85rem;
    color: #95a5a6;
}

#learners-pagination {
    margin-top: 2rem;
}

#page-info {
    min-width: 100px;
    text-align: center;
}