
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.party-info {
    background: #ea580c;
    color: white;
    padding: 10px 10px 5px 10px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 16px;
}
.light {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d3d3d3, #d3d3d3);
    border: 1px solid #d3d3d3;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.2), inset 2px 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.light.on {
  background: radial-gradient(circle at 30% 30%, #ffdddd, #ff0000, #8b0000);
  box-shadow:
    0 0 6px rgba(255, 0, 0, 0.8),
    0 0 12px rgba(255, 0, 0, 0.6),
    inset -2px -2px 4px rgba(0,0,0,0.6),
    inset 2px 2px 4px rgba(255,255,255,0.3);
}
.container {
    max-width: 100% !important;
}
body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
}

/* Section Styles */
.voting-section {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /*padding: 2rem;*/
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.section-info {
    /*display: flex;*/
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.party-name {
    font-weight: 600;
    color: #334155;
}

.ward-name {
    font-weight: 600;
    color: #1d4ed8;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.voting-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.voting-table thead {
    background-color: #f1f5f9;
    border-bottom: 2px solid #cbd5e1;
}

.voting-table thead th {
    padding: 0.875rem;
    font-weight: 700;
    font-size: 1rem;
    color: #334155;
}

.voting-table tbody td {
    padding: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.voting-table tbody tr:hover {
    /*background-color: #f8fafc;*/
}

.voting-table tbody tr.candidate-row {
    background-color: #eff6ff;
}

.voting-table tbody tr.candidate-row:hover {
    background-color: #dbeafe;
}

.serial-number {
    color: #475569;
    font-weight: 500;
}

.candidate-row .serial-number {
    color: #1e293b;
    font-weight: 700;
}

.empty-cell {
    color: #94a3b8;
}

.candidate-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.vote-count {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d4ed8;
}

.symbol-img, .photo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0.25rem;
}

.photo-img {
    object-fit: cover;
}

/* Button Styles */
.vote-btn {
    background-color: #ea580c;
    color: white;
    font-weight: 500;
    padding: 0.320rem 0.525rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vote-btn:hover {
    background-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
}

/* Footer Styles */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.footer a {
    color: #fb923c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fdba74;
}

/* Modal Styles */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: none;
    padding: 2rem 2rem 0;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 0 2rem 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #16a34a;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.modal-subtitle {
    color: #475569;
    text-align: center;
    margin-bottom: 1.5rem;
}

.vote-details {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.vote-details table {
    width: 100%;
    margin-bottom: 0;
}

.vote-details td {
    padding: 0.625rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.vote-details td:first-child {
    font-weight: 600;
    color: #334155;
    width: 35%;
}

.vote-details td:last-child {
    color: #1e293b;
}

.vote-details tr:last-child td {
    border-bottom: none;
}

.close-modal-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-modal-btn:hover {
    background-color: #1d4ed8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voting-section {
        /*padding: 1.25rem;*/
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .voting-table thead th,
    .voting-table tbody td {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .candidate-name {
        font-size: 1rem;
    }
    
    .vote-btn {
        padding: 0.320rem 0.525rem;
        font-size: 0.875rem;
    }
}
