@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
/* For WebKit Browsers (Chrome, Edge, Safari) */
/* Hide scrollbar but still allow scrolling */
body::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Webkit browsers */
}
/* Hide scrollbar but still allow scrolling */
body-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Webkit browsers */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #F4F2F5;
    color: #333;
    height: 100vh; /* Full viewport height */
    /*display: flex;*/
    /*flex-direction: column;*/
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

/* Body content should be scrollable if necessary */
.body-content {
    /*flex: 1;*/
    padding: 10px; /* Padding to the bottom for fixed tab bar */
    background-color: #fff;
    color: #333;
    overflow-y: auto; /* Enables scrolling if content overflows */
    position: relative;
}

/* Tab bar fixed at the bottom */
.tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    z-index: 10;
    left: 0;
    right: 0;
    justify-content: center;
    background-color: #fff; /* Ensure tabs have a background */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for tab bar */
}

.tab {
    background: #d3e4ff;
    color: #0d53d6;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.tab:hover {
    background-color: #555;
    color: #fff;
}

.tab.active {
    background: #0d53d6;
    color: #fff;
    font-weight: 500;
}

/* Tab content: Hide by default and allow scrolling */
.tab-content {
    display: none;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    /*max-height: calc(100vh - 120px);*/
    /*overflow-y: auto;*/
    padding-bottom: 50px; /* Padding for smooth scrolling */
}

/* Active tab content becomes visible */
.tab-content.active {
    display: block;
}


button, input, select, select2{
    font-family: 'Ubuntu', sans-serif;  /* Elegant and clean font */
}

/* Top Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d53d6;
  color: white;
  padding: 2px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adding shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar h2{
    font-weight: 700;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-icon img {
  width: 25px;
  height:25px;
  
}

.navbar-center {
  display: flex;
  gap: 20px;
}

.year-dropdown,
.month-dropdown {
  padding: 8px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

/* Initial Styles for Left Navigation */
.left-nav {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: white;
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.1);
}

.left-nav.open {
  left: 0;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #0d53d6;
}

.nav-header .logo {
  width: 100px;
  height: auto;
  border-radius: 20px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}


.left-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Left Navigation List Items */
.left-nav ul li {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid #444;
  display: flex;
}

.left-nav ul li a {
  align-items: center;  /* Aligns text and icon vertically */
  color: black;
  text-decoration: none;
  font-size: 18px;  /* Set text size */
  width:100%;
  height: 100%;
  font-weight: 500;
}

.left-nav ul li img {
  width: 24px;  /* Set a fixed size for icons */
  height: 24px;  /* Make sure the height matches the width for a square icon */
  margin-right: 15px;  /* Adds space between the icon and text */
}

/* Hover Effect */
.left-nav ul li a:hover {
  transform: translateX(15px); /* Move 10px to the right on hover */
  color:#0d53d6;
  transition: 0.3s;
}

.left-nav .logout-container {
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
}

/* Logout Button */
.logout-btn {
  display: flex;
  align-items: center;
  background-color: #f44336;
  color: white;
  border: none;
  padding: 12.5px !important;
  width: 100%;
  font-size: 18px;
  cursor: pointer;
}


.logout-btn img {
  width: 24px;  /* Set size for the logout icon */
  height: 24px;
  margin-right: 30px;  /* Adds space between the logout icon and text */
}

/* Calendar Section */
#calendar table{
    background-color: #FEFCFF;
    width: 100% !important;
    border-collapse: collapse;  
    margin-top: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 0 10px rgba(105, 96, 236, 0.4);
}
    
#calendar table td{
    width:16.66%;
    height: 70px !important;
    text-align: center;
    border: 1px solid #D9CFFF;
    padding: 8px !important;
}
#calendar table th{
    padding:8px 12px !important;
}

/* CSS File or <style> tag */
.highlight-today {
    background-color: #d3e4ff; /* Gold color for highlighting */
    border: 2px solid #649eff !important; /* Orange border */
    padding: 0; /* Ensure no padding inside the cell so the color fills the whole cell */
    text-align: center; /* Optional: for centering content */
    color: black; /* Optional: text color */
}


