:root {
    /* Primary Colors */
    --primary-purple: #6c5ce7;
    --light-purple: #a29bfe;
    --dark-purple: #5d4ae1;
    --secondary-blue: #0984e3;
    --secondary-green: #00b894;
    --secondary-orange: #fdcb6e;

    /* Neutral Colors */
    --bg-gray: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --black: #000000;

    /* Status Colors */
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #0984e3;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Typography */
    --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-round: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Placeholder */
    --placeholder-bg: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    --placeholder-animation: placeholderShimmer 1.5s infinite;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Placeholder Animation */
@keyframes placeholderShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--dark-purple);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    border: 2px solid var(--primary-purple);
}

.btn-primary:hover {
    background: var(--dark-purple);
    border-color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline-primary:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background: var(--bg-gray);
    color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* Navigation */
.navbar {
    background: var(--bg-gray);
    //box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
    transition: var(--transition-normal);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-text {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--primary-purple);
}

.navbar > .container {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: var(--space-sm) var(--space-md) !important;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-purple);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-switcher .flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.language-switcher .dropdown-toggle::after {
    display: none;
}

/* Placeholder Elements */
.placeholder {
    background: var(--placeholder-bg);
    background-size: 200% 100%;
    animation: var(--placeholder-animation);
    border-radius: var(--radius-md);
}

.placeholder-text {
    background: var(--placeholder-bg);
    background-size: 200% 100%;
    animation: var(--placeholder-animation);
    border-radius: var(--radius-sm);
    height: 1em;
    margin: 0.25em 0;
}

.placeholder-image {
    background: var(--placeholder-bg);
    background-size: 200% 100%;
    animation: var(--placeholder-animation);
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
}

.placeholder-avatar {
    background: var(--placeholder-bg);
    background-size: 200% 100%;
    animation: var(--placeholder-animation);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    padding-bottom: var(--space-xl);
    background-image: url("../images/world.png");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    height: 100vh;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(108, 92, 231, 0.1) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) 0;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--dark-purple);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition-normal);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-badge {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-badge:nth-child(2) {
    top: 20%;
    left: -20px;
    animation-delay: 1s;
}

.floating-badge:nth-child(3) {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

/* Section Styles */
.section-padding {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-purple);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--primary-purple) 0%,
        var(--light-purple) 100%
    );
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-light);
}

/* Course Cards */
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-purple);
}

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-level {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--white);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-body {
    padding: var(--space-lg);
}

.course-category {
    color: var(--primary-purple);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

.course-description {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.course-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.course-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-purple);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    border-color: var(--primary-purple);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-size: 4rem;
    color: var(--light-purple);
    opacity: 0.3;
    font-family: serif;
    z-index: 0;
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 2px solid var(--primary-purple);
}

.author-info h5 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(
        135deg,
        var(--primary-purple) 0%,
        var(--dark-purple) 100%
    );
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-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" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Login Page Styles */
.login-wrapper {
    margin-top: 120px;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    margin: 120px auto 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.login-image {
    background: url("../images/login.png") center/cover no-repeat;
    min-height: 500px;
    position: relative;
}

.login-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-form {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.toggle-login {
    display: flex;
    border-radius: 30px;
    background: var(--bg-gray);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.toggle-login button {
    flex: 1;
    border: none;
    padding: 12px;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-light);
}

.toggle-login button.active {
    background: var(--primary-purple);
    color: white;
}

.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.btn-login {
    background: var(--primary-purple);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    color: white;
    transition: var(--transition-normal);
}

.btn-login:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.forgot-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--primary-purple);
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(
        135deg,
        var(--primary-purple) 0%,
        var(--dark-purple) 100%
    );
    color: var(--white);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.about-hero::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" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(
        135deg,
        var(--primary-purple) 0%,
        var(--light-purple) 100%
    );
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: rotate(15deg) scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: var(--white);
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.value-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.75rem;
    background: var(--bg-gray);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.value-card:hover .value-icon-container {
    background: linear-gradient(
        135deg,
        var(--primary-purple) 0%,
        var(--light-purple) 100%
    );
    transform: scale(1.05);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    transition: var(--transition-normal);
}

