:root {
    --primary: #4a6cf7;
    --secondary: #8a94a6;
    --dark: #1e2a4a;
    --darker: #12192c;
    --light: #f5f8ff;
    --accent: #ff6b6b;
    --success: #4ade80;
}

/* تم دارک (پیش‌فرض) */
body.dark-mode {
    background-color: var(--darker);
    color: var(--light);
}

.dark-mode .card {
    background-color: var(--dark);
    color: var(--light);
}

.dark-mode .text-muted {
    color: var(--secondary) !important;
}

/* تم لایت */
body.light-mode {
    background-color: #ffffff;
    color: #333333;
}

.light-mode .card {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.light-mode .bg-light {
    background-color: #f8f9fa !important;
}

/* استایل‌های عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* استایل‌های صفحه اصلی */
.slider {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 250px;
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    border-radius: 15px;
}

.slides::-webkit-scrollbar {
    display: none;
}

.slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.categories {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    min-width: 120px;
    height: 140px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.dark-mode .category {
    background: var(--dark);
}

.light-mode .category {
    background: #f8f9fa;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category i {
    font-size: 2rem;
    color: var(--primary);
}

.category span {
    font-size: 0.9rem;
    font-weight: 500;
}

.section-title {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    position: relative;
    padding-right: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* کارت‌ها */
.candidate-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

.dark-mode .candidate-card {
    background: var(--dark);
}

.light-mode .candidate-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.candidate-card:hover {
    transform: translateY(-5px);
}

.candidate-img {
    height: 180px;
    background: linear-gradient(45deg, #3a5fce, #2c4bc0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-img i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.candidate-info {
    padding: 15px;
}

.candidate-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
}

.candidate-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--secondary);
}

/* دکمه‌های شناور */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4);
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: #3a5fce;
    color: white;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .categories {
        gap: 10px;
    }
    
    .category {
        min-width: 100px;
        height: 120px;
    }
    
    .category i {
        font-size: 1.5rem;
    }
    
    .floating-buttons {
        left: 15px;
        bottom: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}