/**
 * ACTTL & Lille Fatih Camii
 * Clean, professional CSS matching existing DA
 */

/* ============================================
   CSS Variables - Couleurs du logo ACTTL
   ============================================ */
:root {
    --primary-color: #0d47a1;      /* Bleu foncé du logo */
    --primary-dark: #01579b;       /* Bleu très foncé */
    --primary-light: #1976d2;      /* Bleu clair du logo */
    --secondary-color: #42a5f5;    /* Bleu clair secondaire */
    --secondary-dark: #1e88e5;     /* Bleu moyen */
    --accent-color: #64b5f6;       /* Bleu accent clair */
    --text-dark: #212121;          /* Noir du logo */
    --text-gray: #757575;
    --text-light: #9e9e9e;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-gradient: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --white: #ffffff;              /* Blanc du logo */
    --success: #28a745;
    --danger: #dc3545;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.header .logo:hover img {
    transform: scale(1.05);
}

.navbar {
    background: transparent;
    display: flex;
    align-items: center;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
}

.navbar a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
}

.navbar a:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.25);
    transform: translateY(-2px);
}

.navbar .active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
    font-weight: 700;
}


/* Language Selector */
.language-selector {
    position: relative;
    list-style: none;
}

.language-selector .dropdown-toggle {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector .dropdown-toggle::after {
    display: none !important;
}

.language-selector .dropdown-toggle:hover {
    background: var(--bg-light);
}

.language-selector .dropdown-menu {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 80px;
    display: none;
}

.language-selector .dropdown-menu.show {
    display: block;
}

.language-selector .dropdown-item {
    padding: 8px 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.language-selector .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.flag-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    color: var(--text-dark);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    z-index: 1001;
}

.mobile-nav-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
    }

    /* Cacher le dropdown de langue en mode mobile (avant d'ouvrir le menu) */
    .language-selector,
    .language-selector .dropdown-toggle,
    .language-selector .dropdown-menu {
        display: none !important;
    }

    .navbar-mobile {
        position: fixed;
        overflow: hidden;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        transition: 0.3s;
        z-index: 9999;
    }

    .navbar-mobile .mobile-nav-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--white);
        z-index: 10000;
    }

    .navbar-mobile ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        bottom: 20px;
        left: 20px;
        padding: 20px;
        background: var(--white);
        overflow-y: auto;
        transition: 0.3s;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .navbar-mobile li {
        margin: 0;
        text-align: center;
    }

    .navbar-mobile a,
    .navbar-mobile a:focus {
        padding: 14px 20px;
        margin: 5px 0;
        font-size: 16px;
        color: var(--text-dark);
        border-radius: 8px;
        text-align: center;
        display: block;
    }

    .navbar-mobile a:hover,
    .navbar-mobile .active,
    .navbar-mobile li:hover > a {
        color: var(--white);
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        transform: none;
    }

    /* Le sélecteur de langue reste caché même dans le menu mobile */
    .navbar-mobile .language-selector,
    .navbar-mobile .language-selector .dropdown-toggle,
    .navbar-mobile .language-selector .dropdown-menu {
        display: none !important;
    }

    /* Logo en haut du menu mobile */
    .navbar-mobile ul::before {
        content: '';
        display: block;
        width: 120px;
        height: 80px;
        margin: 0 auto 20px;
        background-image: url('../img/normal_no_bg.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .logo img {
        max-height: 50px;
    }
}

/* Amélioration du dropdown de langue en version desktop */
@media (min-width: 992px) {
    .language-selector .dropdown-menu {
        min-width: 80px;
    }

    .language-selector .dropdown-item {
        font-size: 1.3rem;
        padding: 8px 15px;
    }

    /* S'assurer que le dropdown fonctionne normalement en desktop */
    .language-selector .dropdown-toggle {
        display: flex !important;
    }

    .language-selector .dropdown-menu {
        display: none;
    }

    .language-selector .dropdown-menu.show {
        display: block !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--bg-gradient);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 15px;
}