p{
    margin: 0;
    padding:0;
}

/* CSS class for left-aligned day names */
.left-align {
    text-align: left !important;
    background:#0d53d6 ;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px !important;
    width:50px !important;
}

/* General styling for .totals container */
.totals {
    display: flex; /* Use flexbox to arrange items horizontally */
    justify-content: space-between; /* Distribute space between monthTotals and yearTotals */
    align-items: flex-start; /* Align items to the top */
    background-color: #FEFCFF; /* White background */
    padding: 10px; /* Padding inside the box */
    box-shadow: 0 0 10px rgba(105, 96, 236, 0.4); /* Soft shadow around the box */
    border-radius: 8px; /* Rounded corners for smooth appearance */
    max-width: 100%; /* Ensure the box doesn't overflow */
    margin: 20px 0; /* Spacing around the element */
}

/* Styling for monthTotals and yearTotals */
.totals > div {
    width: 50% !important; /* Each section takes up 50% of the container width */
    padding: 0 10px; /* Add horizontal padding to create space inside each section */
}

/* Add a flexible vertical line between monthTotals and yearTotals */
.totals > #monthTotals {
    border-right: 1px solid #0d53d6; /* Vertical line */
    padding-right: 10px; /* Add space between text and the line */
}
.table-wrapper {
  width: 100%; /* Adjust as needed */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

/* Hide scrollbar for Webkit browsers */
.table-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}
/* Header styling inside both sections */
.totals h3 {
    width: 100%;
    background: #d3e4ff; /* Light purple background */
    padding: 5px 0; /* Padding inside the header */
    text-align: center;
    border-radius: 4px; /* Rounded corners on the header */
    
    color: #0d53d6;
    font-weight: 500;
}

/* Flexbox style for paragraphs inside the totals */
.totals p {
    display: flex;
    justify-content: space-between; /* Distribute items within the paragraph */
    align-items: center;
    margin: 10px 0; /* Adds spacing between paragraphs */
}


/* Specific colors for monthTotals */
#monthTotals p:nth-child(2) strong {
    color: green; /* Green for Total Income */
    font-weight: 400 !important;
}

#monthTotals p:nth-child(3) strong {
    color: red; /* Red for Total Expenses */
    font-weight: 400 !important;
}

/* Specific colors for yearTotals */
#yearTotals p:nth-child(2) strong {
    color: green; /* Green for Total Income */
    font-weight: 400 !important;
}

#yearTotals p:nth-child(3) strong {
    color: red; /* Red for Total Expenses */
    font-weight: 400 !important;
}

/* Filter Section */
label {
    font-size: 16px;
    margin-right: 5px;
    color: #ccc;
}

/* Style for select2 dropdown */
select.select2, .select2-container .select2-selection--single {
    font-size: 16px;
    border: 1px solid #D9CFFF !important; 
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1) !important; /* Semi-transparent white */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height:35px !important;
    padding:2.5px;
}

#transactionForm .select2-container .select2-selection--single {
    border: 1px solid lightgrey !important;
}


/* Hover effect for the select box */
select.select2:hover, .select2-container .select2-selection--single:hover {
    border-color: #0d53d6;
    box-shadow: 0 0 5px rgb(13, 83, 214);
}

/* Focused state (when the dropdown is selected) */
select.select2:focus, .select2-container .select2-selection--single:focus {
    border-color: #0d53d6;
    outline: none;
    box-shadow: 0 0 5px rgb(13, 83, 214);
}

/* Option list background and border */
.select2-dropdown {
    background-color: #accbff !important; /* Background color of the dropdown */
    border: 1px solid #649eff !important; /* Border color */
    border-radius: 5px; /* Optional: rounded corners for the dropdown */
}
/* Change the arrow color to white */
.select2-selection__arrow {
    margin-top:2.5px;
}
/* Option item background and text */
.select2-results__option {
    background-color: #accbff !important; /* Background color of each option */
    color: #0d53d6; /* Text color of each option */
    padding: 8px; /* Padding for the option items */
}

