/* -------------------------------
       BASIC RESETS / STYLES
    --------------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#signInScreen {
  font-size: 1.5rem;
}

body {
  font-family: "Open Sans", sans-serif !important;
  background: #ffffff;
  color: #333;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 1rem;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Container that holds each "screen" */
.screen {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: none; /* All screens hidden by default */
}

.screen.active {
  display: block; /* Only the active screen is shown */
}

/* Centering content for demonstration */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px); /* Reserve space for bottom nav if needed */
}

.language-switch {
  position: fixed;
  top: 10px;
  right: 10px;
}

/* -------------------------------
             SIGN IN (MAIN) SCREEN
          --------------------------------*/
#signInScreen .buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 20px;
}

.btn-large {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #f28bb5;
  color: #ffffff;
}

/* -------------------------------
             SIGN UP SCREEN
          --------------------------------*/
#signUpScreen .avatar-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Example avatar style */
.avatar {
  width: 80px;
  height: 80px;
  background-color: #f28bb5;
  border-radius: 50%;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

#avatarScreen {
  background-color: #f7b9d1;
}

.avatarName {
  background-color: #f7b9d1;
  font-size: 35px;
}

#signUpScreen .age-input {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#signUpScreen .age-input input {
  padding: 0.5rem;
  width: 120px;
  text-align: center;
  margin-top: 0.5rem;
}

/* -------------------------------
             LOGIN SCREEN
          --------------------------------*/
#loginScreen label {
  margin-bottom: 0.25rem;
}

#loginScreen .login-form {
  display: flex;
  flex-direction: column;
  width: 350px;
  gap: 1rem;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
}

#loginScreen input {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* -------------------------------
             PERIOD TRACKER SCREEN
          --------------------------------*/
#periodTrackerScreen {
  background-color: #fff6f9; /* #fff6f9 background */
}
.calendar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-container h2 {
  margin-bottom: 1rem;
}

/* Simple table-based calendar mock */
.calendar {
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.calendar {
  margin: 20px 0;
  border-collapse: collapse;
  width: 100%;
}

.calendar th,
.calendar td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid black;
  text-align: center;
  padding: 10px;
}

.today {
  background-color: pink;
  font-weight: bold;
  border-radius: 50%;
}

.next-period {
  background-color: red;
  color: white;
  border-radius: 50%;
}

.dimmed {
  color: gray;
  opacity: 0.5;
}

.period-day {
  background-color: #f28bb5;
  opacity: 0.5;
}

/* Education Screen */
#educationScreen {
  background-color: #fff2cc;
}

.education-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.edu-btn {
  width: 150px;
  height: 100px;
  background-color: #fdc453;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  border-radius: 8px;
  position: relative;
}

.edu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: #f5ab30;
  border-radius: 8px 8px 0 0;
}

/* FAQs Screen */
#faqScreen {
  background-color: #fff6f9;
}

.faq-button {
  background-color: #f28bb5;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px;
  width: 100%;
  text-align: left;
  margin: 5px 0;
}

.faq-answer {
  display: none;
  padding: 10px;
  background: white;
  color: #333;
  border: 1px solid #f28bb5;
  border-radius: 8px;
}

/* -------------------------------
             EDUCATION SCREEN
          --------------------------------*/

.screen {
  text-align: center;
  padding: 20px;
}
.education-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.edu-btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  width: 200px;
}
.edu-btn:hover {
  background-color: #f5e3b0;
}
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  text-align: left;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.close-btn {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: red;
}
.popup-content {
  font-size: 16px;
}

#educationScreen {
  background-color: #fff2cc; /* #FFF2CC background */
}
.education-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.edu-btn {
  width: 150px;
  height: 100px;
  background-color: #fdc453; /* main tile color */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  position: relative;
  border-radius: 8px;
}

/* Darker shade band at the top */
.edu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: #f5ab30; /* darker yellow top bar */
  border-radius: 8px 8px 0 0;
}

.edu-btn span {
  position: relative;
  z-index: 1; /* so the text appears above the darker bar */
}

/* Example for expanded info when clicked */
.education-info {
  margin-top: 2rem;
  text-align: center;
}

/* -------------------------------
             FAQ SCREEN
          --------------------------------*/
#faqScreen {
  background-color: #fff6f9; /* #fff6f9 background */
}

.faq-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Pink FAQ buttons/circles */
.faq-button {
  background-color: #f28bb5;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  width: 80%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  width: 80%;
  background-color: #ffffff;
  color: #333;
  border: 1px solid #f28bb5;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* -------------------------------
             BOTTOM NAV
          --------------------------------*/
#bottomNav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #ddd;
  height: 60px;
}

