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 {
  background-color: #4CAF50;
  color: white;
  padding: 15px 0;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1) ;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.4) 100%);
  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;
}

.left-nav h1 {
  margin-right: 20px;
}
footer {
    background-color: #4CAF50;
    color: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 1000;
  }
  
  .footer {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, 0.7) 100%);
    padding: 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: 100%;
  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: right;
  padding: 5px;
}

/* Dropdown toggle button */
.dropdown-button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: black;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 150px;
  text-align: left;
}

/* Dropdown links & buttons */
.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;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.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;
  min-height: 80vh;
  width: 100%;
  text-align: center;
}
/*generic form code*/
.generic-form {
  width: 25%;
  max-width: 600px; 
  min-width: 100px;
  max-height: 600px; 
  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;
}

.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: auto;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  a {
    text-decoration: none;
    color: white;
  }
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .content-container {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    flex-wrap: wrap;
    background: linear-gradient(to bottom right, #4CAF50, #2196F3);
  }

  /*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-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
  
  .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);
    max-height: 550px;
    overflow: hidden;
  }
  
.dashboard-wrapper {
  flex-grow: 1;
  max-height: 100%;
  overflow: auto;
}
  
  .dashboard-section a {
    color: #1db954;
    text-decoration: none;
    font-weight: bold;
  }
  
  .dashboard-section a:hover {
    text-decoration: underline;
  }