/* Option item hover effect */
.select2-results__option:hover {
    background-color: #649eff !important; /* Hover background color */
    color: white !important; /* Text color on hover */
}

/* Option item selected state */
.select2-results__option[aria-selected="true"] {
    background-color: #0d53d6 !important; /* Selected option background */
    color: white !important; /* Selected option text color */
}

/* Search input field inside the dropdown */
.select2-search__field {
    background-color: #accbff !important; /* Background color of the search input */
    border: 1px solid #649eff !important; /* Border color */
    border-radius: 5px; /* Rounded corners for the input field */
    color: #0d53d6 !important; /* Text color of the input */
    padding: 5px; /* Padding for the input field */
    font-size: 16px; /* Font size for the input text */
}

/* On focus of the search input */
.select2-search__field:focus {
    background-color: #d3e4ff !important; /* Lighter background when focused */
    border-color: #649eff !important; /* Border color remains the same */
    outline: none; /* Remove outline on focus */
}

/* Optional: Remove the clear button styling */
.select2-search__clear {
    background: transparent !important;
    border: none !important;
}

/* Optional: Style for labels */
label {
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}
/* Bottom Buttons Styling */
.bottom-buttons {
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;
}
.btn {
  flex: 1;
  background-color: #0d53d6;
  color: white;
  border: none;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
} 

.btn2 {
  flex: 1;
  background-color: #0d53d6;
  color: white;
  border: none;
  padding: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn2:hover {
  background-color: #0056b3;
} 
/* Optional: Style for container (if you want to add spacing between the elements) 
div {
    margin-bottom: 15px;
} */

.deletebtn {
    width: 30px;                    /* Full-width button */
    background-color: #e74c3c;      /* Elegant red background */
    color: #fff;                    /* White text color */
    border: none;                   /* Remove default border */
    height: 30px;                   /* Increased height for better clickability */
    font-size: 13px;                 /* Adjust font size */
    border-radius: 3px;              /* Rounded corners */
    padding: px;                   /* Add padding inside button */
    text-align: center;              /* Center the text */
    cursor: pointer;                /* Show pointer on hover */
    transition: all 0.3s ease;       /* Smooth transition for hover effect */
    display: block;                  /* Make button a block element (full-width) */
    box-sizing: border-box;          /* Include padding in width calculation */
}

.deletebtn:hover {
    background-color: #c0392b;      /* Darker red when hovered */
    transform: translateY(-2px);    /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow on hover */
}

.deletebtn:focus {
    outline: none;                  /* Remove focus outline */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);  /* Add focus shadow */
}

.editbtn {
    width: 30px;                    /* Full-width button */
    background-color:#0d53d6;      /* Elegant red background */
    color: #fff;                    /* White text color */
    border: none;                   /* Remove default border */
    height: 30px;                   /* Increased height for better clickability */
    font-size: 13px;                 /* Adjust font size */
    border-radius: 3px;              /* Rounded corners */
    padding: px;                   /* Add padding inside button */
    text-align: center;              /* Center the text */
    cursor: pointer;                /* Show pointer on hover */
    transition: all 0.3s ease;       /* Smooth transition for hover effect */
    display: block;                  /* Make button a block element (full-width) */
    box-sizing: border-box;          /* Include padding in width calculation */
}

.editbtn:hover {
    background-color: #0d53c5;      /* Darker red when hovered */
    transform: translateY(-2px);    /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow on hover */
}

.editbtn:focus {
    outline: none;                  /* Remove focus outline */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);  /* Add focus shadow */
}