#bottomNav button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.icon {
  font-weight: bold;
  padding: 0.5rem;
}

/* Hide bottom nav on the first screens if desired */
.hide-nav {
  display: none;
}

/* Signup Form Container */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spacing between input fields */
  margin-top: 20px;
}

/* Input Field Wrapper */
.signup-username,
.signup-password {
  display: flex;
  flex-direction: column;
}

/* Input Fields */
.signup-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease-in-out;
}

/* Input Field Focus Effect */
.signup-form input:focus {
  border-color: #007bff;
  outline: none;
}

/* Labels */
.signup-form label {
  font-size: 14px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

/* Avatar Container (Row Layout) */
.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Space between avatars */
  margin: 15px 0;
}

/* Avatar Styling */
.avatar {
  width: 80px;
  height: 80px;
  background-color: #f28bb5;
  border-radius: 50%;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

/* Hover Effect */
.avatar:hover {
  transform: scale(1.1);
}

/* Selected Avatar Highlight */
.avatar.selected {
  border: 3px solid #007bff;
}

/* Age Input Container */
.age-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

/* Label Styling */
.age-input label {
  font-size: 14px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

/* Input Field Styling */
.age-input input {
  width: 100%;
  max-width: 200px; /* Restricts width for better layout */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.3s ease-in-out;
}

/* Focus Effect */
.age-input input:focus {
  border-color: #007bff;
  outline: none;
}

/* Responsive Adjustment */
@media (max-width: 400px) {
  .age-input input {
    width: 80%;
  }
}

/* Bottom Navigation Bar */
#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

/* Hide by Default */
.hide-nav {
  display: none;
}

/* Navigation Buttons */
#bottomNav button {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
}

/* Active Button in Bottom Navigation */
#bottomNav button.active-btn {
  background-color: #007bff;
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #bottomNav {
    padding: 15px 0;
  }
}

/* Hide sections by default */
.hidden {
  display: none;
}

/* Show the active section */
.active {
  display: block;
}

/* Logout Button Container (Top Right) */
.logout-container {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* Logout Icon Button */
.logout-container button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Logout Icon Styling */
.logout-icon {
  width: 30px; /* Adjust size */
  height: 30px;
  transition: opacity 0.3s ease-in-out;
}

/* Hover Effect */
.logout-icon:hover {
  opacity: 0.7;
}

/* FAQ Section Container */
.faq-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  margin-top: 10px;
}

/* FAQ Buttons (Questions) */
.faq-button {
  width: 100%;
  background-color: #f28bb5;
  color: #fff;
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  border-radius: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  transition: background 0.3s;
  margin-bottom: -1px;
}

/* FAQ Answer (Hidden by Default) */
.faq-answer {
  width: 100%;
  display: none;
  background-color: #ffffff;
  padding: 10px;
  border-left: 5px solid #f28bb5;
  border-right: 5px solid #f28bb5;
  font-size: 16px;
  margin-bottom: 10px;
  border-radius: 38px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Active Question (When Open) */
.faq-button.active {
  background-color: #007bff;
  color: white;
}

/* Icon Styling */
.faq-button span {
  font-size: 20px;
  font-weight: bold;
}

/* Avatar Section */
.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.avatar-heading {
  margin-top: 20px;
}

/* User Avatar Image */
.user-avatar {
  width: 300px;
  margin-bottom: 10px;
  height: 400px;
  border-radius: 50%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

/* Avatar Hover Effect */
.user-avatar:hover {
  transform: scale(1.1);
}

/* Full-screen container for the education section */
#educationScreen {
  background-color: #fff2cc;
  min-height: 100vh; /* Take full screen height */
  padding: 20px;
  box-sizing: border-box;
}

/* Grid layout for buttons */
.education-buttons {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(150px, 1fr)
  ); /* Responsive grid */
  gap: 15px; /* Spacing between buttons */
  max-width: 800px; /* Limit the width for better readability */
  margin: 0 auto; /* Center the grid */
  padding: 20px;
}

@media (max-width: 600px) {
  .education-buttons {
    grid-template-columns: 2fr; /* Stack buttons vertically */
    gap: 10px; /* Reduce spacing */
    padding: 15px; /* Adjust padding */
    min-height: 100vh;
  }

  .edu-btn {
    font-size: 14px; /* Slightly smaller text for mobile */
    padding: 10px; /* Adjust button padding */
  }
}
/* Button styling */
.edu-btn {
  background-color: #fdc453;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  height: 100px; /* Fixed height for uniformity */
  text-align: center;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  transition: transform 0.2s, box-shadow 0.2s;
}

.edu-btn:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.edu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: #f5ab30;
  border-radius: 8px 8px 0 0;
}

