@import url("/CSS/roots.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
  font-family: "Inter", system-ui;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.dashboard {
  max-width: 900px;
  margin: 00px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  /* 
  box-shadow: 0 0 50px 90px yellow;
 */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #3498db;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
}

.profile-dropdown {
  position: relative;
}

.dropdown-button {
  background-color: #ffffff;
  color: #3498db;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.dropdown-button:hover {
  background-color: #e0e0e0;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  top: 50px;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #3498db;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f4f4f4;
}

.dropdown-content .sign-out {
  background-color: #e74c3c;
  color: #ffffff;
  border: none;
  padding: 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  border-radius: 0 0 5px 5px;
  font-size: 1rem;
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

.dropdown-button:hover {
  background-color: #2980b9;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.dropdown-content a,
.dropdown-content button {
  display: block;
  padding: 12px 20px;
  color: #3498db;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
  background-color: #f4f4f4;
}

.profile-dropdown[aria-expanded="true"] .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
}


.dlbtn {
  border-radius:5px;
  border:none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.dlbtn:hover {
  border-radius:5px;
  border:none;
  background-color:#d6d6d6;
}
.summary {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  /* width: 100%; */
}

.card {
  background-color: #3498db;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
  /* margin: 0 10px; */
}

.card h2 {
  margin: 0 0 10px 0;
}

.card .hours {
  font-size: 3rem;
  margin: 0;
}

.details {
  margin-top: 30px;
}

.details h2 {
  color: #333333;
  margin-bottom: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

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

table th {
  background-color: #f4f4f4;
  color: #333333;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f1f1f1;
}

.add-btn {
  background-color: #3498db;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  border: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.add-btn:hover {
  background-color: #2980b9;
}

.buttons {
  display: flex;
  justify-content: center;
  width: 100%; /* Ensure the container takes up the full width */
}

.buttons a {
  flex: 1; /* Make the anchor tag take up equal space */
  text-align: center; /* Center the button text */
  display: flex; /* Make the anchor behave like a flex container */
  text-decoration: none;
}

.buttons .add-btn {
  flex: 1; /* Make the button take up the full width of the anchor */
  margin: 0 5px; /* Optional: adds spacing between buttons */
  width: 100%; /* Ensure the button takes up the full width */
  box-sizing: border-box; /* Include padding/border in element's width and height */
}

.nav {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-direction: row;
  justify-content: space-between;
}

.nav button {
  background: none !important;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  body {
    font-family: "Inter", system-ui;
    background-color: #fff;
    margin: 0;
    padding: 0;
  }

  header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .dashboard {
    padding: 20px;
    margin: 0 auto;
  }

  .profile-dropdown {
    margin-top: 10px;
  }

  .card {
    margin-bottom: 20px;
    padding: 15px;
    font-size: 0.9rem;
  }

  .summary {
    flex-direction: column;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .card .hours {
    font-size: 2.5rem;
  }

  .details h2 {
    font-size: 1.5rem;
  }

  table {
    width: 100%;
  }

  table th, 
  table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  .add-btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav button {
    width: 100%;
    margin-bottom: 10px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons a {
    margin-bottom: 10px;
  }

  .dropdown-button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .dropdown-content {
    top: 40px;
    min-width: 150px;
  }
}

/* Tab container */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0px;
  /* border-bottom: 2px solid #3498db; */
}

/* Individual tabs */
.tab {
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 1rem;
  font-weight: 500;
  background-color: #f4f4f4;
  color: #3498db;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  border-bottom: none;
}

/* Active tab styling */
.tab.active {
  background-color: #3498db;
  color: #ffffff;
  border-color: #3498db;
}

/* Hover effect on tabs */
.tab:hover {
  background-color: #d0e6f7;
  color: #2980b9;
}

/* Content areas for each tab */
.tab-content {
  display: none;
  padding: 20px;
  border: 2px solid #3498db;
  border-radius: 8px 8px 8px 8px;
  transition: display 0.3s ease;
}

/* Active content area */
.tab-content.active {
  display: block;
}

/* Mobile-specific tab styles */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .tab {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
    border-radius: 8px;
  }
}

/* Style for the form container */
.personal-info-form {
  /* max-width: 600px; */
  margin: 0 auto;
  /* padding: 20px; */
  /* background-color: #f4f4f4; */
  border-radius: 8px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.personal-info-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Style for form groups */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* For address input fields */
.form-group input[type="text"] {
  /* width: calc(100% - 20px); */
  margin: 5px 0;
}

/* Flexbox layout for address fields */
.form-group.address-group {
  display: flex;
  justify-content: space-between;
}

.form-group.address-group input[type="text"] {
  flex: 1;
  margin-right: 10px;
}

.form-group.address-group input[type="text"]:last-child {
  margin-right: 0;
}


/* Style for submit button */
.submit-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #3498db;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #2980b9;
}

/* General styling for the resources tab */
.resource-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  /* padding: 20px; */
  text-align: left;
}

/* Styling for each individual card */
.resource-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  width: 30%;
  padding: 15px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Headings for the card */
.resource-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Paragraphs in the card */
.resource-card p {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #555;
}

/* Button styling */
.btn-resource {
  background-color: #007bff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

/* Hover effect for buttons */
.btn-resource:hover {
  background-color: #0056b3;
}

/* Hover effect for the card */
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .resource-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .resource-card {
    width: 100%;
  }
}