.logoutbtn {
    position: fixed;                /* Fixed position to stay at the bottom */
    bottom: 0;                       /* Align it at the bottom of the page */
    left: 0;                         /* Align it to the left of the page */
    width: 100%;                     /* Full-width button */
    background-color: red;       /* Elegant red background */
    color: #fff;                     /* White text color */
    border: none;                    /* Remove default border */
    height: 40px;                    /* Increase height for better visibility */
    font-size: 16px;                 /* Adjust font size */
    font-weight: bold;               /* Bold text */
    padding: 8px 40px;                   /* Add padding inside button */
    text-align: center;              /* Center the text */
    cursor: pointer;                /* Show pointer on hover */
    transition: all 0.3s ease;       /* Smooth transition for hover effect */
    box-sizing: border-box;          /* Ensure padding doesn't affect button size */
}

.logoutbtn:hover {
    background-color: #c0392b;       /* Darker red when hovered */
    transform: translateY(-2px);     /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
}

.logoutbtn:focus {
    outline: none;                   /* Remove focus outline */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add focus shadow */
}
h4{
    margin-top: 15px;
}

 #transactionModal table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 16px;
        text-align: left;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    #transactionModal thead {
        background: #0d53d6;
        color: white;
        font-weight: 400 !important;
    }

    #transactionModal th{
        padding: 8px 10px !important;
    }
    #transactionModal td {
        padding: 4px 8px;
        border: 1px solid #ddd;
    }
    
    #transactionModal tbody td:nth-child(5){
        width:20px !important;
        padding:2px 
    }
     #transactionModal tbody td:nth-child(1){
        width:15% !important;
    }
    
    #transactionModal tbody td:nth-child(2){
        width:15% !important;
    }
    
    #transactionModal tbody td:nth-child(3){
        width:15% !important;
    }
    #transactionModal tbody td:nth-child(4){
        width:45% !important;
    }
    
    #transactionModal tbody tr:nth-child(even) {
        background: #f9f9f9;
    }

    #transactionModal tbody tr:hover {
        background: #e9f5ff;
        transition: 0.3s;
    }

    #transactionModal tfoot {
        background: #f1f1f1;
        font-weight: 500;
    }

    #transactionModal tfoot td {
        padding: 15px 8px;
        border-top: 2px solid #0d53d6;
    }

    #transactionModal tbody td:nth-child(2),
    #transactionModal tbody td:nth-child(3) {
    text-align: right !important;
    }
    #transactionModal tfoot td:nth-child(1),
    #transactionModal tfoot td:nth-child(2),
    #transactionModal tfoot td:nth-child(3) {
    text-align: right !important;
    }
    
     #transactionModal tfoot td:nth-child(4) {
    text-align: center !important;
    }

/* General Form Styling */
#transactionForm {
    max-width: 600px;
    margin: 0 10px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #333;
    transition: transform 0.3s ease;
}

/* Form Title */
#transactionForm h3 {
    text-align: center;
    margin: 20px !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #444; /* Slightly darker for better readability */
}

/* Label Styling */
#transactionForm label {
    display: block;
    font-size: 1.1rem;
    margin: 10px 0 6px;
    font-weight: 400;
    color: #555;
}

/* Input and Select Field Styling */
#transactionForm input, #transactionForm textarea, #transactionForm select {
    width: 100%;
    padding: 8px 15px;
    margin-bottom: 0px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box; /* Ensures padding is included in the width */
    font-size: 1.1rem;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus effect for input and select fields */
#transactionForm input:focus, #transactionForm select:focus {
    outline: none;
    border-color: #0d53d6;  /* Blue border on focus */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2); /* Light blue glow */
}


/* Button Styling */
#transactionForm button {
    width: 100%;
    padding: 14px;
    font-size: 1.2rem;
    background-color: #0d53d6; /* Green background */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top:20px;
}

/* Button Hover Effect */
#transactionForm button:hover {
    background-color: #001bee;  /* Darker green on hover */
    transform: translateY(-3px); /* Slight lift effect on hover */
}

/* Button Active Effect */
#transactionForm button:active {
    background-color: #399b3f;  /* Even darker green on click */
    transform: translateY(1px); /* Slight press-down effect */
}



