:root {
    --primary-color: #C41E3A; /* Màu đỏ chủ đạo của Agribank */
    --secondary-color: #006838; /* Màu xanh lá phụ */
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    background: linear-gradient(135deg, #C41E3A 0%, #800000 100%);
}

.header {
    background-color: var(--primary-color);
    padding: 1rem;
    color: white;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.header .logo {
    max-height: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #a01830;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #004d2a;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: white;
}

.table th,
.table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.table th {
    background-color: var(--light-gray);
    font-weight: bold;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #fff3f3;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #f0fff4;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-group label {
    margin-left: 0.5rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.checkbox-list {
    margin: 2rem 0;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.election-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    display: block;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.summary-item .value {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.progress {
    width: 100%;
    height: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Màu xen kẽ cho các hàng trong bảng */
.table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Định dạng cột số liệu */
.table td:nth-child(3),
.table td:nth-child(4) {
    font-weight: bold;
}

/* Responsive cho bảng */
@media (max-width: 768px) {
    .election-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

.results-container {
    background: url('../images/bg-pattern.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    padding: 2rem;
    color: #fff;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.party-flag {
    background: url('../images/flag.png') no-repeat center center;
    background-size: contain;
    width: 150px;
    height: 100px;
    position: absolute;
    left: 2rem;
    top: 0;
}

.header-content h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    font-weight: bold;
}

.header-content h2 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-top: 1rem;
}

.results-table {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.results-table th {
    background: #C41E3A;
    color: #fff;
    padding: 1rem;
    text-align: center;
    border: 1px solid #fff;
}

.results-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
}

.highlight-row {
    background-color: rgba(196, 30, 58, 0.1);
}

.results-table tr:hover {
    background-color: rgba(196, 30, 58, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .party-flag {
        position: static;
        margin: 0 auto 1rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content h2 {
        font-size: 1.5rem;
    }

    .results-table {
        padding: 1rem;
    }

    .results-table table {
        font-size: 1rem;
    }
}

/* Thêm vào file CSS */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.2rem;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Style cho form inline */
form[style*="display: inline"] {
    display: inline-block;
}

/* Thêm vào cuối file */
.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.edit-form {
    margin: 0.5rem 0;
}

.edit-form .form-control {
    width: auto;
    min-width: 200px;
}

.candidate-name {
    font-size: 1rem;
    line-height: 1.5;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-right: 1rem;
}

.badge-admin {
    background-color: #ffc107;
    color: #000;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-ongoing {
    background-color: #17a2b8;
    color: #fff;
}

.status-completed {
    background-color: #28a745;
    color: #fff;
}

/* Thêm vào phần style cho header */
.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo {
    max-height: 40px;
    vertical-align: middle;
}

/* Thêm responsive cho header */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem;
    }
    
    .logo {
        max-height: 32px;
    }
} 