/* Thiết lập chung */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

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

/* Header */
header {
    background-color: #2ecc71;
    color: #fff;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo {
    height: 60px;
    margin-right: 20px;
}

h1 {
    font-size: 24px;
    margin: 0;
}

/* Nội dung Chính */
.input-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
    grid-column: 1 / -1; /* Tiêu đề chiếm toàn bộ chiều rộng */
}

.form-group {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
    outline: none;
}

/* Bảng chi phí */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #e8e8e8;
    font-weight: bold;
}

.remove-row {
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
}

.add-button, .main-button {
    background-color: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.add-button {
    background-color: #3498db;
    margin-top: 10px;
}

.main-button {
    background-color: #2ecc71;
    width: 100%;
}

.main-button:hover, .add-button:hover {
    background-color: #27ae60;
}

.button-container {
    grid-column: 1 / -1;
    margin-top: 20px;
}

/* Khu vực Hiển thị Kết quả */
.result-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.hidden {
    display: none;
}

.result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#results p {
    font-size: 18px;
    margin: 5px 0;
}

.chart-container {
    position: relative;
    height: 400px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-content p {
    margin: 5px 0;
}

/* Hiệu ứng hover cho input */
input:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}