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

body {
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 25px;
    font-size: 24px;
}

h2 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

input[type="number"], input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
    transition: border-color 0.3s;
}

input[type="number"]:focus, input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.candidate-section {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.candidate-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.candidate-item:last-child {
    margin-bottom: 0;
}

.candidate-item h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
}

.ballot-section {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.section-title {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.final-result {
    background: #f5e8e8;
    border-left: 4px solid #af4c4c;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.summary-btn, .back-btn, .forms-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
    transition: transform 0.2s;
}

.summary-btn:hover, .back-btn:hover, .forms-btn:hover {
    transform: translateY(-2px);
}

.summary-btn:active, .back-btn:active, .forms-btn:active {
    transform: translateY(0);
}

.hidden {
    display: none;
}

.summary-item {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item label {
    margin: 0;
    font-size: 16px;
}

.summary-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.summary-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.summary-total .value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
}

.edit-question {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 12px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

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

.form-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
}

.form-header {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.form-row {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-row strong {
    color: #333;
}

.form-row .value {
    color: #667eea;
    font-weight: 700;
}

.form-total-row {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 700;
}

.form-total-row .value {
    color: #667eea;
}


.candidate-result {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
}

.candidate-result h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 18px;
}
