body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #333;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #2196F3;
}

.budget-section, .expense-section, .summary-section, .expenses-list-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.expense-input {
    display: grid;
    gap: 15px;
}

.expense-input div {
    display: grid;
    gap: 5px;
}

label {
    font-weight: bold;
    color: #555;
}

input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1976D2;
}

.expenses-list {
    margin-top: 20px;
}

/* Login styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #c82333;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.expense-item .description {
    flex-grow: 1;
    margin-right: 15px;
}

.expense-item .amount {
    font-weight: bold;
    color: #e74c3c;
}

.expense-item .date {
    color: #666;
    font-size: 0.9em;
    margin-left: 15px;
}

#remainingSum {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
}

.budget-info {
    text-align: center;
    margin-bottom: 20px;
}

.budget-info h2 {
    color: #333;
    margin-bottom: 10px;
}

.initial-sum-date {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.budget-progress {
    margin: 20px 0;
    padding: 0 20px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 8px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.3s ease;
    border-radius: 8px;
}

/* Progress bar color changes based on percentage */
.progress-bar.warning {
    background-color: #ffc107;
}

.progress-bar.danger {
    background-color: #dc3545;
}

.danger-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto;
}

.danger-button:hover {
    background-color: #c82333;
}