/* Popup styling */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 90%;
  max-width: 500px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: grab; /* Indicate draggable area */
}

.popup-header:active {
  cursor: grabbing; /* Change cursor when dragging */
}

.close-btn {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.close-btn:hover {
  color: #000;
}

.popup-content {
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.5;
  font-size: 18px;
  text-align: justify;
}

/* Heading Styling */
.education-heading {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-top: 60px;
  margin-bottom: -15px;
}

.faq-heading {
  font-size: 36px;
}

/* Subtext Styling */
.education-subtext {
  display: block;
  text-align: center;
  font-size: 22px;
  color: #666;
  margin-bottom: 5px;
}

/* Sign-Up Text */
.signup-text {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

/* Sign-Up Link */
.signup-text a {
  color: #f28bb5;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

/* Hover Effect */
.signup-text a:hover {
  color: #4b4c4e;
  text-decoration: none;
}

.custom-body-color {
  background-color: #fff6f9;
}

/* Education Buttons Grid Layout */
.education-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns in the first row */
  gap: 20px; /* Spacing between buttons */
  max-width: 1000px; /* Wider container for better alignment */
  margin: 70 auto; /* Center the grid */
  padding: 20px;
}

/* Adjust the grid for the second row */
.education-buttons .edu-btn:nth-child(n + 4) {
  grid-column: span 1; /* Ensure the 4th button onwards spans 1 column */
}

/* Make buttons bigger */
.edu-btn {
  background-color: #fdc453;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  border-radius: 12px; /* Slightly larger border radius */
  position: relative;
  cursor: pointer;
  height: 120px; /* Increased height */
  text-align: center;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 18px; /* Larger font size */
}

.edu-btn:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.edu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: #f5ab30;
  border-radius: 12px 12px 0 0;
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
  .education-buttons {
    grid-template-columns: 1fr; /* Stack buttons vertically */
    gap: 15px; /* Reduce spacing */
    padding: 15px; /* Adjust padding */
  }

  .edu-btn {
    height: 100px; /* Slightly smaller height for mobile */
    font-size: 14px; /* Smaller font size for mobile */
    padding: 10px; /* Adjust button padding */
  }
}

/* New css starts from here */
/* Education Buttons Container */
.education-buttons {
  display: flex;
  flex-direction: column; /* Stack rows vertically */
  gap: 20px; /* Spacing between rows */
  max-width: 1000px; /* Wider container for better alignment */
  margin: 60px auto; /* Center the container */
  padding: 20px;
  height: 400px;
}

/* First Row: 3 Buttons */
.education-buttons .row-1 {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  gap: 20px; /* Spacing between buttons */
  margin: 0 100px; /* Add left and right margin */
}

/* Second Row: 4 Buttons */
.education-buttons .row-2 {
  display: flex;
  justify-content: space-between; /* Space out buttons evenly */
  gap: 20px; /* Spacing between buttons */
}

/* Make buttons bigger */
.edu-btn {
  background-color: #fdc453;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  border-radius: 12px; /* Slightly larger border radius */
  position: relative;
  cursor: pointer;
  height: 120px; /* Increased height */
  flex: 1; /* Allow buttons to grow and fill available space */
  text-align: center;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 18px; /* Larger font size */
}

.edu-btn:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.edu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background-color: #f5ab30;
  border-radius: 12px 12px 0 0;
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
  .education-buttons .row-1,
  .education-buttons .row-2 {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Reduce spacing */
    margin: 0; /* Remove margin on mobile */
  }

  .edu-btn {
    height: 100px; /* Slightly smaller height for mobile */
    font-size: 14px; /* Smaller font size for mobile */
    padding: 10px; /* Adjust button padding */
  }
}

.icon-red {
  color: red;
}

.error-message {
  color: red;
  font-size: 14px;
}

.input-container {
  margin-bottom: 4px;
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* New css starts from here */

#google_translate_element {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1000;
}

#google_translate_element select {
  background-color: white;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#google_translate_element select:hover {
  border-color: #888;
}

#google_translate_element select:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Hide the Google Translate attribution */
.goog-logo-link,
.goog-te-gadget span,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
div#goog-gt- {
  display: none !important;
}

.goog-te-gadget {
  font-size: 0px !important;
}

.goog-te-gadget div {
  display: inline;
}

/* Custom dropdown arrow */
#google_translate_element .goog-te-gadget::after {
  content: "\25BC";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #555;
}

.logo {
  margin-right: 20px; /* Adjust this value as needed */
}
.logout-container {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align to the right */
}

.logo {
  margin-right: 20px; /* Adds space between the logo and the button */
}