.value-card:hover .value-icon {
    color: var(--white);
}

.value-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* History Section */
.history-section {
    padding: 100px 0;
    background: var(--bg-gray);
    position: relative;
}

.history-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.history-container::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--primary-purple) 10%,
        var(--primary-purple) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.history-item {
    position: relative;
    width: calc(50% - 60px);
    margin-bottom: 4rem;
}

.history-item:nth-child(odd) {
    float: left;
    text-align: right;
}

.history-item:nth-child(even) {
    float: right;
    text-align: left;
}

.history-dot {
    position: absolute;
    top: 30px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--primary-purple);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-normal);
}

.history-item:hover .history-dot {
    transform: scale(1.2);
    background: var(--primary-purple);
}

.history-item:nth-child(odd) .history-dot {
    right: -62px;
}

.history-item:nth-child(even) .history-dot {
    left: -62px;
}

.history-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.history-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-purple);
}

.history-year {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-gray);
    border-radius: 50px;
}

.history-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.history-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: var(--white);
}

.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    height: 100%;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-round);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--border-color);
    transition: var(--transition-normal);
}

.team-card:hover .team-avatar {
    border-color: var(--primary-purple);
    transform: scale(1.05);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.team-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-position {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-normal);
    text-decoration: none;
}

.team-social a:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(
        135deg,
        var(--primary-purple) 0%,
        var(--dark-purple) 100%
    );
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0 0.75rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-brand .brand-text {
    color: var(--white);
}

.footer-description {
    color: #a0aec0;
    margin-bottom: var(--space-lg);
}

.footer-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-purple);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    transition: var(--transition-normal);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #a0aec0;
}

.footer-contact i {
    color: var(--primary-purple);
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: var(--font-size-sm);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-md);
    z-index: 9999;
    max-width: 500px;
    display: none;
    border: 1px solid var(--border-color);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
}

.btn-accept,
.btn-decline {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-normal);
}

