/* from here to @media (min-width: 992px) is to organize navbar and sidebar position and length  */
.navbar {
    height: 111px; /* Adjust if your navbar height differs */
}

.main-content {
    padding-top: 56px; /* Matches navbar height to prevent overlap */
}

.container-fluid .offset-md-3,
.container-fluid .offset-lg-2 {
    margin-left: 0;
}

@media (min-width: 768px) {
    .container-fluid .offset-md-3 {
        margin-left: 25%; /* Sidebar width on medium screens */
    }
}

@media (min-width: 992px) {
    .container-fluid .offset-lg-2 {
        margin-left: 16.67%; /* Sidebar width on large screens */
    }
}

/* padding between sidebar's items */
.sidebar .nav-item {
    margin-bottom: 0.5rem; /* Adjust as needed for more/less spacing */
    border-radius: 0.25rem; /* Optional: add rounding to each item */
}

/* to locate navbar items to the right aligning with sidebar's right edge */
.navbar-nav {
    padding-left: 6rem; /* Adjust the value as needed */
}

/* right-sidebar position */
.right-sidebar {
    position: fixed;
    top: 56px; /* Positions sidebar just below the navbar */
    right: 0;
    height: calc(100vh - 56px); /* Full height minus navbar height */
    padding-top: 1rem;
    overflow-y: auto;
    z-index: 1000;
}


/* right-sidebar styling */
.right-sidebar {
    padding: 15px;
}

.right-sidebar .container-md {
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

.right-sidebar h5 {
    font-weight: bold;
    color: #6c757d; /* Adjust as needed */
    margin-bottom: 10px;
}

.right-sidebar h7 {
    font-size: 1rem;
    font-weight: bold;
    color: #343a40; /* Darker color for date */
    margin-top: 10px;
    display: block;
}

.right-sidebar ul {
    padding-left: 1rem;
    list-style-type: disc;
}

.right-sidebar li {
    font-size: 0.9rem;
    color: #495057; /* Secondary text color */
    margin-top: 5px;
}

.calendar-container li {
  list-style-type: none;
}

/* Limit the calendar container height */
.calendar-container {
  max-height: 40vh; /* Set this to 50% of the viewport height */
  overflow-y: auto; /* Allow vertical scrolling if content exceeds max-height */
}

/* Webkit scrollbars (Chrome, Safari, etc.) */

/* Style the scrollbar track (background of the scrollbar) */
.calendar-container::-webkit-scrollbar {
  width: 8px;  /* Make the scrollbar narrower */
  height: 8px; /* For horizontal scrollbar, if you have one */
  opacity: 0;  /* Initially make it invisible */
  transition: opacity 0.3s ease;  /* Smooth transition for showing/hiding */
}

/* Style the scrollbar thumb (the part the user drags) */
.calendar-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);  /* Subtle color */
  border-radius: 10px;  /* Round the corners */
  transition: background-color 0.3s ease;
}

/* Make the scrollbar more visible when the user hovers over the container */
.calendar-container:hover::-webkit-scrollbar {
  opacity: 1;  /* Make the scrollbar visible on hover */
}

/* Style the scrollbar thumb when hovering over it */
.calendar-container:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);  /* Slightly darker when hovered */
}

/* To-do completed strikethrough*/
.completed {
    text-decoration: line-through;
}

/* Container for centering the input */
.todo-input-container {
    display: flex;
    justify-content: center;   /* Horizontally center */
    align-items: center;       /* Vertically center */
    height: 20%;              /* Ensure it fills the height of its container */
    padding: 0px;             /* Add some padding to avoid edges */
}

/* To-do input styling */
#new-todo {
    width: 100%;               /* Make the input take up full width of its container */
    max-width: 400px;          /* Limit the max width for a clean look */
    padding: 10px 10px;        /* Add padding for a better feel */
    font-size: 10px;           /* Modern font size */
    border-radius: 30px;       /* Rounded corners for a modern look */
    border: 1px solid #ccc;    /* Light border */
    background-color: #f9f9f9; /* Subtle background */
    transition: all 0.3s ease; /* Smooth transition for focus */
}

/* Add focus effect for modern look */
#new-todo:focus {
    border-color: #FF0000;     /* Blue border when focused */
    background-color: #fff;    /* Slight background change */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Shadow effect */
    outline: none;             /* Remove the default outline */
}

/* Optional: Placeholder styling */
#new-todo::placeholder {
    color: #aaa;               /* Lighter placeholder color */
    font-style: italic;        /* Italic style */
}

/* Index.html cards styling  */
.home-card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 40vh;
}
.home-card .card-title {
    font-weight: bold;
}
.home-card .fa-credit-card,
.home-card .fa-dollar,
.home-card .fa-money-bill {
    color: #ffffff; /* Icon color */
}

.home-card .d-flex {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.home-card .d-flex::after {
    content: "";
    position: absolute;
    left: 32px; /* Adjust this based on the width of your icons */
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3); /* Line color */
}

.home-card .d-flex:last-child::after {
         content: none; /* Removes the line from the last item */
}

.home-card .icon {
    width: 24px; /* Set a fixed width for the icons to control alignment */
    text-align: center; /* Center icon within the fixed width */
}

.home-card small {
    font-size: 0.9em;
    color: #d3d3d3; /* Lighter text color for details */
    line-height: 1; /* Adjust line height to reduce spacing */
}

.home-card p {
    font-size: 1.25em; /* Adjust for readability */
    margin: 0;
    line-height: 1; /* Adjust line height to reduce spacing */

}

.calendar-container2 li {
  list-style-type: none;
}

/* Limit the calendar container height */
.calendar-container2 {
  max-height: 40vh; /* Set this to 50% of the viewport height */
  overflow-y: auto; /* Allow vertical scrolling if content exceeds max-height */

}

/* Webkit scrollbars (Chrome, Safari, etc.) */
/* Style the scrollbar track (background of the scrollbar) */
.calendar-container2::-webkit-scrollbar {
  width: 8px;  /* Make the scrollbar narrower */
  height: 8px; /* For horizontal scrollbar, if you have one */
  opacity: 0;  /* Initially make it invisible */
  transition: opacity 0.3s ease;  /* Smooth transition for showing/hiding */
}

/* Style the scrollbar thumb (the part the user drags) */
.calendar-container2::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);  /* Subtle color */
  border-radius: 10px;  /* Round the corners */
  transition: background-color 0.3s ease;
}

/* Make the scrollbar more visible when the user hovers over the container */
.calendar-container2:hover::-webkit-scrollbar {
  opacity: 1;  /* Make the scrollbar visible on hover */
}

/* Style the scrollbar thumb when hovering over it */
.calendar-container2:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);  /* Slightly darker when hovered */
}

.calendar-container2 .event {
  line-height: 0.5; /* Adjust line height to reduce spacing */
  margin-bottom: 5px;
/*  border-left: 5px solid #ffffff;
  border-radius: 5px;
  transition: background-color 0.3s;*/
}

.calendar-container2 .event h7 {
  font-size: 0.8rem; /* Adjust line height to reduce spacing */

}

.calendar-container2 h1 {
  margin-top: 0px; /* Adjust line height to reduce spacing */
  line-height:0.5;
  margin-bottom:20px;

}

.refresh-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}


.m-0-small {
    font-size: 10rem;
    color: #d3d3d3; /* Lighter text color for details */

}

#uploadButton {
    font-size: 0.8rem; /* Smaller font size */
    font-weight: bold; 
    padding: 4px 8px;  /* Smaller padding */
    height: auto;      /* Ensure height adjusts with content */
    width: auto;       /* Ensure width adjusts with content */
}



