body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Light gray background */
}
.container {
    max-width: 90%; /* Responsive width */
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 1rem; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative; /* For loader positioning */
}
input[type="number"], input[type="date"], select {
    padding: 0.75rem;
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 0.5rem; /* Slightly rounded corners */
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.2s;
}
input[type="number"]:focus, input[type="date"]:focus, select:focus {
    outline: none;
    border-color: #3b82f6; /* Blue focus border */
}
button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
button:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background-color: #3b82f6; /* Blue background */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
    background-color: #2563eb; /* Darker blue on hover */
}
.btn-secondary {
    background-color: #6b7280; /* Gray background */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}
.btn-secondary:hover {
    background-color: #4b5563; /* Darker gray on hover */
}
.result-box {
    background-color: #e0f2fe; /* Light blue for results */
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #93c5fd; /* Blue border */
    text-align: center;
}
.result-label {
    font-size: 1.125rem; /* Large font for label */
    font-weight: 600;
    color: #1e40af; /* Dark blue */
}
.result-value {
    font-size: 2.25rem; /* Very large font for value */
    font-weight: 700;
    color: #1d4ed8; /* Even darker blue */
    margin-top: 0.5rem;
}
.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3b82f6; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
}
.message-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
    z-index: 20;
}
.message-box button {
    margin-top: 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
#cashFlowTableContainer {
    width: 100%;
    margin-top: 2rem;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow-x: auto; /* Enable horizontal scrolling for tables on small screens */
}
.cash-flow-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.cash-flow-table th, .cash-flow-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.875rem; /* Smaller font for table content */
}
.cash-flow-table th {
    background-color: #e0f2fe;
    font-weight: 600;
    color: #1e40af;
    text-align: center;
}
.cash-flow-table td {
    background-color: #ffffff;
}
.cash-flow-table tbody tr:nth-child(even) {
    background-color: #f3f4f6;
}
.text-right {
    text-align: right;
}
.text-green-600 {
    color: #16a34a; /* Tailwind green-600 */
}
.text-red-600 {
    color: #dc2626; /* Tailwind red-600 */
}
