* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe4e8 100%);
    color: #4a4a4a;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 20px 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 2px solid #ffb6c1;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: linear-gradient(45deg, #ff69b4, #ff1493);
}

.nav-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #ff69b4;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #ffb6c1;
}

.nav-link:hover, .nav-link.active {
    background: #ff69b4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.4);
    border: 3px solid #ffb6c1;
}

.hero-title {
    font-size: 2.5rem;
    color: #ff1493;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #ff69b4;
    max-width: 600px;
    margin: 0 auto;
}

/* Polls Section */
.section-title {
    font-size: 2rem;
    color: #ff1493;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffb6c1, #ff69b4);
    margin: 10px auto;
    border-radius: 2px;
}

.polls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.poll-card {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #ffb6c1;
    display: flex;
    flex-direction: column;
}

.poll-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.4);
    border-color: #ff69b4;
}

.poll-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.poll-title {
    font-size: 1.4rem;
    color: #ff1493;
    font-weight: 700;
    margin-right: 15px;
}

.poll-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.poll-badge.anonymous {
    background: #ffe4e8;
    color: #ff69b4;
    border: 1px solid #ffb6c1;
}

.poll-badge.public {
    background: #fff0f5;
    color: #ff1493;
    border: 1px solid #ff69b4;
}

.poll-description {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.poll-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #ff69b4;
    font-weight: 500;
}

.poll-deadline {
    color: #ff1493;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 5px 10px;
    background: #fff0f5;
    border-radius: 20px;
    display: inline-block;
}

.poll-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 2px solid #ffe4e8;
    padding-top: 15px;
}

.poll-author {
    color: #ff69b4;
    font-weight: 500;
}

.btn-poll {
    background: #ffb6c1;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-poll:hover {
    background: #ff69b4;
    transform: scale(1.05);
}

/* Poll Page Styles */
.poll-container {
    background: white;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.4);
    border: 3px solid #ffb6c1;
}

.poll-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px dashed #ffb6c1;
}

.poll-main-title {
    font-size: 2.5rem;
    color: #ff1493;
    margin-bottom: 20px;
}

.poll-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.poll-meta-item {
    background: #fff0f5;
    padding: 8px 20px;
    border-radius: 30px;
    color: #ff69b4;
    font-weight: 500;
    border: 1px solid #ffb6c1;
}

.poll-main-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Voting Section */
.voting-section, .results-section {
    max-width: 700px;
    margin: 0 auto;
}

.voting-title, .results-title {
    font-size: 2rem;
    color: #ff1493;
    margin-bottom: 30px;
    text-align: center;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: #fff9fa;
    border: 2px solid #ffb6c1;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-label:hover {
    background: #ffe4e8;
    border-color: #ff69b4;
    transform: translateX(10px);
}

.option-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ffb6c1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.option-label input[type="radio"]:checked + .option-radio-custom {
    background: #ff69b4;
    border-color: #ff1493;
}

.option-label input[type="radio"]:checked + .option-radio-custom::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-text {
    font-size: 1.2rem;
    color: #4a4a4a;
    font-weight: 500;
}

.btn-vote {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-vote:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.5);
}

/* Results Section */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-item {
    background: #fff9fa;
    padding: 20px;
    border-radius: 30px;
    border: 2px solid #ffb6c1;
}

.result-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.option-percentage {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff1493;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #ffe4e8;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ffb6c1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffb6c1, #ff69b4);
    border-radius: 30px;
    transition: width 1s ease;
}

.option-count {
    color: #ff69b4;
    font-weight: 500;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.4);
    border: 3px solid #ffb6c1;
}

.form-title {
    font-size: 2rem;
    color: #ff1493;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #ff69b4;
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ffb6c1;
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

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

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 40px;
    border: 3px dashed #ffb6c1;
}

.empty-state p {
    font-size: 1.3rem;
    color: #ff69b4;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffb6c1;
}

.btn-primary:hover {
    background: #ff1493;
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    color: #ff69b4;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .polls-grid {
        grid-template-columns: 1fr;
    }
    
    .poll-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .poll-main-title {
        font-size: 2rem;
    }
}

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

.poll-card, .poll-container {
    animation: fadeIn 0.5s ease-out;
}
