/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* ============================================
   POLL CARDS
   ============================================ */
.poll-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    background: white;
    overflow: hidden;
}
.poll-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.poll-card .card-body {
    padding: 1.75rem;
}
.poll-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.poll-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   BADGES
   ============================================ */
.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* ============================================
   VOTE OPTIONS
   ============================================ */
.vote-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: white;
}
.vote-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(4px);
}
.vote-option.selected {
    border-color: #667eea;
    background: #eef0ff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.vote-option .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
}
.vote-option .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    height: 2rem;
    border-radius: 12px;
    background-color: #f1f3f5;
    overflow: hidden;
}
.progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s ease;
}
.progress-bar.bg-success {
    background: linear-gradient(90deg, #11998e, #38ef7d) !important;
}
.progress-bar.bg-info {
    background: linear-gradient(90deg, #4facfe, #00f2fe) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}
.btn-outline-primary-custom {
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.btn-outline-primary-custom:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}
.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stats-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}
.stats-card .label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.stats-card .icon {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
}
.empty-state h3 {
    color: #495057;
    margin-top: 1.5rem;
}
.empty-state p {
    color: #6c757d;
}

/* ============================================
   ALERTS
   ============================================ */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    background: white;
    overflow: hidden;
    cursor: pointer;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.feature-card .card-body {
    padding: 2rem;
    text-align: center;
}
.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}
.feature-card .icon-wrapper i {
    font-size: 2.5rem;
    color: #667eea;
}
.feature-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.feature-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-gradient {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 3rem 2rem;
    color: white;
}
.hero-gradient h1 {
    font-weight: 700;
    font-size: 2.5rem;
}
.hero-gradient p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
    border-radius: 16px;
    border: none;
}
.card-header {
    border-radius: 16px 16px 0 0;
}
.bg-gradient {
    background: var(--primary-gradient);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control-lg {
    border-radius: 12px;
}
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}
.input-group-text {
    border-radius: 12px 0 0 12px;
    background-color: #f8f9fa;
}
.input-group .form-control {
    border-radius: 0 12px 12px 0;
}
.btn-outline-danger {
    border-radius: 0 12px 12px 0;
}
.form-switch .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar {
        display: none !important;
    }
    .btn {
        display: none !important;
    }
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .poll-card .card-body {
        padding: 1.25rem;
    }
    .stats-card .number {
        font-size: 1.5rem;
    }
    .hero-gradient {
        padding: 2rem 1rem;
    }
    .hero-gradient h1 {
        font-size: 1.8rem;
    }
    .feature-card .card-body {
        padding: 1.5rem;
    }
}