﻿/* Custom Styles for ELearningSystem */

:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f8f9fc;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #224abe 100%);
    border-radius: 0 0 1rem 1rem;
}

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
    }

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--primary-color);
    }

.feature-icon {
    color: var(--primary-color);
}

.btn {
    border-radius: 0.35rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #2e59d9;
        border-color: #2653d4;
        transform: translateY(-1px);
    }

.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 700;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 600;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.8);
    }

.progress {
    border-radius: 0.35rem;
    height: 0.75rem;
}

.progress-bar {
    border-radius: 0.35rem;
}

.badge {
    font-weight: 600;
    border-radius: 0.35rem;
}

.alert {
    border: none;
    border-radius: 0.35rem;
    font-weight: 600;
}

/* Dashboard specific styles */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Loading animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 700;
    color: var(--dark-color);
    background-color: #f8f9fc;
}

/* Footer styles */
footer {
    margin-top: auto;
}

    footer a:hover {
        color: #fff !important;
        text-decoration: underline;
    }

.social-links a {
    transition: color 0.3s ease;
}

    .social-links a:hover {
        color: var(--primary-color) !important;
    }