.btn-accept {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-accept:hover {
    background: var(--dark-purple);
}

.btn-decline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-decline:hover {
    background: var(--bg-gray);
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    background: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Clear floats */
.history-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Login Page */
    .login-wrapper {
        margin-top: 0;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        box-shadow: none;
    }

    .login-image {
        display: none;
    }

    .login-form {
        padding: 40px 25px;
        width: 100%;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* About Page */
    .about-hero {
        padding: 100px 0 60px;
        margin-top: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .history-container::before {
        left: 30px;
    }

    .history-item {
        width: calc(100% - 80px);
        float: none !important;
        margin-left: 80px;
        text-align: left !important;
    }

    .history-item:nth-child(odd) .history-dot,
    .history-item:nth-child(even) .history-dot {
        left: -44px;
        right: auto;
    }

    .team-avatar {
        width: 120px;
        height: 120px;
    }

    /* Navigation */
    .navbar {
        height: 70px;
    }

    .nav-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Floating badges */
    .floating-badge {
        display: none;
    }
}

@media (max-width: 576px) {
    /* Typography */
    h1,
    .hero-title {
        font-size: 1.75rem !important;
    }

    h2,
    .section-title {
        font-size: 1.5rem !important;
    }

    /* Sections */
    .section-padding {
        padding: 3rem 0;
    }

    /* Cards */
    .feature-card,
    .role-card,
    .course-card,
    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .course-thumbnail {
        height: 150px;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .history-item {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .history-item:nth-child(odd) .history-dot,
    .history-item:nth-child(even) .history-dot {
        left: -34px;
    }

    /* Cookie Consent */
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons button {
        flex: 1;
    }

    /* Back to Top Button */
    .btn-back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none !important;
    }

    .nav-link:hover::after {
        width: 0 !important;
    }

    .nav-link.active::after {
        width: 80% !important;
    }

    .course-card:hover,
    .feature-card:hover,
    .role-card:hover {
        transform: none !important;
    }

    /* Increase touch target sizes */
    .nav-link {
        padding: 1rem !important;
    }

    .lang-btn {
        padding: 0.75rem 1rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    /* Ensure proper button sizes for touch */
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
    }

    .btn-lg {
        min-height: 50px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .floating-badge,
    .cookie-consent,
    .btn-back-to-top,
    .toggle-login,
    .language-switcher {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000000 !important;
        background: #ffffff !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
    }

    a {
        color: #000000 !important;
        text-decoration: underline;
    }

    .section-padding {
        padding: 1rem 0 !important;
    }

    .hero-section,
    .about-hero {
        background: none !important;
        padding: 2rem 0 !important;
    }

    .login-wrapper {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gray: #121212;
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --white: #1e1e1e;
        --border-color: #333333;
        --placeholder-bg: linear-gradient(
            90deg,
            #2d2d2d 25%,
            #3d3d3d 50%,
            #2d2d2d 75%
        );
    }

    .feature-card,
    .role-card,
    .course-card,
    .testimonial-card,
    .cookie-consent,
    .stat-card,
    .value-card,
    .history-content,
    .team-card {
        background-color: #2d2d2d;
        border-color: #333333;
    }

    .footer {
        background-color: #000000;
    }

    .login-wrapper {
        background-color: #1e1e1e;
    }

    .toggle-login {
        background-color: #2d2d2d;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* MENU */
    .navbar-nav {
        width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    /* CONTROLS INLINE */
    .nav-controls {
        display: flex;
        flex-direction: row; /* 🔥 SAME LINE */
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px; /* petit espace bas */
    }

    .language-switcher button {
        padding: 10px 14px;
        border-radius: 12px;
    }

    .nav-controls .btn-primary {
        padding: 10px 18px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
}

/* PAGE LOADER */
#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

.loader-content p {
    margin-top: 15px;
    font-weight: 500;
    color: #555;
}

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

/* =========================================== */
/* AMAZING GLOBAL STYLES FOR BOOTSTRAP COMPONENTS */
/* =========================================== */

:root {
    /* Enhanced color palette */
    --primary-purple: #6c5ce7;
    --primary-purple-light: #7d6dff;
    --primary-purple-dark: #5b4bd8;
    --light-purple: #a29bfe;
    --bg-gray: #f5f7fa;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --white: #ffffff;
    --success: #00b894;
    --danger: #ff6b6b;
    --warning: #fdcb6e;
    --info: #00cec9;
    --border-color: #dfe6e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =========================================== */
/* ENHANCED CARDS */
/* =========================================== */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    background: var(--white);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-purple),
        var(--light-purple)
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9ff 100%);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    backdrop-filter: blur(10px);
}

.card-header h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.25rem;
    background: linear-gradient(
        90deg,
        var(--primary-purple),
        var(--light-purple)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: #f9faff;
    border-top: 1px solid rgba(108, 92, 231, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

/* =========================================== */
/* ENHANCED BUTTONS */
/* =========================================== */

.btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--primary-purple-light)
    );
    color: white;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--primary-purple-dark),
        var(--primary-purple)
    );
    color: white;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
}

/* Outline Buttons */
.btn-outline-primary {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--primary-purple-light)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: calc(var(--radius-md) - 2px);
}

.btn-outline-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary:hover {
    color: white;
    border-color: transparent;
}

/* Small Buttons */
.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Button Group */
.btn-group {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group .btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-right: none;
}

.btn-group .btn:hover {
    z-index: 2;
}

/* =========================================== */
/* ENHANCED TABLES */
/* =========================================== */

.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(108, 92, 231, 0.05);
}

.table tbody tr:hover {
    background: linear-gradient(
        90deg,
        rgba(108, 92, 231, 0.03),
        rgba(162, 155, 254, 0.03)
    );
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
    z-index: 1;
    position: relative;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-top: 1px solid rgba(108, 92, 231, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
}

.table tbody tr:first-child td {
    border-top: none;
}

.table-bordered {
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: linear-gradient(
        90deg,
        rgba(108, 92, 231, 0.02),
        rgba(162, 155, 254, 0.02)
    );
}

.table-responsive {
    border-radius: var(--radius-md);
}

/* =========================================== */
/* ENHANCED BADGES */
/* =========================================== */

.badge {
    padding: 0.35em 0.75em;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.badge.bg-primary {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    ) !important;
    color: white !important;
    border: none;
}

.badge.bg-success {
    background: linear-gradient(135deg, #00b894, #55efc4) !important;
    color: white !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff6b6b, #ff7675) !important;
    color: white !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7) !important;
    color: #2d3436 !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #00cec9, #81ecec) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #636e72, #b2bec3) !important;
    color: white !important;
}

/* =========================================== */
/* ENHANCED FORMS */
/* =========================================== */

.form-control {
    border: 2px solid rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    background: var(--white);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    background: linear-gradient(
        0deg,
        rgba(108, 92, 231, 0.02),
        rgba(108, 92, 231, 0.02)
    );
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-text {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.input-group .form-control {
    border-radius: var(--radius-md);
}

.input-group-text {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    color: white;
    border: none;
    font-weight: 600;
}

/* Form Switches */
.form-check-input:checked {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
}

/* =========================================== */
/* ENHANCED PAGINATION */
/* =========================================== */

.pagination {
    gap: 4px;
}

.page-link {
    border: none;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-base);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin: 0 2px;
}

.page-link:hover {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.active .page-link {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.page-item.disabled .page-link {
    background: var(--bg-gray);
    color: var(--text-light);
    box-shadow: none;
}

/* =========================================== */
/* ENHANCED ALERTS */
/* =========================================== */

.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
}

.alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.1;
}

.alert-success {
    background: linear-gradient(
        135deg,
        rgba(0, 184, 148, 0.1),
        rgba(85, 239, 196, 0.1)
    );
    color: #00b894;
    border-left-color: #00b894;
}

.alert-danger {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 107, 0.1),
        rgba(255, 118, 117, 0.1)
    );
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

.alert-warning {
    background: linear-gradient(
        135deg,
        rgba(253, 203, 110, 0.1),
        rgba(255, 234, 167, 0.1)
    );
    color: #fdcb6e;
    border-left-color: #fdcb6e;
}

.alert-info {
    background: linear-gradient(
        135deg,
        rgba(0, 206, 201, 0.1),
        rgba(129, 236, 236, 0.1)
    );
    color: #00cec9;
    border-left-color: #00cec9;
}

.alert-dismissible .btn-close {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
}

/* =========================================== */
/* ENHANCED TOOLTIPS */
/* =========================================== */

.tooltip {
    --bs-tooltip-bg: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    --bs-tooltip-color: white;
}

.tooltip .tooltip-inner {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.tooltip.show {
    opacity: 1;
}

/* =========================================== */
/* ENHANCED MODALS */
/* =========================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    padding: 1.25rem 1.5rem;
    background: #f9faff;
}

/* =========================================== */
/* ENHANCED DROPDOWNS */
/* =========================================== */

.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    background: var(--white);
    min-width: 200px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(
        135deg,
        rgba(108, 92, 231, 0.08),
        rgba(162, 155, 254, 0.08)
    );
    color: var(--primary-purple);
    transform: translateX(4px);
}

.dropdown-divider {
    margin: 0.5rem;
    opacity: 0.1;
}

/* =========================================== */
/* ENHANCED PROGRESS BARS */
/* =========================================== */

.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(108, 92, 231, 0.1);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(
        90deg,
        var(--primary-purple),
        var(--light-purple)
    );
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* =========================================== */
/* ENHANCED COLOR PREVIEW */
/* =========================================== */

.subject-color-preview {
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
    border: 4px solid white;
    position: relative;
    overflow: hidden;
}

.subject-color-preview::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 60%,
        rgba(255, 255, 255, 0.2) 60%
    );
    border-radius: 50%;
}