.hero .lead {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
    color: var(--white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 50px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

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

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* ============================================
   Service Items
   ============================================ */
.service-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Forms
   ============================================ */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

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

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Prayer Times
   ============================================ */
.prayer-times {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.prayer-item:last-child {
    border-bottom: none;
}

.prayer-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prayer-name i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.prayer-time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   Team Members
   ============================================ */
.team-member {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--border-color);
    background: var(--bg-light);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 15px;
}

.team-bio {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--bg-light);
}

.gallery-item:hover {
    box-shadow: var(--shadow);
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-form {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Sections
   ============================================ */
section:not(#hero) {
    padding: 80px 0;
}

.contact-info {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 400px;
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
    text-decoration: none !important;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: none !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-item .number {
        font-size: 2rem;
    }

    section:not(#hero) {
        padding: 50px 0;
    }

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

    .card,
    .service-item {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .contact-form {
        padding: 25px;
    }

    .navbar-nav {
        background: var(--white);
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .navbar-nav .nav-link {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Footer responsive - Centrage des éléments en mobile */
    .footer {
        text-align: center;
        padding: 40px 0 20px;
    }

    .footer .row > div {
        margin-bottom: 30px;
    }

    .footer-logo {
        margin: 0 auto 20px;
        display: block;
    }

    .footer h4 {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .footer p {
        margin: 0 auto;
    }

    .footer ul {
        text-align: center;
    }

    .footer ul li {
        margin-bottom: 10px;
    }

    .footer ul li a {
        display: inline-block;
        justify-content: center;
    }

    .footer ul li a:hover {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
        margin: 20px auto;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }

    .footer-bottom p {
        margin-bottom: 10px;
    }
}

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

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader::before {
    content: "";
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   Alert & Notification Styles
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert i {
    font-size: 1.5rem;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 20px 0;
    margin: 0;
}

.breadcrumb-item {
    color: var(--text-gray);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-gray);
    padding: 0 10px;
}

/* ============================================
   Badge & Tags
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

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

.badge-secondary {
    background: var(--text-gray);
    color: var(--white);
}

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

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

/* ============================================
   Modal Enhancements
   ============================================ */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.modal-header {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.modal-title {
    color: var(--text-dark);
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 2px solid var(--border-color);
    padding: 20px 30px;
}

/* ============================================
   Tabs Enhancement
   ============================================ */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-gray);
    padding: 12px 25px;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.page-item .page-link {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    padding: 10px 18px;
    font-weight: 600;
    transition: var(--transition);
}

.page-item .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Timeline (for history/events)
   ============================================ */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--border-color);
}

/* ============================================
   Accordion Enhancement
   ============================================ */
.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 10px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 25px;
    background: var(--bg-light);
}

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

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 25px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================
   Tooltip Enhancement
   ============================================ */
.tooltip {
    font-size: 0.9rem;
}

.tooltip-inner {
    background: var(--text-dark);
    padding: 8px 15px;
    border-radius: 6px;
}

/* ============================================
   Progress Bars
   ============================================ */
.progress {
    height: 10px;
    border-radius: 10px;
    background: var(--bg-light);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: width 1s ease;
}

/* ============================================
   List Styles
   ============================================ */
.list-unstyled li {
    padding: 8px 0;
}

.list-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

/* ============================================
   Blockquote
   ============================================ */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    background: var(--bg-light);
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

blockquote p {
    font-style: italic;
    color: var(--text-gray);
    margin: 0;
}

blockquote footer {
    margin-top: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================
   Video & Media Responsive
   ============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

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

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .no-print,
    .navbar,
    .footer,
    .btn,
    .scroll-top {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Form Validation Icons
   ============================================ */
.form-group-validation {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group-validation .form-control {
    padding-right: 45px;
}

.form-group-validation .validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group-validation.valid .form-control {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-group-validation.valid .validation-icon {
    color: #28a745;
}

.form-group-validation.invalid .form-control {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-group-validation.invalid .validation-icon {
    color: #dc3545;
}

/* Button disabled state */
.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary.btn-enabled {
    background: var(--primary-color);
    border-color: var(--primary-color);
    cursor: pointer;
    opacity: 1;
}

.btn-primary.btn-enabled:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

/* Textarea validation adjustment */
.form-group-validation textarea + .validation-icon {
    top: 20px;
    transform: none;
}
