body {
    font-family: Arial, sans-serif;
    background: white;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #333;
}

.container {
    background: white;
    color: #333;
    width: 98vw;
    max-width: none;
    margin: 20px auto 40px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    height: 90vh;
    overflow-y: auto;
    position: relative;
}

#summary-container {
    margin-left: auto;
    margin-right: auto;
    min-width: 300px;
    max-width: 400px;
    text-align: center !important;
}

#expenseChart {
    max-width: 400px !important;
    max-height: 400px !important;
}

#view-chart-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

#view-chart-btn:hover {
    background-color: #0056b3;
}

.auth-container {
     background-color: rgba(255, 255, 255, 0.15); 
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px); 
}

header {
    width: 98vw;
    max-width: none;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
}

.auth-buttons button {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #667eea;
    color: white;
    transition: background-color 0.3s ease;
}

.auth-buttons button:hover {
    background-color: #5a67d8;
}

.container {
    width: 98vw;
    max-width: none;
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 90vh;
    overflow-y: auto;
}

header {
    width: 98vw;
    max-width: none;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
}

.auth-buttons button {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease;
}

.auth-buttons button:hover {
    background-color: #0056b3;
}

h1, h2, h3 {
    text-align: center;
    color: #333;
}

form {
    margin-bottom: 20px;
}

.form-control {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn, .delete-btn {
    width: 70px;
    margin: 2px 0;
    display: block;
}

button:hover {
    background-color: #0056b3;
}

#expense-list {
    list-style-type: none;
    padding: 0;
}

#expense-list li {
    background: #e9ecef;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#expense-list li span {
    margin-left: 10px;
    font-weight: bold;
}

#expense-list button.delete-btn {
    padding: 4px 8px;
    font-size: 12px;
    width: auto;
    height: auto;
    border-radius: 4px;
}

.auth-container {
    max-width: 700px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.auth-container input[type="password"],
.auth-container input[type="text"] {
    font-size: 18px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.large-input {
    font-size: 20px;
    padding: 8px;
    width: 150px;
}

.initial-balance-container {
    margin-bottom: 20px;
    text-align: center;
}

#add-transaction-btn {
    font-size: 28px;
    font-weight: bold;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 10px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    line-height: 38px;
    text-align: center;
    padding-top: 2px;
}

#add-transaction-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.hidden {
    display: none;
}
