/* 
Modernized Personal Finance Tracker Stylesheet
Updated for a sleek and masculine aesthetic
*/
/* Parallax Section */
.parallax-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: black;
}

.p_background_img {
  width: auto; /* Maintain aspect ratio */
  height: 130%; /* Fill the height of the section */
  /* Ensure it doesn’t overflow */
  opacity: 0.2; /* Make the image faint */
  display: block;
  margin: auto;
  transform: translateY(-10%);
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('path-to-your-image.jpg'); /* Add your background image here */
  background-size: cover;
  background-attachment: fixed; /* Enables parallax scrolling */
  background-position: center;
}

.parallax-content {
  z-index: 1;
  font-family: 'Roboto', sans-serif;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-btn {
  background-color: #1abc9c;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.hero-btn:hover {
  background-color: #16a085;
  transform: translateY(-3px);
}

/* Form Section */
.form-section {
  padding: 50px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.form-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Stats Section */
.stats-container {
  display: flex;
  justify-content: space-around;
  background-color: #ffffff;
  padding: 50px 20px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Circle Label Styling */
.circleLabel {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-top: 20px;
}
/* General Body Styling */
body {
  font-family: 'Inter', sans-serif; /* Clean, modern font */
  background-color: #f4f4f4; /* Neutral background */
  color: #2c3e50; /* Deep, professional text color */
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Navigation Bar */
.my-nav-bar { /* Dark background for a sleek look */
color: black;
font-family: 'Roboto', sans-serif;
font-size: 15px;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}

.my-nav-bar a {
color: #f4f4f4;
text-decoration: none;
margin: 0 10px;
transition: color 0.3s;
}

.my-nav-bar a:hover {
color: #1abc9c; /* Modern highlight color */
}

/* Stats Section */
.stats-container {
display: flex;
justify-content: space-evenly;
background-color: #ffffff;
border-radius: 10px;
padding: 40px 20px;
margin: 20px auto;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat1, .stat2 {
flex: 1;
text-align: center;
margin: 0 20px;
}

.circleLabel {
font-size: 24px;
font-weight: 600;
color: #34495e; /* Professional, muted color */
}

/* Divisions Section */
.divisions {
display: flex;
justify-content: center;
padding: 40px;
margin: 0 auto;
text-align: center;
background-color: #e8ecef;
border-radius: 10px;
gap: 20px;
}

.bank-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    font-size: 2rem;
    font-weight: bold;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 8px 8px 0 0;
}

.indDivisions {
background-color: #ffffff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}

.indDivisions:hover {
transform: scale(1.05);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.button {
background-color: #2c3e50;
color: #f4f4f4;
border: none;
border-radius: 10px;
padding: 20px 40px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
background-color: rgb(49, 83, 139); /* Highlight on hover */
transform: translateY(-5px); /* Subtle hover effect */
}

/* Forms */
.form-control {
  font-size: 16px;
  margin: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.form-control-history {
  font-size: 16px;
  margin: 0px;
  padding: 0px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  max-height: 40px;
}

#create_tag_link {
  color: rgb(166, 209, 239) !important; /* primary color */
  text-decoration: underline;
  font-size: 15px;
  margin: 10px;
}

#btn-link:hover, #btn-link:focus {
  color: #5994ed; /* darken primary color */
  text-decoration: underline;
}

#submit1 {
  margin: 10px;
}

#submit2 {
  margin: 10px;
}


/* Table Styling */
.table {
width: 80%;
margin: 20px auto;
border-collapse: collapse;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #ccc;
}

.table th {
background-color: #2c3e50;
color: #f4f4f4;
}

.table tr:hover {
background-color: #f9f9f9;
}

/* Popup Form */
.popup {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1000;
justify-content: center;
align-items: center;
}

.popup-content {
background-color: #ffffff;
padding: 30px;
border-radius: 10px;
width: 400px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
text-align: center;
}

/* General Button Styling */
.btn {
background-color: #1abc9c;
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.btn:hover {
background-color: #16a085;
}


/*Tracking graphs*/
.graphs {
  display: flex;
  justify-content: center;
  padding: 20px; 
  margin: 0 auto; 
  text-align: center;
  flex: 1;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: rgb(255, 255, 255); 
  box-sizing: border-box;
  justify-content: space-between;
  margin-top: 20px;
}

.graphChartSave {
  max-width: auto;
  max-height: auto;
  margin: 50px;
  padding: 20px; /* Adds some inner spacing */
  background-color: #ffffff; /* Ensures a clean background for the graphs */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border: 1px solid #ddd; /* Optional: Light border to define the edges */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation for hover effect */
}


.login-nav {
  justify-content: end;
  margin-right: 30px;
}

.alert {
  font-size: 20px;
  color: red;
  margin: 5px;
  margin-bottom: -5px;
  padding: 4px;
}

.green {
  color: green !important;
}

.password-wrapper {
  position: relative;
  width: 100%;
}


.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  transition: right 0.3s ease;
}

.toggle-password.shift-left {
  right: 40px;
  top: 30px;
}

.l-container {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.fourh_width {
  width: 400px;
  text-align: center;
}

.navbar-settings {
  position: absolute;
}

/* TAGS */
.color-circle {
  display: inline-block;
  width: 15px; /* Adjust size as needed */
  height: 15px; /* Adjust size as needed */ /* Remove default border */
  border-radius: 50%; /* Makes the circle shape */
  border-width: 0.75px;
  padding: 0;
  margin: 0px; /* Adjust margin as needed */
  vertical-align: middle; /* Aligns the circle vertically with the text */
  cursor: pointer; /* Pointer cursor for better UX */
  -webkit-appearance: none; /* Remove default appearance */
  appearance: none; /* Remove default appearance */
}

.color-circle::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-circle::-webkit-color-swatch {
  border-width: 1px;
  border-radius: 50%;
}

.color-circle::-moz-color-swatch {
  border-width: 1px;
  border-radius: 50%;
}

#tagTable {
  max-width: 800px;
}

.checkbox {
  vertical-align: middle;
}

#addTag, #deleteTag {
  display: inline-flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  margin-left: 5px;
  font-size: 20px;
}

#updateTag {
  margin-right: 130px;
}

#deleteTag {
  font-weight: bold;
}