/* period tracker style */
/* Global Styles */
h2 {
  font-size: 36px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.period-log-heading {
  font-size: 1.6rem;
  /* margin: 25px 0 15px 0; */
  /* color: #d23f69; */
  font-weight: 600;
  margin-top: -px;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 10px;
  background-color: #f9f0f2;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(210, 63, 105, 0.1);
}

label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
}

input[type="date"],
input[type="number"] {
  padding: 12px;
  border: 2px solid #e8c1cc;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
  width: 100%;
}

input[type="date"]:focus,
input[type="number"]:focus {
  border-color: #d23f69;
  outline: none;
  box-shadow: 0 0 0 3px rgba(210, 63, 105, 0.2);
}

/* Next Period Info */
#nextPeriodInfo {
  font-size: 1.2rem;
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f0f2;
  border-left: 5px solid #d23f69;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  font-weight: 500;
}

/* Calendar Container */
#calendarContainer {
  text-align: center;
  margin: 10px auto;
  width: 100%;
  max-width: 700px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Calendar */
#calendar {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  table-layout: fixed;
}

#calendar th {
  background-color: #d23f69;
  color: white;
  padding: 12px;
  font-size: 17px;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
}

#calendar td {
  border: 1px solid #e8c1cc;
  padding: 16px 10px;
  text-align: center;
  font-size: 16px;
  border-radius: 6px;
  height: 50px;
  position: relative;
  transition: transform 0.2s;
}

#calendar td:hover {
  background-color: #f9f0f2;
  transform: scale(1.03);
}

.today {
  background-color: #f28bb5 !important;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(242, 139, 181, 0.4);
}

.next-period {
  background-color: #e7191f !important;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(231, 25, 31, 0.4);
}

/* Toggle Period Log Button */
#togglePeriodLog {
  padding: 12px 24px;
  background: linear-gradient(to right, #d23f69, #e7191f);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  font-size: 16px;
  margin: 20px 0;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(210, 63, 105, 0.3);
  margin-bottom: 90px;
}

#togglePeriodLog:hover {
  background: linear-gradient(to right, #c53460, #d31820);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(210, 63, 105, 0.4);
}

button[type="submit"] {
  padding: 14px;
  background: linear-gradient(to right, #d23f69, #e7191f);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(210, 63, 105, 0.3);
}

button[type="submit"]:hover {
  background: linear-gradient(to right, #c53460, #d31820);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(210, 63, 105, 0.4);
}

/* Period Log Container */
#periodLogContainer {
  width: 100%;
  max-width: 700px;
  /* margin: 20px auto; */
  margin: 0 auto;
  margin-bottom: 80px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: -55px;
}

#periodLogContainer.hidden {
  display: none;
}

#periodLogContainer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

#periodLogContainer th {
  background-color: #d23f69;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

#periodLogContainer td {
  border-bottom: 1px solid #e8c1cc;
  padding: 12px;
}

#periodLogContainer input[type="date"] {
  padding: 8px;
  border: 1px solid #e8c1cc;
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }

  #calendar th,
  #calendar td {
    padding: 10px 5px;
    font-size: 14px;
  }

  form {
    padding: 15px;
  }

  #nextPeriodInfo {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.8rem;
  }

  #calendar th,
  #calendar td {
    padding: 8px 3px;
    font-size: 12px;
  }

  #togglePeriodLog,
  button[type="submit"] {
    padding: 10px 18px;
    font-size: 14px;
  }
}

.next-period {
  background-color: #ffcccc;
  font-weight: bold;
}

.today {
  background-color: #ccffcc;
  font-weight: bold;
}

/* .next-month-calendar {
  margin-top: 20px;
} */

.legend {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.legend-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-radius: 3px;
}

.red-legend {
  background-color: #e7191f;
}

.pink-legend {
  background-color: #f28bb5;
}

/* Container for cycle length input and button */
.cycle-length-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Style for the info button */
.info-btn {
  background-color: #e7191f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  line-height: 24px;
}

.info-btn:hover {
  background-color: #0056b3;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  padding: 15px;
  text-align: center;
}

/* Modal content */
.modal-content {
  font-size: 14px;
  color: #333;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #999;
}

.close-btn:hover {
  color: black;
}

.tooltip-btn {
  background-color: #e7191f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  line-height: 24px;
  z-index: 100;
}

.tooltip-btn:hover {
  background-color: #0056b3;
}

/* Modal styling */
.tooltip-box {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  padding: 15px;
  text-align: center;
}

/* Modal content */
.tooltip-content {
  font-size: 14px;
  color: #333;
}

/* Close button */
.close-tooltip {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #999;
}

.close-tooltip:hover {
  color: black;
}

.period-log-header {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: baseline;
}