/* Error Message Styling */
.error-message {
    color: #f44336;  /* Red color for error messages */
    font-size: 0.9rem;
    margin-top: -12px;
    margin-bottom: 12px;
}

/* Sliding animation */
.slide {
    display: flex;
    transition: transform 0.3s ease;
}


    /* Light Mode - Default Styles */
.allTransactionsList {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.9);
}

.allTransactionsList caption {
    font-size: 14px;
    font-weight: bold;
    background: #0d53d6;
    color: gold;
    padding: 10px;
    text-align: left;
}

.allTransactionsList thead {
    background: #0d53d6;
    color: white;
}

.allTransactionsList th,
.allTransactionsList td {
    padding: 8px;
    border: 1px solid #ddd;
}

.allTransactionsList tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.allTransactionsList tbody tr:hover {
    background: #e9f5ff;
    transition: 0.3s;
}

.allTransactionsList tfoot {
    background: #f1f1f1;
    font-weight: 500 !important;
}

.allTransactionsList tfoot td {
    padding: 10px 5px;
    border-top: 2px solid #0d53d6;
}

.year-summary{
    background-color: #FEFCFF; /* White background */
    padding: 20px; /* Padding inside the box */
    box-shadow: 0 0 10px rgba(105, 96, 236, 0.4); /* Soft shadow around the box */
    border-radius: 8px; /* Rounded corners for smooth appearance */
    max-width: 100%; /* Ensure the box doesn't overflow */
    margin: 20px 0; /* Spacing around the element */
}


/* Optional: Align <span> and <strong> elements inside each <p> for better spacing */
.year-summary p {
    display: flex;
    justify-content: space-between; /* Distribute <span> and <strong> across the width */
    margin: 8px;
}

/* General styling for the nav-header container */
.nav-header {
    display: flex;
    padding: 10px;
    text-align: cente;
    align-items: flex-start;
    flex-direction: column;
}

.user_card_name {
    font-size: 16px;
    /* Larger name for better visibility */
    font-weight: 600;
    /* Medium bold weight for clarity */
    margin-left: 15px;
    color: #fff;
}

.user_card_role {
    font-size: 15px;
    /* Slightly larger font size for role */
    color: #ddd;
    /* Lighter gray for less emphasis */
    margin: 10px;
    font-weight: 400;
    /* Normal weight for the role */
}

.user_card_profile_pic {
    width: 60px;
    /* Larger profile picture */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f1f1;
    /* Border around profile picture for better separation */
}

/* Basic reset for ul and li */
.nav-menu {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    width:100%;
    gap:25px;
    justify-content: space-between;
}
/* Hide scrollbar but still allow scrolling */
.nav-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Webkit browsers */
}

.nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
    width:80px;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-weight:400;

}

.nav-item span {
    font-size: 13px !important;
}

.nav-item-icon {
    width: 45px;  /* Adjust the icon size as needed */
    height: 45px;
    border-radius: 50%;  /* Make the icon circular */
    object-fit: cover;   /* Ensure the image is contained properly */
    margin-bottom: 10px;  /* Space between the icon and the text */
    border: 1px solid #0d53d6; /* Border around the image */
    padding: 7px;
}


