/* Couleurs principales - Thème Pharmacie */
:root {
    --primary-color: #00a651;      /* Vert pharmacie */
    --primary-dark: #008744;       /* Vert foncé */
    --secondary-color: #0066b2;    /* Bleu médical */
    --accent-color: #ffffff;       /* Blanc médical */
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --pharmacy-green: #00a651;
    --medical-blue: #0066b2;
    --soft-gray: #e9ecef;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

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

/* Hero Section - Thème Pharmacie */
.hero-section {
    background: linear-gradient(135deg, #00a651 0%, #0066b2 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="%23ffffff" opacity="0.05">+</text></svg>') repeat;
    background-size: 100px 100px;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.stat-card p {
    margin: 0;
    color: #6c757d;
}

/* Category Cards - Thème Pharmacie */
.category-card {
    background: linear-gradient(135deg, var(--pharmacy-green) 0%, var(--medical-blue) 100%);
    color: white;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.3);
    border-color: white;
}

.category-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.course-card img {
    height: 200px;
/* Progress Bars - Thème Pharmacie */
.progress {
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #00a651 0%, #0066b2 100%);
}

.progress-bar {
    background: linear-gradient(90deg, #00a651 0%, #0066b2 100%);
    border-radius: 10px;
}

/* Login Page Enhancements */
.login-page {
    background-image: 
        linear-gradient(135deg, rgba(0,166,81,0.05) 0%, rgba(0,102,178,0.05) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300a651" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: cover, 100px 100px;
    background-repeat: no-repeat, repeat;
}

.login-page .card {
    animation: fadeInUp 0.6s ease-out;
}

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

.login-page .form-control:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.25);
}

.login-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.3);
}

/* Course List Page Improvements */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #00a651;
}

.course-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,166,81,0.2);
}

.course-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #00a651 0%, #0066b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-thumbnail::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="%23ffffff" opacity="0.05">+</text></svg>') repeat;
    background-size: 50px 50px;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Cards Enhancement */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 166, 81, 0.15) !important;
    border-color: #00a651;
}

/* Badge Pharmacy */
.badge-pharmacy {
    background: linear-gradient(135deg, #00a651 0%, #0066b2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Medical Pattern Background */
.medical-pattern {
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300a651" stroke-width="0.5" opacity="0.05"/><text x="50" y="55" text-anchor="middle" font-size="40" fill="%230066b2" opacity="0.03">+</text></svg>');
    background-size: 150px 150px;
    background-repeat: repeat;
}

/* Footer Enhancements */
.footer-pharmacy {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer-pharmacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a651 0%, #0066b2 100%);
}

.footer-pharmacy a {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.footer-pharmacy a:hover {
    color: #00a651;
    text-decoration: none;
}

/* Navbar Enhancements */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
}

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

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

/* Icon Box Enhancements */
.icon-box {
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}
.progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--soft-gray);
    height: 12px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--pharmacy-green) 0%, var(--medical-blue) 100%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Learning Interface */
.learning-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    height: calc(100vh - 56px);
    overflow-y: auto;
    position: sticky;
    top: 56px;
}

.lesson-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lesson-item:hover {
    background: #e9ecef;
}

.lesson-item.active {
    background: #0d6efd;
    color: white;
}

.lesson-item.completed {
    background: #d4edda;
}

.lesson-item.completed i {
    color: #198754;
}

/* Video Player */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background: #212529;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%)!important;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

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

footer a:hover {
    color: white;
}

/* Badges */
.badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .learning-sidebar {
        position: relative;
        height: auto;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

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

/* Certificate Badge */
.certificate-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.certificate-badge i {
    font-size: 3rem;
    color: white;
}

/* Module Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
/* Scrollbar Styling - Thème Pharmacie */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--soft-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pharmacy-green), var(--medical-blue));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Badges Pharmacie */
.badge-pharmacy {
    background: var(--pharmacy-green);
    color: white;
}

.badge-medical {
    background: var(--medical-blue);
    color: white;
}

/* Pharmacy Icons */
.pharmacy-icon {
    color: var(--pharmacy-green);
    font-size: 1.2em;
}

/* Medical Cross Pattern */
.medical-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0, 166, 81, 0.03) 35px, rgba(0, 166, 81, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0, 102, 178, 0.03) 35px, rgba(0, 102, 178, 0.03) 70px);
}
::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}
