/* General Styles */
:root {
    /* Main Color Palette - Earthy Greens */
    --dust-grey: #DAD7CD;
    --dry-sage: #A3B18A;
    --forest-green: #588157;
    --deep-forest: #3A5A40;
    --darkest-green: #344E41;

    /* Functional Colors */
    --primary-color: #588157;
    --secondary-color: #A3B18A;
    --success-color: #588157;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #A3B18A;
    --light-color: #DAD7CD;
    --dark-color: #344E41;

    /* Bootstrap Override */
    --bs-primary: #588157;
    --bs-primary-rgb: 88, 129, 87;
}

/* Override Bootstrap Primary Colors Globally */
.text-primary {
    color: #588157 !important;
}

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

.border-primary {
    border-color: #588157 !important;
}

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

.alert-primary {
    background-color: rgba(88, 129, 87, 0.1) !important;
    border-color: #588157 !important;
    color: #344E41 !important;
}

.bg-info {
    background-color: #A3B18A !important;
}

.badge.bg-info {
    background-color: #A3B18A !important;
    color: white !important;
}

.text-info {
    color: #A3B18A !important;
}

.btn-info {
    background-color: #A3B18A !important;
    border-color: #A3B18A !important;
    color: white !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 0 !important;
    margin: 0;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700 !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: #333 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #588157 0%, #3A5A40 100%);
    min-height: 500px;
    margin-top: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.hero-section .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Course Card Styles */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

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

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    min-height: 50px;
}

.course-card .card-footer {
    padding: 1rem;
}

/* Button Styles */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section i {
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #344E41 0%, #3A5A40 100%) !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

/* Card Styles */
.card {
    border-radius: 10px;
    border: none;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Form Styles */
.form-control {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #ddd;
}

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

/* Avatar Styles */
.rounded-circle {
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .course-card .card-title {
        min-height: auto;
    }
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Sticky Sidebar */
.sticky-top {
    position: sticky;
    z-index: 1020;
}

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

.course-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading States */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dust-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--dry-sage);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-green);
}