@media (prefers-color-scheme: dark) {
    .nav-item a {
        color: #888888;
    }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
/* Table styles */
.allTransactionsList {
    background-color: #222;  /* Very dark gray background for dark mode */
    color: #f1f1f1;  /* Light text for contrast */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);  /* Stronger black shadow for depth on all sides */
    border-radius: 8px;  /* Optional: rounded corners for a smoother effect */
}

/* Caption styles */
.allTransactionsList caption {
    background: #444;
    color: #ffcc00;  /* Gold color for dark mode */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.6);  /* Top shadow with dark black color */
    font-weight: bold;  /* Optional: make the caption text bold */
}


    /* Table data and header cell styles */
    .allTransactionsList th,
    .allTransactionsList td {
        padding: 8px;
        border: 1px solid #444;  /* Darker borders in dark mode */
    }

    /* Even rows (alternating background) */
    .allTransactionsList tbody tr:nth-child(even) {
        background: #2a2a2a;  /* Dark background for even rows */
    }

    /* Hover effect on rows */
    .allTransactionsList tbody tr:hover {
        background: #3c3c3c;  /* Slightly lighter dark hover effect */
        transition: 0.3s;
    }

    /* Footer styles */
    .allTransactionsList tfoot {
        background: #333;
    }

    .allTransactionsList tfoot td {
        padding: 10px 5px;
        border-top: 2px solid #649eff;  /* Light blue border in dark mode */
    }

}


    .allTransactionsList tbody td:nth-child(3),
    .allTransactionsList tbody td:nth-child(4) {
    text-align: right !important;
    }
    .allTransactionsList tfoot td:nth-child(1),
    .allTransactionsList tfoot td:nth-child(2),
    .allTransactionsList tfoot td:nth-child(3) {
    text-align: right !important;
    }
    
     .allTransactionsList tfoot td:nth-child(4) {
    text-align: center !important;
    }

    /* Responsive Table */
    @media (max-width: 768px) {
        .allTransactionsList tbody {
            font-size: 16px !important;
        }
    }

/* Responsive Design */
@media screen and (max-width: 600px) {
    table th, td{
        font-size: 13.5px !important;
    }

}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 15px 10px;
    margin: 20% auto;
    width: 90%;
    max-height: 80%; /* Set a maximum height for the modal */
    overflow-y: auto; /* Enable scrolling if content exceeds max-height */
    text-align: left;
    border-radius: 8px; /* Optional: For rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0.4);
}

.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    padding-right:20px;
}

#modalDate{
    color:#0d53d6;
}

/* Flexbox container for both month and year totals */
.totals {
    display: flex;  /* Enable flexbox */
    justify-content: space-between;  /* Ensure there's space between the items */
    width: 100%;  /* Ensure the container takes full width */
    padding: 10px;  /* Optional padding */
    box-sizing: border-box;
}

/* Styling for the month totals and year totals */
#monthTotals, #yearTotals {
    width: 48%;  /* Each takes 48% of the container width */
    padding: 10px;  /* Padding for internal spacing */
    box-sizing: border-box;  /* Include padding in width */
    text-align: left;  /* Align the text to the left */
}

/* Optional: Adding some styling to the headers and text */
#monthTotals h3, #yearTotals h3 {
    margin-top: 0;  /* Remove margin from the top of the h3 tag */
}

#monthTotals p, #yearTotals p {
    margin: 5px 0;  /* Adding some space between paragraphs */
}

#monthTotals strong, #yearTotals strong {
    font-weight: bold;  /* Make the total income/expense bold */
}

