/* AI-Horizon Ed Platform - Custom Styles */

/* Color Scheme */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Body and Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.bg-gradient-primary {
    background: var(--gradient-primary);
    color: white;
}

.jumbotron {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
}

.card-footer {
    border-radius: 0 0 10px 10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Skill Cards */
.skill-card .card {
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.skill-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.skill-card .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--light-color);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Admin Dashboard */
.admin-card {
    border-left: 4px solid var(--primary-color);
}

.admin-card .card-header {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

/* Statistics Cards */
.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .jumbotron .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.border-radius-lg {
    border-radius: 15px;
}

.opacity-50 {
    opacity: 0.5;
}

/* Skill Detail Page */
.skill-detail-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.learning-path-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.learning-path-item.completed {
    border-left-color: var(--success-color);
    opacity: 0.7;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Search and Filter */
.search-filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Progress Indicators */
.progress-bar {
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress {
    border-radius: 10px;
    height: 8px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2c3e50;
        --dark-color: #ecf0f1;
    }
    
    body {
        background-color: #34495e;
        color: #ecf0f1;
    }
    
    .card {
        background-color: #2c3e50;
        color: #ecf0f1;
    }
    
    .bg-light {
        background-color: #2c3e50 !important;
        color: #ecf0f1 !important;
    }
}

/* Fix contrast issues in light background boxes - overrides for readability */
.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important; /* Dark text on light background */
}

.bg-light pre {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

.bg-light code {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.bg-light .small {
    color: #495057 !important;
}

.bg-light ul li {
    color: #212529 !important;
}

.bg-light h6 {
    color: #212529 !important;
    font-weight: 600;
}

/* Improve readability for methodology content */
.methodology-content {
    line-height: 1.6;
}

.methodology-content pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.methodology-content code {
    background-color: #f8f9fa;
    color: #212529;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Alert styling improvements */
.alert {
    border-left: 4px solid;
    border-radius: 0.375rem;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-success {
    border-left-color: #198754;
}

.alert-warning {
    border-left-color: #ffc107;
}

/* Badge improvements */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Table styling improvements for better contrast */
.table {
    color: #212529 !important;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.table th {
    background-color: #343a40 !important;
    color: #ffffff !important;
    font-weight: 600;
    border-bottom: 2px solid #495057;
    padding: 0.75rem;
}

.table td {
    color: #212529 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.table-striped tbody tr:nth-of-type(even) td {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.table tbody tr:hover td {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow-x: auto;
}

/* Focus improvements for accessibility */
a:focus, button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bg-light {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    .alert {
        border: 1px solid #000000;
    }
} 