﻿:root {
    /* NEW CSS VARIABLES FOR ONLINE POLLS */
    --polls-primary: #8b5cf6;
    --polls-secondary: #7c3aed;
    --polls-accent: #a78bfa;
    --polls-light: #f3f4f6;
    --vote-yes: #10b981;
    --vote-no: #ef4444;
    --vote-neutral: #6b7280;
    --poll-active: #059669;
    --poll-closed: #dc2626;
    --poll-draft: #f59e0b;
    --voting-bg: #faf5ff;
    --results-bg: #f0f9ff;
    --democracy-gradient-start: #a855f7;
    --democracy-gradient-end: #3b82f6;
    --chart-color-1: #8b5cf6;
    --chart-color-2: #06b6d4;
    --chart-color-3: #10b981;
    --chart-color-4: #f59e0b;
    --chart-color-5: #ef4444;
}
/* NEW CLASSES SPECIFIC TO ONLINE POLLS */
.polls-badge {
    background: linear-gradient(45deg, var(--polls-primary), var(--polls-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.voting-system {
    background: linear-gradient(135deg, var(--voting-bg), #ffffff);
    border: 3px solid #e9d5ff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
    position: relative;
    min-height: 450px;
}

.voting-system-header {
    background: linear-gradient(135deg, var(--polls-primary), var(--polls-secondary));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    align-items: center;
    justify-content: between;
}

.poll-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .poll-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--polls-primary);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .poll-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
        border-color: var(--polls-primary);
    }

        .poll-card:hover::before {
            transform: scaleY(1);
        }

.poll-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.poll-status-active {
    background: rgba(5, 150, 105, 0.1);
    color: var(--poll-active);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.poll-status-closed {
    background: rgba(220, 38, 38, 0.1);
    color: var(--poll-closed);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.poll-status-draft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--poll-draft);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* NEW ICON CLASSES FOR POLL TYPES */
.poll-icon-vote {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--polls-primary), var(--polls-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.poll-icon-results {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--democracy-gradient-start), var(--democracy-gradient-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.poll-icon-create {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.poll-icon-archive {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.vote-option {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .vote-option:hover {
        border-color: var(--polls-primary);
        background: rgba(139, 92, 246, 0.02);
    }

    .vote-option.selected {
        border-color: var(--polls-primary);
        background: rgba(139, 92, 246, 0.1);
    }

    .vote-option input[type="radio"] {
        margin-right: 12px;
        accent-color: var(--polls-primary);
    }

.vote-button {
    background: linear-gradient(135deg, var(--polls-primary), var(--polls-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

    .vote-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    }

.poll-results-chart {
    background: var(--results-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.results-bar {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
    position: relative;
}

.results-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.results-fill-1 {
    background: var(--chart-color-1);
}

.results-fill-2 {
    background: var(--chart-color-2);
}

.results-fill-3 {
    background: var(--chart-color-3);
}

.results-fill-4 {
    background: var(--chart-color-4);
}

.results-fill-5 {
    background: var(--chart-color-5);
}

.poll-creation-flow {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .poll-creation-flow::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--polls-primary), var(--polls-accent));
    }

    .poll-creation-flow:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
        border-color: var(--polls-primary);
    }

.poll-step-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--polls-primary), var(--polls-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.democracy-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(139, 92, 246, 0.1);
    color: var(--polls-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

    .democracy-indicator::before {
        content: '🗳️';
        margin-right: 6px;
    }

.poll-analytics-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .poll-analytics-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--polls-primary), var(--polls-accent));
    }

    .poll-analytics-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
        border-color: var(--polls-primary);
    }

.poll-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--polls-primary), var(--polls-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.mobile-voting-demo {
    background: #1f2937;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-voting-screen {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    min-height: 400px;
    position: relative;
}

.mobile-voting-notch {
    width: 60px;
    height: 20px;
    background: #1f2937;
    border-radius: 0 0 15px 15px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.poll-participation-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--polls-primary) 0% 75%, var(--border-color) 75% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

    .poll-participation-gauge::before {
        content: '';
        width: 80px;
        height: 80px;
        background: white;
        border-radius: 50%;
        position: absolute;
    }

.poll-participation-text {
    position: relative;
    z-index: 1;
    text-align: center;
    font-weight: 700;
    color: var(--polls-primary);
}
/* NEW ICON CLASSES FOR FEATURES */
.icon-create-poll {
    background: linear-gradient(135deg, var(--polls-primary) 0%, var(--polls-secondary) 100%);
}

.icon-instant-voting {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-results {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-democratic {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-archive {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.icon-reset {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