#tagButtons {
  display: flex;
  justify-content: center; /* Center the button group */
}

#tagButtons .btn {
  margin-top: -10px;
}

#add_new_tag {
  display: inline-flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  font-size: 10px;
  padding-top: 10px;
  max-width: 10px;
  max-height: 10px;
}

.mini_buttons {
  display: inline-flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  font-size: 10px;
  padding-top: 10px;
  max-width: 10px;
  max-height: 10px;
  background-color: #1abc9c;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0px;
}

.form-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-fields {
  flex: 1; 
  display: flex;
  gap: 10px;
  margin: 5px;
  justify-content: center;
}

.form-buttons {
  display: flex;
  gap: 5px;
  margin-top: -35px;
}

.truncate {
  max-width: 100px; /* Adjust the width as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* search and sort features on history page */
.sortable {
  cursor: pointer;
}

.sortable.ascending::after {
  content: " ↑";
}

.sortable:not(.ascending)::after {
  content: " ↓";
}

.search-container {
  text-align: right;
}

#search-bar {
  width: 300px;
  padding: 5px;
  justify-content: center;
  align-items: center;
}


/* resources page */
.resources_head {
  text-align: center;
}

.resources-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.resource-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease-in-out;
}

.resource-card img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}

.resource-card h2 {
  font-size: 1.2rem;
  margin: 15px 0;
}

.resource-card p {
  font-size: 1rem;
  color: #666;
  margin: 10px 0 15px;
}

.resource-card a {
  display: inline-block;
  padding: 10px 15px;
  background-color: #2d89ef;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.resource-card a:hover {
  background-color: #1e5cbf;
}

.resource-card:hover {
  transform: translateY(-10px);
}

/* Style for multi-select dropdown */
/* Style the dropdown */
.form-select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

/* Style the selected tags container */
#selected-tags-container {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 5px;
}

/* Style individual selected tags */
.selected-tag {
  align-items: center;
  justify-content: space-between;
  max-width: 150px; /* Adjust the width as needed */
  text-overflow: ellipsis;
  display: flex;
  padding: 5px 10px;
  background-color: #1abc9c;
  color: white;
  border-radius: 4px;
  font-size: 12px;
}

/* Style the remove button for tags */
.remove-tag {
  margin-left: 8px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.remove-tag:hover {
  color: #ff0000;
}

.vertical-form-fields {
  display:flex;
  flex-direction: column;
}