/* =========================================== */
/* ENHANCED ANIMATIONS */
/* =========================================== */

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* =========================================== */
/* ENHANCED ICONS */
/* =========================================== */

.bi {
    transition: transform var(--transition-fast);
}

.btn:hover .bi {
    transform: scale(1.1);
}

/* =========================================== */
/* SPECIAL EFFECTS */
/* =========================================== */

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--primary-purple),
        var(--light-purple),
        var(--primary-purple)
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glow-effect:hover::after {
    opacity: 0.4;
    filter: blur(8px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(
        90deg,
        var(--primary-purple),
        var(--light-purple)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================== */
/* RESPONSIVE ENHANCEMENTS */
/* =========================================== */

@media (max-width: 768px) {
    .card {
        border-radius: var(--radius-md);
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table thead th {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .alert {
        padding: 0.875rem 1rem;
    }
}

/* =========================================== */
/* CUSTOM UTILITIES */
/* =========================================== */

.shadow-soft {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-medium {
    box-shadow: var(--shadow-md) !important;
}

.shadow-hard {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-full {
    border-radius: var(--radius-full) !important;
}

.transition-all {
    transition: all var(--transition-base) !important;
}

.transition-fast {
    transition: all var(--transition-fast) !important;
}

.transition-slow {
    transition: all var(--transition-slow) !important;
}

.hover-lift:hover {
    transform: translateY(-2px) !important;
}

.hover-scale:hover {
    transform: scale(1.02) !important;
}

.text-gradient {
    background: linear-gradient(
        90deg,
        var(--primary-purple),
        var(--light-purple)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    ) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #00b894, #55efc4) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ff6b6b, #ff7675) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(
            135deg,
            var(--primary-purple),
            var(--light-purple)
        )
        1;
}

/* =========================================== */
/* LOADING SPINNER */
/* =========================================== */

.spinner-glow {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(108, 92, 231, 0.2);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner-glow::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top-color: var(--light-purple);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

/* =========================================== */
/* CUSTOM SCROLLBAR */
/* =========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(108, 92, 231, 0.05);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--light-purple)
    );
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        135deg,
        var(--primary-purple-dark),
        var(--primary-purple)
    );
}

/* =========================================== */
/* PRINT STYLES */
/* =========================================== */

@media print {
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .btn,
    .dropdown,
    .pagination {
        display: none !important;
    }

    .table {
        border: 1px solid #dee2e6;
    }
}

/* =========================================== */
/* DARK MODE SUPPORT (OPTIONAL) */
/* =========================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-gray: #1a1d29;
        --white: #2d3246;
        --text-primary: #e2e8f0;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .card {
        background: var(--white);
    }

    .form-control {
        background: #374151;
        color: var(--text-primary);
        border-color: #4b5563;
    }

    .form-control:focus {
        background: #4b5563;
    }
}

/* Fix Laravel pagination spacing */
.pagination {
    margin: 0;
    gap: 4px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25;
}

.pagination .page-link svg {
    width: 1rem !important;
    height: 1rem !important;
}
.pagination .page-link {
    border-radius: 0.375rem;
}

/* Style pour la dropdown accordéon */
.dropdown-accordion {
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-accordion-header .nav-item {
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-accordion-header .nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #495057;
}

.dropdown-accordion.active .dropdown-accordion-header .nav-item {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.dropdown-accordion-header .dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.dropdown-accordion.active .dropdown-accordion-header .dropdown-icon {
    transform: rotate(180deg);
}

/* Contenu de la dropdown */
.dropdown-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.dropdown-accordion.active .dropdown-accordion-content {
    max-height: 300px;
    /* Ajustez selon le nombre d'items */
}

.dropdown-accordion-menu {
    padding: 0.5rem 0;
}

.dropdown-accordion-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-accordion-menu .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #495057;
    border-left-color: #0d6efd;
}

.dropdown-accordion-menu .dropdown-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-left-color: #0d6efd;
}

/* Animation pour l'ouverture */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-accordion.active .dropdown-accordion-menu .dropdown-item {
    animation: slideDown 0.3s ease forwards;
}

.dropdown-accordion-menu .dropdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.dropdown-accordion-menu .dropdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

.dropdown-accordion-menu .dropdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

@media (max-width: 767.98px) {
    .footer .col-md-6 {
        text-align: center;
    }

    .footer-contact {
        display: inline-block;
        text-align: left; /* keeps icons + text aligned nicely */
    }
}
