body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    background-color: #444;
    padding: 20px;
    color: white;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #555;
}

.sidebar-menu li a {
    color: white;
    padding: 15px;
    text-decoration: none;
    display: block;
}

.sidebar-menu li a:hover {
    background-color: #555;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    width: 100%;
}

#toggle-menu {
    display: none;
    font-size: 30px;
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}


/* Mobile view */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    #toggle-menu {
        display: block;
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

		canvas {
			font-weight: normal !important;
		}
		
        #cashFlowChart, #profitLossChart, #expenseBreakdownChart {
            border: 0px solid #ccc;
            width: 100%;
            max-width: 660px;
            max-height: 400px;
			margin-bottom:30px;
			margin-top:0px;
        }
		
		.section{
			height:500px;
		}
		
		
/* Transactions page */

#edit-transaction-form {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: none;
}

#edit-transaction-form label {
    display: block;
    margin-top: 10px;
}

#edit-transaction-form input,
#edit-transaction-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

#edit-transaction-form button {
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#edit-transaction-form button[type="button"] {
    background-color: #f44336;
}

#edit-transaction-form button:hover {
    background-color: #45a049;
}

#edit-transaction-form button[type="button"]:hover {
    background-color: #da190b;
}

#add-transaction-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
    display: none;
}

#add-transaction-form h2 {
    margin-top: 0;
}

#add-transaction-form button {
    margin-top: 10px;
}

#add-transaction-form form {
    display: flex;
    flex-direction: column;
}

/* Popup form styling */
.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10001; /* Ensure the form is on top of the overlay */
    width: 400px;
    display: none; /* Hidden initially */
    z-index: 50000 !important; /* Ensure it's above the overlay */
}

/* Overlay background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden initially */
    z-index: 10000; /* Below the popup-form */
}

/* General Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
}

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

td {
    border-top: 1px solid #f1f1f1;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Make the checkbox column smaller */
th:first-child, td:first-child {
    width: 50px; /* Adjust this value to make it smaller or larger */
    text-align: center;
}

/* Make the checkbox column smaller */
th:last-child, td:last-child {
    width: 120px; /* Adjust this value to make it smaller or larger */
    text-align: center;
}

td:nth-child(2), th:nth-child(2) {
    width: 120px; /* Adjust the width as needed */
}

td:nth-child(4), th:nth-child(4) {
    width: 220px; /* Adjust the width as needed */
}

td:nth-child(5), th:nth-child(5) {
    width: 100px; /* Adjust the width as needed */
}

/* Style checkboxes */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Actions Column */
td a {
    color: #007BFF;
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
}

td a:hover {
    text-decoration: underline;
}

.deposit {
        color: green;
    }

.bulk-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.bulk-actions button {
    padding: 10px 20px;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
	margin-top:10px;
}

.bulk-actions button:hover {
    background-color: #0056b3;
}

/* Add Transaction Button */
#add-transaction-btn {
    float: right; /* Aligns the button to the right */
    padding: 10px 20px; /* Adds padding for a larger button */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Removes the border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes the cursor to a pointer */
    font-size: 16px; /* Increases the font size */
	margin-top:14px;
}

#add-transaction-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}

#amount, #description, #editAmount, #editDescription, #addTransactionDate, #editTransactionDate{
	width:93%;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #f4f4f4;
    color: #007BFF;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #007BFF;
    color: white;
}

/* Form Styling */
.popup-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
}

.popup-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.popup-form input, .popup-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.popup-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-form button:hover {
    background-color: #0056b3;
}

#cancelAdd, #cancelEdit {
    background-color: #6c757d;
}

#cancelAdd:hover, #cancelEdit:hover {
    background-color: #5a6268;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    clear: both; /* Ensures footer is not affected by floated content */
    width: 100%;  /* Ensures the footer spans the full width of the page */
    position: relative;
    bottom: 0;
	margin-left:-20px;
	margin-bottom:-20px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}