/* Default light theme styles */
body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #F4F2F5; /* Light background for readability */
    color: #333; /* Dark text for good contrast */
    height: 100vh;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;  /* Dark background */
        color: #EAEAEA;  /* Light text */
    }

    .body-content {
        background-color: #1e1e1e;  /* Dark content area */
        color: #EAEAEA;  /* Light text */
    }

    .navbar {
    background-color: #1e1e1e;  /* Dark navbar */
    color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);  /* Darker black shadow */
}

    .nav-header {
        background-color: #222 ;
    }

    .left-nav {
        background-color: #1e1e1e;  /* Dark left navigation */
        color: #EAEAEA;
    }

    /* Navbar, buttons, and other elements */
    button, input, select, .select2-container .select2-selection--single {
        background-color: #333;
        color: #EAEAEA;
    }

    .totals, .year-summary {
        background-color: #222;  /* Very dark gray background for dark mode */
    color: #f1f1f1;  /* Light text for contrast */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);  /* Stronger black shadow for depth */
}

    #calendar table {
        background-color: #222;  /* Very dark gray background for dark mode */
    color: #f1f1f1;  /* Light text for contrast */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);  /* Stronger black shadow for depth */
}

    .highlight-today {
        background-color: #555; /* Highlight color for today's date in dark mode */
        }

    .left-nav ul li a:hover {
        color: #0d53d6;  /* Adjust hover color for dark mode */
    }

    .logout-btn {
        background-color: #222;
        color: white;
    }

    .logoutbtn, .bottom-buttons .btn {
      /*  background-color: #1c1c1c; Dark background for buttons */
        color: white;
    }
    
    .modal{
        background-color: rgba(0, 0, 0, 0.7);

    }

    .modal-content {
        background: #333;  /* Dark background for modals */
        color: #EAEAEA;
        border:1px solid #777 !important;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);  /* Darker black shadow */
    }

    .error-message {
        color: #f44336;  /* Red for error messages */
    }

    .select2-dropdown {
        background-color: #333 !important; /* Dark background for dropdown */
        color: #EAEAEA;
    }

    .select2-results__option {
        background-color: #444 !important; /* Dark background for options */
        color: #EAEAEA;
    }

    .select2-results__option:hover {
        background-color: #555 !important; /* Slightly lighter option on hover */
    }

    .select2-results__option[aria-selected="true"] {
        background-color: #0d53d6 !important; /* Selected option background */
        color: white !important;
    }
    
    #transactionModal table{
        background: #1e1e1e;  /* Dark background */
       box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);  /* Darker black shadow */
    }
    
    #transactionModal table th,
    #transactionModal table td{
        border: 1px solid #444; 
    }
    
    /* Even rows for transaction table */
    #transactionModal tbody tr:nth-child(even) {
        background: #2a2a2a;  /* Dark background for even rows */
    }

    /* Hover effect for transaction rows */
    #transactionModal tbody tr:hover {
        background: #3c3c3c;  /* Slightly lighter dark hover effect */
        transition: 0.3s;
    }

    /* Footer of the transaction table */
    #transactionModal tfoot {
        background: #333;  /* Dark background for footer */
        font-weight: bold;
    }

    #transactionModal tfoot td {
        padding: 15px 8px;
        border-top: 2px solid #649eff;  /* Light blue border in dark mode */
    }
    #transactionForm{
        background-color: #3c3c3c;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);  /* Darker black shadow */
        
    }
    input, textarea, select.select2, .select2-container .select2-selection--single  {
        background-color: #2c2c2c !important;
        border:0.5px solid #333 !important;
        color:#fff !important;
    }
    
    #transactionForm label{
        color:#ddd;
    }
    
    .left-nav ul li a {
        color:#ddd;
    }
    
    /* Select2 container */
    .select2-container .select2-selection--single {
        color: white;  /* White font color in dark mode */
        background-color: #444;  /* Dark background for the selection box */
        border-color: #666 !important;  /* Dark border for the selection box */
    }
    
    #transactionForm .select2-container .select2-selection--single {
    border: #555 !important;
    }

    .select2-container .select2-selection--multiple {
        color: white !important;  /* White font color for multiple select in dark mode */
        background-color: #444;  /* Dark background for the selection box */
        border-color: #555;  /* Dark border for the selection box */
    }

    .select2-container .select2-selection__rendered {
        color: white !important;  /* White font color for rendered selected options */
    }

    .select2-container .select2-results__option {
        color: white;  /* White font color for dropdown options */
        background-color: #333;  /* Dark background for dropdown options */
    }
    /* Selected option in dropdown */
    .select2-container .select2-results__option[aria-selected=true] {
        background-color: #0d53d6;  /* Highlighted selected option */
        color: white !important;  /* White font color for selected option */
    }

    /* Highlight hover effect for dropdown options */
    .select2-container .select2-results__option:hover {
        background-color: #555;  /* Lighter background color on hover */
        color: white;  /* White font color on hover */
    }


    #calendar table th,
    #calendar table td {
    border:1px solid #444 !important;
}

    #calendar table{
        border:none !important;
    }
}
