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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    font-size: 2.5em;
    margin: 0;
    text-align: center;
    color: #667eea;
    flex: 1;
}

.btn-add-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f4ff;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-vote:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.intro p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #667eea;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    position: relative;
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.option-card:hover .checkmark {
    border-color: #667eea;
}

.option-card input[type="checkbox"]:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.option-card input[type="checkbox"]:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.domain-name {
    display: block;
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.success-message {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-message h2 {
    color: #059669;
    font-size: 1.8em;
    margin-bottom: 12px;
    font-weight: 700;
}

.success-message p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.success-message .btn {
    width: auto;
    min-width: 220px;
    padding: 14px 32px;
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Stiluri pentru pagina de rezultate */
.stats-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.results-list {
    margin-top: 30px;
}

.result-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.result-position {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.result-domain {
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.result-count {
    color: #666;
    font-size: 0.95em;
}

.result-bar-container {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 8px;
}

.result-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
}

.result-percentage {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
    
    .header-section {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .btn-add-vote {
        width: 100%;
        justify-content: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        flex-direction: column;
    }
    
    .success-message {
        padding: 40px 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5em;
    }
}

