/* static/style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #4A90E2;
}
header nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
}
header nav span {
    margin-left: 15px;
    color: #777;
}
.login-container {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.button-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4A90E2;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.button-secondary {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e0e0e0;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}

.filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.filters form {
    display: flex;
    align-items: center;
    gap: 15px;
}
.filters label {
    font-weight: bold;
}
.filters input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.filters button {
    padding: 8px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.page-card {
    background: #fff;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.page-header {
    background-color: #f7f7f7;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-header h3 {
    margin: 0;
    color: #0056b3;
}
.page-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #28a745;
}

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
th {
    background-color: #fafafa;
    font-weight: bold;
}
tbody tr:hover {
    background-color: #f5f5f5;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: #888;
    font-size: 0.9em;
}

.management-form, .account-management-table {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.management-form h2, .account-management-table h2 {
    margin-top: 0;
}
.management-form input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
}
.form-actions {
    text-align: right;
    margin-top: 1.5rem;
}
.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.flash.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: .25rem;
    height: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.progress-bar-inner {
    background-color: #4A90E2;
    color: white;
    text-align: center;
    font-size: 0.85em;
    font-weight: bold;
    height: 100%;
    line-height: 24px;
    transition: width 0.6s ease;
}
.currency-value {
    font-weight: bold;
    color: #e83e8c;
}
.countdown-tag {
    background-color: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: bold;
}
.dashboard-actions {
    margin-top: 1rem;
    text-align: right;
}