body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: #4CAF50;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  overflow: visible;
}
.main-nav {
  display: inline-flex;
  gap: 1rem;
  white-space: nowrap;
  overflow-x: auto;
}
.main-nav::-webkit-scrollbar { display: none; }

.header {
  background: linear-gradient(
    to left,
    #1f2937,  
    #111827, 
    #000000 
  );

  border-bottom: 1px solid #1f2937;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: white;
  margin: 0;
  font-size: 2rem;
}

.header-left h1 {
  margin-right: 20px;
}

.header-left ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-left ul li {
  margin-right: 15px;
}

.header-left ul li a {
  color: white;
  text-decoration: none;
}

.header-right {
  position: relative;
}
  
.main-nav a {
  color: white;
  text-decoration: none;
  padding: 5px;
}
  
.main-nav a:hover {
  text-decoration: underline;
}

/* Left navigation for header */
.left-nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}

.left-nav h1 {
  margin-right: 20px;
}
footer {
  background-color: #4CAF50;
  color: white;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, .1);
  flex-shrink: 0;
}

.footer {
  background: linear-gradient(
    to right,
    #1f2937,
    #111827,  
    #000000    
  );

  border-top: 1px solid #1f2937;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem; 
}
  
  nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  nav li {
    font-size: 1.1rem;
  }

  nav li a {
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  nav li a:hover {
    background-color: #45a049;
  }
/*this is the container form for all of the dashboard features. Storing here for now but will most likely be moved later*/
.generic-container {
  width: 80%;
  max-width: 550px;
  max-height: 560px;
  margin: 20px auto;
  padding: 20px;
  border: none;
  border-radius: 8px;
  background-color: #f9f9f9;
  background: rgba(0, 0, 0, 0.7); 
  color: white;
  box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.chart-container{
  text-align: center;
}

.chart-wrapper{
  width: 100%;
  max-width: 600px;
  max-height: 520px;
  margin: 20px auto;
  padding: 20px;
  border: none;
  border-radius: 8px;
  background-color: #f9f9f9;
  background: rgba(0, 0, 0, 0.7); 
  color: white;
  box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

/* Chart filters */
.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 12px;
  background-color: rgba(0, 0, 0);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  max-width: 100%;
  overflow: hidden;
}

.filter-controls label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #007bff;
}

.filter-controls select {
  margin-top: 4px;
}

.filter-controls button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.filter-controls button:hover {
  background-color: #b02a37;
}

.bar-chart {
  height: 275px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }
  
  .custom-button {
    padding: 12px 24px;
    font-size: 18px;
    border: 2px solid black;
    background-color: rgba(0, 0, 0, 0.1);
    color: black;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
  }
  
  .custom-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
  }

/*////////Cancel icon styling/////////*/
.cancel-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: black;
}

.cancel-icon:hover {
  color: red;
  transform: scale(1.1);
  transition: all 0.2s ease-in-out;
}

/*////////button group styling/////////*/
.button-group {
  display: flex;    
  gap: 12px;           
  justify-content: flex-start; 
  margin-top: 15px;    
  flex-wrap: wrap;    
}
.button-group button {
padding: 9px 15px;
font-size: 12px;
border: 2px solid white;
background-color: rgba(255, 255, 255, 0.1);
color: white;
border-radius: 6px;
width: 50%;
margin: 0 auto;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
.dropdown-container {
  position: relative;
  padding: 5px;
  z-index: 2;
}

.dropdown-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;    
  background: #1f2937;
  color: #fff;
  border-radius: 8px;
  border-top-right-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 2000;
}

.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 5px;
  font: inherit;
  line-height: inherit;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu button:hover {
  background-color: rgb(253, 2, 2);
}
.form-box {
  background-color: black;
  padding: 20px;
  border-radius: 12px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
  width: 100%;
  text-align: center;
}
/*generic form code*/
.generic-form {
  width: 90%;
  max-width: 600px;
  min-width: 280px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
  margin: 0 auto;
}

.generic-form h2 {
  margin-bottom: 16px;
}

.generic-form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: bold;
}

.generic-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.generic-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.generic-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.generic-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.generic-form select::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.generic-form select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.generic-form button:not(.back-button) {
  padding: 12px 24px;
  font-size: 18px;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  width: 50%;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.generic-form button:hover {
  background: white;
  color: black;
}

.generic-form p {
  margin-top: 12px;
}

/*checkbox styling*/
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 5px; 
  margin-top: 5px;
  justify-content: flex-start;
}

.checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0; 
  cursor: pointer;
}
/*aditional styling*/
label {
  color: white;
  font-size: 16px;
  text-align: left;
  display: block;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: none;
  border-radius: 6px;
}

textarea {
  height: 100px;
  resize: vertical;
}

/*////////button group styling/////////*/
.button-group {
  display: flex;    
  gap: 12px;           
  justify-content: flex-start; 
  margin-top: 15px;    
  flex-wrap: wrap;    
}
.button-group button {
padding: 9px 15px;
font-size: 12px;
border: 2px solid white;
background-color: rgba(255, 255, 255, 0.1);
color: white;
border-radius: 6px;
width: 50%;
margin: 0 auto;
cursor: pointer;
transition: all 0.3s ease-in-out;
}

/*syling for the verification code entry*/
.code-input-container {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.code-input {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 5px;
  outline: none;
}
html {
    overflow: hidden;
    height: 100%;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  a {
    text-decoration: none;
    color: white;
  }
:root {
  --header-height: 70px;
  --footer-height: 104px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow: hidden;
  }
  
  .content-container {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100svh - var(--header-height) - var(--footer-height));
    flex-direction: column;
    align-items: center;
    justify-content:  flex-start;
    width: 100%;
    flex-wrap: wrap;
    overflow: hidden;
    background: linear-gradient(to bottom right, #4CAF50, #2196F3); 
  }

  .content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    overflow: auto;
  }

  /*generic text*/
  .generic-text {
    max-width: 600px; 
    margin: 0 auto; 
    text-align: center; 
    line-height: 1.6; 
    font-size: 18px;
  }
  
  .generic-text a {
    color: white; 
    text-decoration: none; 
    font-weight: bold;
  }
  
  .generic-text a:hover {
    text-decoration: underline;
  }

  .fade-message {
    font-size: 1.6rem;
    min-height: 50px;
    color: black;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    margin: 20px 0;
    transition: opacity 2s ease-in-out;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

.expense-list h2 {
  text-align: center;
}

.expense-list ul {
  padding: 0;
}

.expense-list li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 1.1rem;
}

.expense-list li:last-child {
  border-bottom: none;
}

.expense-list th {
  cursor: pointer;
  color: white; 
}

th:hover {
  text-decoration: underline;
}

.expense-list table {
  width: 100%;
  border-collapse: collapse;
}

.expense-list th,
.expense-list td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.expense-list thead {
  position: sticky;
  top: 0;
  background: #222; 
  z-index: 2;
}

.expense-table-container {
  max-height: 400px; 
  overflow-y: auto;  
  display: block;
}

.expense-table-container button {
  background-color: green; 
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.expense-table-container button:hover {
  background-color: #008829; 
}



.back-button-container {
  display: flex;
  justify-content: flex-end; 
  margin-bottom: 10px;
}

.back-button {
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

.back-button:hover {
  background-color: #667;
}

.create-expense-link {
  margin-top: 20px;
  text-align: center;
}

.create-expense-link a {
  color: #1db954;
  font-weight: bold;
  text-decoration: none;
}

.create-expense-link a:hover {
  text-decoration: underline;
}
.calendar-container {
    width: 100%;
    max-width: 600px;
    min-height: 520px;
    margin: 20px auto;
    padding: 20px;
    border: none;
    border-radius: 8px;
    background-color: #f9f9f9;
    background: rgba(0, 0, 0, 0.7); 
    color: white;
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    flex-direction: column;
  }
  .details-container {
    margin-top: 20px;
  }
/* Greeting Message */
.dashboard-header {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Dashboard container */
.dashboard-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 15px auto;
  padding: 15px;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: auto;
}

/* Dashboard grid */
.dashboard-grid {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: all 0.3s ease-in-out;
  overflow: visible;
}

/* Medium screens: 3 columns */
@media (max-width: 1425px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-section {
    max-height: 450px;
    min-height: 450px;
  }
}

/* Small screens: 1 column */
@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-section {
    max-height: 400px;
    min-height: 400px;
  }
}

/* Dashboard sections */
.dashboard-section {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-height: 560px;
}

/* Wrapper inside sections */
.dashboard-wrapper {
  flex-grow: 1;
  max-height: 100%;
  overflow: hidden;
}

/* Links inside sections */
.dashboard-section a {
  color: #1db954;
  text-decoration: none;
  font-weight: bold;
}

.dashboard-section a:hover {
  text-decoration: underline;
}

