/* Global styles */

/* More specific body rule to override Bootstrap */
body {
  font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}



/* Scrollbar Styling */
body::-webkit-scrollbar {
  width: 5px;
  /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Background color of the track */
  border-radius: 10px;
  /* Rounded corners for the track */
}

body::-webkit-scrollbar-thumb {
  background: #1f3a52;
  /* Color of the scrollbar */
  border-radius: 10px;
  /* Rounded corners for the thumb */
}

body::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Darker color when hovered */
}

/* Firefox scrollbar (optional but recommended for scalability) */
@supports (scrollbar-width: thin) {
  body {
    scrollbar-width: thin;
    scrollbar-color: #1f3a52 #e4e4e4;
  }
}

header {

  color: #fff;
  padding: 5px;
  text-align: center;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.social-media-icons {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.social-media-icons a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
}

.social-media-icons a:hover h2 {
  animation: shake 0.5s forwards;
}

/* Navigation Styling */
nav {
  position: fixed;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  /* Ensures spacing between links and button */
  margin-top: 8px;
}

.nav-center {
  flex: 1;
  /* Takes up the middle space */
  display: flex;
  justify-content: center;
  /* Ensures the links stay centered */
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  justify-content: center;
}


nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  /* Center list items */
  align-items: center;
  margin: 0;
  padding: 0;



}

nav ul li {
  margin: 0.5rem;
}

nav ul li a {
  color: whitesmoke;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  font-size: 0.877rem;
  transition: border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  font-weight: 700;
}

nav ul li a:hover {
  transform: scale(1.1);
  color: #222;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 15px;
  /* Moves underline further down */
}

/* Keep the custom styles for buttons */
.logout-container,
.sub-container {
  width: 90px;
   background: linear-gradient(135deg, #70b800, #0481c1);
  border-radius: 12px;
  padding-top: 2px;
  font-size: 0.877rem; 
  margin-top: 14px;
}


.language-container {
  position: relative;
  width: 158px;
  display: flex;
  align-items: center;
  /* Vertically align to match other nav items */
  justify-content: center;
  /* Center the dropdown trigger */
  margin: 0;
  /* Remove any margin that may push it out of alignment */
  padding-top: 2px;
  /* Slight vertical alignment tweak */
}

.language-select {
  background: linear-gradient(135deg, #70b800, #0481c1);
  color: white;
  padding: 6px 10px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  font-size: 0.877rem;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin-top: 14px;
}

.language-select:hover {
  background: #2a4f6e;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  /* Appears right under the select box */
  left: 0;
  width: 100%;
  background: rgba(50, 65, 104, 0.95);
  border-radius: 12px;
  overflow: hidden;
  padding: 5px 0;
  list-style: none;
  margin: 5px 0 0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.language-dropdown li {
  padding: 5px;
  color: white;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  font-family: 'Nunito', sans-serif;
  font-size: 0.877rem;
}

.language-dropdown li:hover {
  background: #324168;
}

/* Show dropdown when active */
.language-container.active .language-dropdown {
  display: block;
}

.hidden {
  display: none;
}


/* LOGO Container - Absolute Positioning */
.logo-video {
  width: 144px;
  height: 94px;
  border-radius: 49.5%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.logo-container {
  transition: transform 0.1s ease-in-out;
}

.logo-container:hover {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX(0);
  }
}

/*#region Advert Screen****************************/
.ad-container {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  height: 205px;
  z-index: 1000;
  overflow: hidden;
  background-color: transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Main Ad Box */
.ad {
  position: absolute;
  right: -300px;
  /* Off-screen initially */
  opacity: 0;
  transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;
  display: none;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* Slight background for contrast */
  padding: 2px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Image Container */
.ad-image-container {
  width: 100%;
  height: 65%;
  /* Adjust height allocation */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.ad img {
  max-width: 70%;
  /* Ensure image fits within the container */
  max-height: 100%;
  /* Prevents stretching */
  object-fit: cover;
  /* Keeps image proportional */
  border-radius: 5px;
}

/* Text Container */
.ad-content {
  width: 100%;
  height: 35%;
  /* Remaining space for text */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ad-content h3 {
  font-size: 0.875rem;
  margin-bottom: 2px;
  color: white;
  white-space: normal;
  word-wrap: break-word;
}

.ad-content p {
  font-size: 0.75rem;
  color: white;
  white-space: normal;
  word-wrap: break-word;
}

/* Show ad */
.ad.show {
  right: 0 !important;
  opacity: 1 !important;
  display: flex !important;
}

/* Hide ad */
.ad.hide {
  right: -300px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}


/*#endregion Advert Screen****************************/



/*#region **********************************************************************Profile Section */
.profile-section {
  display: block;
  /* Changed from flex to block */
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px;

}

/* Profile Actions */
.profile-actions {
  margin: 20px;
}

.profile-actions .btn {
  margin: 5px;
  padding: 10px 20px;
  font-size: 0.875rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Profile container */
.profile-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  flex-direction: column;
}

/* Profile card */
.profile-card {
   background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 350px;
  max-width: 500px;
  text-align: center;
  height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Prevent full scroll */
}


/* Profile header */
.profile-header {
  padding: 40px;
backdrop-filter: blur(4px); /* optional, adds soft frosted effect */

background: linear-gradient(
        135deg,
        rgba(15, 32, 39, 0.85) 0%,   /* dark moody base */
        rgba(32, 58, 67, 0.7) 50%,   /* slightly lighter mid-tone */
        rgba(112, 184, 0, 0.15) 100% /* subtle MoodPàdi green tint */
    );

  color: #fff;
  height: 190px;
}

.editable {
  cursor: not-allowed;
}

.moodpad-header h5 {
  color: green;
}

.moodpad-header h2 {
  color: rgb(52, 80, 52);
}

.moodpad-header p {
  font-size: 0.84rem;
  font-size: bold;
}

.subscription-info {
  display: flex;
  flex-direction: row;
  gap: 20px;
  /* Space between items */
  flex-wrap: wrap;
  /* Allow wrapping on small screens */
  margin-top: 10px;
}

.subscription-info p {
  margin: 0;
}
/* Target your dropdowns */
#occupationSelect,
#maritalSelect {
    background-color: #fff; /* keep white background */
    color: #000;            /* black text so values are visible */
}

/* Optional: hover/focus styling for better UX */
#occupationSelect:hover,
#maritalSelect:hover,
#occupationSelect:focus,
#maritalSelect:focus {
    border-color: #2e7d32; /* optional green border when active */
    outline: none;
}

.date-holder {
  position: relative;
  text-align: right;
  margin-bottom: 5px;
  font-size: 1.0rem;
  font-weight: bold;
  color: #333;
  top: -195px;
}



.profile-header .profile-name {
  margin: 10px 0 5px;
  font-size: 1.5rem;
  font-weight: bold;
}

.profile-header .profile-email {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Profile details */
.profile-details {
  padding: 20px;
  text-align: left;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  /* Required for flex scroll */
  scroll-behavior: smooth;
}

.profile-details::-webkit-scrollbar {
  width: 8px;
  /* Slim scrollbar */
}

.profile-details::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Light background for track */
  border-radius: 10px;
}

.profile-details::-webkit-scrollbar-thumb {
  background: #38618d;
  /* Scrollbar color */
  border-radius: 10px;
  transition: background 0.3s ease;
}

.profile-details::-webkit-scrollbar-thumb:hover {
  background: #38618d;
  /* Darker on hover */
}


.profile-details .detail-item {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-details .label {
  font-weight: bold;
  color: #fff;
  font-size: 0.875rem;
}

.profile-details .value {
  color: #fff;
  font-size: 0.875rem;
  text-align: right;
}

/* Smooth line input styling */
.underline-input {
  border: none;
  /* Remove default borders */
  border-bottom: 2px solid #ddd;
  /* Add subtle bottom border */
  background: none;
  outline: none;
  padding: 5px 0;
  font-size: 0.875rem;
  color: #333;
  width: 190px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
}

/* Focus effect: Smooth glowing line */
.underline-input:focus {
  border-bottom: 2px solid rgba(28, 61, 205, 0.772);
  /* Color transition */
  box-shadow: 0 2px 4px rgba(28, 61, 205, 0.3);
  /* Add glow effect */
}

/* Placeholder styling */
.underline-input::placeholder {
  color: #aaa;
  /* Lighter placeholder text */
  font-style: italic;
}

/* Read-only input styling */
.underline-input[readonly] {
  color: #fff;
  border-bottom: 2px solid #999;
}

/* Disabled input styling */
.underline-input:disabled {
  border-bottom: 2px solid #ddd;
  color: #999;
  cursor: not-allowed;
}

.edit-btn {
  background-color: orange;
  color: white;
}

.prsave-btn {
  background-color: rgb(99, 190, 99);
  color: white;
  cursor: not-allowed;
}

.prsave-btn:enabled {
  cursor: pointer;
  background-color: Green;
}

.badge {
  display: inline-block;
  /* keeps it inline with the text */
  padding: 0.12rem 0.45rem;
  /* compact */
  border-radius: 0.36rem;
  font-weight: 700;
  color: #fff;
  min-width: 32px;
  /* narrow, but avoids collapse to tiny */
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 0.9rem;
}

.badge-green {
  background: #28a745;
}

.badge-red {
  background: #dc3545;
}


/*#endregion PROFILE SECTION*/


/*#region *************************************************************************** MoodPad Styling */
.moodpad {
  position: absolute;
  top: 49px;
  /* Adjust top position */
  left: 370px;
  /* Adjust left position */
  width: 840px;
  height: 780px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

.moodpad-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1c3dcf;
  text-align: center;
}

.moodpad-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.moodpad-table th,
.moodpad-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.save-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;

}

input {
  margin-bottom: 10px;
  /* Adds space below the input field */
}

.save-btn:hover {
  background-color: #218838;
}

.moodpad-list {
  position: relative;
  width: 100%;
}

#generate-analysis-btn,
#generate-analysis-btn1,
#generate-analysis-btn2,
#generate-analysis-btn3 {
  float: right;
  /* Move the button to the far right */
  margin-left: 10px;
  /* Add some space between the button and the heading */
  padding: 10px 15px;
  /* Style the button */
  background-color: #4CAF50;
  /* Green color */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  top: -30px;
}

#generate-analysis-btn,
#generate-analysis-btn1,
#generate-analysis-btn2,
#generate-analysis-btn3:hover {
  background-color: #45a049;
  /* Darker green on hover */
}

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

.moodpad-list th,
.moodpad-list td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}


/* Container for scrollable table */
.mood-log-container {
  max-height: 400px;
  /* Fixed height for scrolling */
  overflow-y: auto;
  /* Enable vertical scrolling */
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  border: 1px solid #ccc;
  /* Optional border */
  position: relative;
}

/* Make the header fixed */
.mood-log thead {
  position: sticky;
  top: 0;
  background-color: #f4f4f4;
  /* Ensure visibility */
  z-index: 2;
}

/* Table Styling */
.mood-log table {
  width: 100%;
  border-collapse: collapse;
}

/* Table headers and cells */
.mood-log th,
.mood-log td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  white-space: nowrap;
  /* Prevent text wrapping */
}

.mood-log th {
  background-color: #4CAF50;
  /* Green header */
  color: white;
}

/* Scrollbar Styling for WebKit (Chrome, Edge, Safari) */
.mood-log-container::-webkit-scrollbar {
  width: 8px;
  /* Scrollbar width */
}

.mood-log-container::-webkit-scrollbar-track {
  background: #f4f4f4;
  /* Track background */
}

.mood-log-container::-webkit-scrollbar-thumb {
  background: green;
  /* Scrollbar color */
  border-radius: 4px;
  /* Rounded corners */
}

.mood-log-container::-webkit-scrollbar-thumb:hover {
  background: darkgreen;
  /* Darker green on hover */
}

/* Mood Analysis Chart */
.mood-analysis canvas {
  width: 100%;
  height: 200px;
  margin: 20px 0;
}

.number-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-wrapper input {
  width: 40px;
  text-align: center;
  margin-right: 2px;
  font-size: 0.9rem;
  padding: 2px;
}

.increment-buttons {
  display: flex;
  flex-direction: column;
}

.increment-buttons button {
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  padding: 0;
  margin: 1px 0;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 3px;
}

.increment-buttons button:active {
  background-color: #d4d4d4;
}

.graph {
  background-color: white;
  width: 70%;
  height: 530px;
  margin-top: 120px !important;
  margin-left: 367px;
  border-radius: 10px;
}

.graph h2 {
  text-align: center;
  color: rgb(84, 81, 81);
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
}

/* Diagnosis Section */
/* Second Card: Analysis Profile Card */
.analysis-container {
  width: 100%;
  max-width: 600px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.analysis-profile-card {
 
   background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  /* Adjusted margin */
  width: 350px;
  /* Set width to match profile-card */
  max-width: 500px;
  /* Define a consistent max-width */
  margin-right: 912px;
  /* Add some space between the sections */
  margin-top: -470px;
}

.analysis-btn {
  background-color: #28a745;
  /* green */
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  /* allows centering */
  margin: 10px auto;
  /* top/bottom spacing + horizontal centering */
  transition: background-color 0.3s ease;
}

.analysis-btn:hover {
  background-color: #218838;
  /* slightly darker green on hover */
}



.analysis-header {
  font-size: 1.0rem;
 backdrop-filter: blur(4px); /* optional, adds soft frosted effect */

background: linear-gradient(
        135deg,
        rgba(15, 32, 39, 0.85) 0%,   /* dark moody base */
        rgba(32, 58, 67, 0.7) 50%,   /* slightly lighter mid-tone */
        rgba(112, 184, 0, 0.15) 100% /* subtle MoodPàdi green tint */
    );
  color: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
}

.analysis-content {
  margin: 0.2rem;
  font-size: 1rem;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.camera-icon {
  position: absolute;
  bottom: 395px;
  left: 200px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.subscription-info p {
  display: flex;
  align-items: center;
  margin: 0;
  /* Remove default margin between paragraphs */
  flex-wrap: wrap;
  /* This allows the items to wrap if there's not enough space */
}

.subscription-info strong {
  font-weight: bold;
  margin-right: 5px;
  /* Add space between labels and dates */
}

.subscription-info span {
  margin-right: 20px;
  /* Add some space between the dates */
}

/*#endregion ********/


/*#region ***********************************************************Custom Modal styles */
/* Custom Modal (overlay) */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  /* dim overlay */
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

/* Error modal */
#errorModal .custom-modal-content {
  background: linear-gradient(135deg, #ff6a6a, #d93636);
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 54, 54, 0.4);
}

/* Success modal */
#successModal .custom-modal-content {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.35);
}

/* Common modal content */
.custom-modal-content {
  border-radius: 10px;
  max-width: 260px;
  /* compact like above */
  width: 85%;
  padding: 14px 16px;
  text-align: center;
  animation: slideUp 0.35s ease-out;
  position: relative;
  pointer-events: auto;
}

/* Header */
.custom-modal-header {
  background: transparent !important;
  /* let gradient flow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-modal-header h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.4px;
  text-align: left;
}

/* Close button */
/* Close button (common) */
.custom-modal .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1rem;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 22px;
  text-align: center;
  font-weight: bold;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Error modal close button */
#errorModal .close-btn {
  background: rgba(255, 106, 106, 0.3) !important;
}

#errorModal .close-btn:hover {
  background: #d93636 !important;
  transform: scale(1.1);
}


/* Success modal close button */
#successModal .close-btn {
  background: rgba(40, 167, 69, 0.3);
}

#successModal .close-btn:hover {
  background: #20c997;
  transform: scale(1.1);
}


.custom-modal .close-btn:hover {
  color: #000;
}

/* Body */
.custom-modal-body {
  padding: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* Footer */
.custom-modal-footer {
  padding: 6px;
  text-align: center;
}

.custom-modal-footer .btn {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 4px 10px;
  box-shadow: none;
  cursor: pointer;
}

.custom-modal-footer .btn-danger {
  background-color: #dc3545 !important;
  /* Bootstrap red */
  color: #fff !important;
  border: none;
}

/* Success modal Close button */
.custom-modal-footer .btn-success {
  background-color: #28a745 !important;
  /* Bootstrap green */
  color: #fff !important;
  border: none;
}

/* Optional hover states */
.custom-modal-footer .btn-danger:hover {
  background-color: #bd2130 !important;
}

.custom-modal-footer .btn-success:hover {
  background-color: #218838 !important;
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/*#endregion CUSTOM MODAl*/


/*MEDIA QUERY*/

/*MEDIA QUERY FOR BODY*/







#countdown-timer {
  font-weight: bold;
  color: red;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}







/******GOOGLE STANDARD MEDIA QUERY RANGES******/
/* ✅ Small / short phones or landscape */

@media (max-width: 414px) and (min-height: 412px) {

 /*#region Nav*/
 header {
  padding: 5px 10px;
  display: flex;
  justify-content: center; /* Center children horizontally */
  align-items: center;
}

nav {
  display: flex;
  justify-content: center;
  width: auto; /* stop forcing full width */
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

 nav ul.nav-links {
  display: flex;
  justify-content: center; /* center the links */
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}


  nav ul.nav-links li {
    width: auto;
    /* Allow natural width */
    margin: 0;
  }

  nav ul.nav-links li a,
  .language-select {
    font-size: 0.65rem;
    /* Smaller text for mobile */
    padding: 4px 6px;
    /* Compact padding */
  }

  .language-container {
    width: auto;
    /* Fit content */
    margin-top: 0;
    /* Remove extra spacing */
  }

  .logout-container,
  .sub-container {
    width: auto;
    /* Fit content */
    font-size: 0.65rem;
  }

  /* Optional: reduce dropdown size */
  .language-dropdown li {
    font-size: 0.65rem;
    padding: 3px 5px;
  }


  /*#endregion NAV*/

  /*#region PROFILE*/
  .profile-section {
    padding: 15px;
    /* Reduced padding for better spacing on tablet-sized screens */
  }

  .profile-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Profile card itself */
  .profile-card {
    width: 95%;
    padding: 15px;
    border-radius: 12px;
   background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: 85vh;
  }

  /* Header section */
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    /* Makes absolute children positioned relative to this */
  }

  .profile-header img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 600;
  }

  .profile-email {
    font-size: 1.0rem !important;
    color: #fff;
  }

  .profile-details .detail-item {
    flex-direction: column;
    /* Stack the label and value vertically */
    align-items: flex-start;
    /* Align label and value to the left */
  }

  .label {
    font-size: 0.75rem;
    color: #555;
  }

  .underline-input {
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
    background: transparent;
    width: 100%;
  }

  /* Buttons */
  .profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* Camera icon adjustment */
  .camera-icon {
    position: absolute;
    bottom: 0;
    right: calc(50% - 15px);
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.6);
    /* dark semi-transparent overlay */
    color: #fff;
    /* white camera icon for contrast */
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    /* subtle shadow */
  }

  .camera-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(50%) scale(1.1);
    transition: 0.2s ease;
  }

  /*#endregion PROFILE*/


  /*#region MOODPAD SECTION*******/
  .profile-container,
  .profile-card,
  .moodpad {
    width: 100% !important;
    overflow-x: hidden !important;
    /* Block horizontal scroll on parent */
  }

  .moodpad {
    position: relative;
    /* Change to relative to prevent overlap and adjust layout */
    top: auto;
    /* Reset top positioning */
    left: 0;
    /* Reset left positioning */
    width: 100%;
    /* Make the moodpad take full width of the container */
    padding: 15px;
    /* Adjust padding for smaller screens */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Maintain box-shadow for consistency */
    margin-top: 10px;
    /* Slightly increase the top margin */
    overflow-x: hidden !important;
  }


  .moodpad-header h2 {
    margin-top: 30px !important;
  }

  .moodpad-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
  }

  .moodpad-table {
    display: block !important;
    /* Makes the container scrollable independently */
    overflow-x: auto !important;
    /* Horizontal scroll */
    overflow-y: hidden !important;
    /* No vertical scroll */
    max-width: 100% !important;

  }

  .moodpad-table table {
    width: max-content !important;
    /* Table width grows naturally */
    border-collapse: collapse !important;
    white-space: nowrap !important;
    /* Prevent cell wrapping */
    z-index: 1500px !important;
  }


  .moodpad-table th,
  .moodpad-table td {
    padding: 6px;
    text-align: center !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    /* Prevent wrapping in cells */
  }

  /* Optional: make Saved Mood Logs scroll horizontally too */
  .moodpad-list .mood-log-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .date-holder {
    display: block !;
    /* Ensure it behaves like a block */
    top: -310px !important;
    /* Push it down below the header */
    text-align: center;
    /* Optional: center the date/time */
    font-weight: 500;
    font-size: 0.65rem;
    color: rgb(70, 70, 70);
  }

  /*#endregion MOODPAD SECTION*/


  /*#region Graph*/
  .graph {
    display: none;
  }

  /*#endregion Graph*/

  /*#region Analyzer*/
  .analysis-profile-card {
    display: none;
  }

  /*#endregion Analyzer*/

  /*#region ADVERT*/
 .ad-container {

    transform: translateY(-50%) !important;
    width: 120px !important;
    height: 125px !important;
    min-width: 130px !important;
    min-height: 130px !important;

  }

  .ad-content h3 {
    font-size: 0.675rem !important;

  }

  .ad-content p {
    font-size: 0.675rem !important;

  }
  /*#endregion ADVERT*/


}

@media (max-width: 599px) and (max-height: 667px) {

  /*#region Nav*/
header {
  padding: 5px 10px;
  display: flex;
  justify-content: center; /* Center children horizontally */
  align-items: center;
}

nav {
  display: flex;
  justify-content: center;
  width: auto; /* stop forcing full width */
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

 nav ul.nav-links {
  display: flex;
  justify-content: center; /* center the links */
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

  nav ul.nav-links li {
    width: auto;
    /* Allow natural width */
    margin: 0;
  }

  nav ul.nav-links li a,
  .language-select {
    font-size: 0.65rem;
    /* Smaller text for mobile */
    padding: 4px 6px;
    /* Compact padding */
  }

  .language-container {
    width: auto;
    /* Fit content */
    margin-top: 0;
    /* Remove extra spacing */
  }

  .logout-container,
  .sub-container {
    width: auto;
    /* Fit content */
    font-size: 0.65rem;
  }

  /* Optional: reduce dropdown size */
  .language-dropdown li {
    font-size: 0.65rem;
    padding: 3px 5px;
  }

  

  /*#endregion NAV*/

  /*#region PROFILE*/
  .profile-section {
    padding: 15px;
    /* Reduced padding for better spacing on tablet-sized screens */
  }

  .profile-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Profile card itself */
  .profile-card {
    width: 95%;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: 85vh;
  }

  /* Header section */
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    /* Makes absolute children positioned relative to this */
  }

  .profile-header img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 600;
  }

  .profile-email {
    font-size: 1.0rem !important;
    color: #fff;
  }

  .profile-details .detail-item {
    flex-direction: column;
    /* Stack the label and value vertically */
    align-items: flex-start;
    /* Align label and value to the left */
  }

  .label {
    font-size: 0.75rem;
    color: #555;
  }

  .underline-input {
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
    background: transparent;
    width: 100%;
  }

  /* Buttons */
  .profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* Camera icon adjustment */
  .camera-icon {
    position: absolute;
    bottom: 0;
    right: calc(50% - 15px);
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.6);
    /* dark semi-transparent overlay */
    color: #fff;
    /* white camera icon for contrast */
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    /* subtle shadow */
  }

  .camera-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(50%) scale(1.1);
    transition: 0.2s ease;
  }

  /*#endregion PROFILE*/


  /*#region MOODPAD SECTION*******/
  .profile-container,
  .profile-card,
  .moodpad {
    width: 100% !important;
    overflow-x: hidden !important;
    /* Block horizontal scroll on parent */
  }

  .moodpad {
    position: relative;
    /* Change to relative to prevent overlap and adjust layout */
    top: auto;
    /* Reset top positioning */
    left: 0;
    /* Reset left positioning */
    width: 100%;
    /* Make the moodpad take full width of the container */
    padding: 15px;
    /* Adjust padding for smaller screens */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Maintain box-shadow for consistency */
    margin-top: 10px;
    /* Slightly increase the top margin */
    overflow-x: hidden !important;
  }


  .moodpad-header h2 {
    margin-top: 30px !important;
  }

  .moodpad-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
  }

  .moodpad-table {
    display: block !important;
    /* Makes the container scrollable independently */
    overflow-x: auto !important;
    /* Horizontal scroll */
    overflow-y: hidden !important;
    /* No vertical scroll */
    max-width: 100% !important;

  }

  .moodpad-table table {
    width: max-content !important;
    /* Table width grows naturally */
    border-collapse: collapse !important;
    white-space: nowrap !important;
    /* Prevent cell wrapping */
    z-index: 1500px !important;
  }


  .moodpad-table th,
  .moodpad-table td {
    padding: 6px;
    text-align: center !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    /* Prevent wrapping in cells */
  }

  /* Optional: make Saved Mood Logs scroll horizontally too */
  .moodpad-list .mood-log-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .date-holder {
    display: block !;
    /* Ensure it behaves like a block */
    top: -310px !important;
    /* Push it down below the header */
    text-align: center;
    /* Optional: center the date/time */
    font-weight: 500;
    font-size: 0.65rem;
    color: rgb(70, 70, 70);
  }

  /*#endregion MOODPAD SECTION*/


  /*#region Graph*/
  .graph {
    display: none;
  }

  /*#endregion Graph*/

  /*#region Analyzer*/
  .analysis-profile-card {
    display: none;
  }

  /*#endregion Analyzer*/

  /*#region ADVERT*/
 .ad-container {

    transform: translateY(-50%) !important;
    width: 120px !important;
    height: 125px !important;
    min-width: 130px !important;
    min-height: 130px !important;

  }

  .ad-content h3 {
    font-size: 0.675rem !important;

  }

  .ad-content p {
    font-size: 0.675rem !important;

  }
  /*#endregion ADVERT*/

}

@media (max-width: 599px) and (min-height: 668px) and (max-height: 812px) {

 /*#region Nav*/
 header {
  padding: 5px 10px;
  display: flex;
  justify-content: center; /* Center children horizontally */
  align-items: center;
}

nav {
  display: flex;
  justify-content: center;
  width: auto; /* stop forcing full width */
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

 nav ul.nav-links {
  display: flex;
  justify-content: center; /* center the links */
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}


  nav ul.nav-links li {
    width: auto;
    /* Allow natural width */
    margin: 0;
  }

  nav ul.nav-links li a,
  .language-select {
    font-size: 0.65rem;
    /* Smaller text for mobile */
    padding: 4px 6px;
    /* Compact padding */
  }

  .language-container {
    width: auto;
    /* Fit content */
    margin-top: 0;
    /* Remove extra spacing */
  }

  .logout-container,
  .sub-container {
    width: auto;
    /* Fit content */
    font-size: 0.65rem;
  }

  /* Optional: reduce dropdown size */
  .language-dropdown li {
    font-size: 0.65rem;
    padding: 3px 5px;
  }

  

  /*#endregion NAV*/

  /*#region PROFILE*/
  .profile-section {
    padding: 15px;
    /* Reduced padding for better spacing on tablet-sized screens */
  }

  .profile-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Profile card itself */
  .profile-card {
    width: 95%;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: 85vh;
  }

  /* Header section */
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    /* Makes absolute children positioned relative to this */
  }

  .profile-header img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 600;
  }

  .profile-email {
    font-size: 1.0rem !important;
    color: #fff;
  }

  .profile-details .detail-item {
    flex-direction: column;
    /* Stack the label and value vertically */
    align-items: flex-start;
    /* Align label and value to the left */
  }

  .label {
    font-size: 0.75rem;
    color: #555;
  }

  .underline-input {
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
    background: transparent;
    width: 100%;
  }

  /* Buttons */
  .profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* Camera icon adjustment */
  .camera-icon {
    position: absolute;
    bottom: 0;
    right: calc(50% - 15px);
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.6);
    /* dark semi-transparent overlay */
    color: #fff;
    /* white camera icon for contrast */
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    /* subtle shadow */
  }

  .camera-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(50%) scale(1.1);
    transition: 0.2s ease;
  }

  /*#endregion PROFILE*/


  /*#region MOODPAD SECTION*******/
  .profile-container,
  .profile-card,
  .moodpad {
    width: 100% !important;
    overflow-x: hidden !important;
    /* Block horizontal scroll on parent */
  }

  .moodpad {
    position: relative;
    /* Change to relative to prevent overlap and adjust layout */
    top: auto;
    /* Reset top positioning */
    left: 0;
    /* Reset left positioning */
    width: 100%;
    /* Make the moodpad take full width of the container */
    padding: 15px;
    /* Adjust padding for smaller screens */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Maintain box-shadow for consistency */
    margin-top: 10px;
    /* Slightly increase the top margin */
    overflow-x: hidden !important;
  }


  .moodpad-header h2 {
    margin-top: 30px !important;
  }

  .moodpad-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
  }

  .moodpad-table {
    display: block !important;
    /* Makes the container scrollable independently */
    overflow-x: auto !important;
    /* Horizontal scroll */
    overflow-y: hidden !important;
    /* No vertical scroll */
    max-width: 100% !important;

  }

  .moodpad-table table {
    width: max-content !important;
    /* Table width grows naturally */
    border-collapse: collapse !important;
    white-space: nowrap !important;
    /* Prevent cell wrapping */
    z-index: 1500px !important;
  }


  .moodpad-table th,
  .moodpad-table td {
    padding: 6px;
    text-align: center !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    /* Prevent wrapping in cells */
  }

  /* Optional: make Saved Mood Logs scroll horizontally too */
  .moodpad-list .mood-log-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .date-holder {
    display: block !;
    /* Ensure it behaves like a block */
    top: -310px !important;
    /* Push it down below the header */
    text-align: center;
    /* Optional: center the date/time */
    font-weight: 500;
    font-size: 0.65rem;
    color: rgb(70, 70, 70);
  }

  /*#endregion MOODPAD SECTION*/


  /*#region Graph*/
  .graph {
    display: none;
  }

  /*#endregion Graph*/

  /*#region Analyzer*/
  .analysis-profile-card {
    display: none;
  }

  /*#endregion Analyzer*/

  /*#region ADVERT*/
 .ad-container {

    transform: translateY(-50%) !important;
    width: 120px !important;
    height: 125px !important;
    min-width: 130px !important;
    min-height: 130px !important;

  }

  .ad-content h3 {
    font-size: 0.675rem !important;

  }

  .ad-content p {
    font-size: 0.675rem !important;

  }
  /*#endregion ADVERT*/

}


/* TEST VIEW PORT 500 * 966  ✅*/
/* ✅ Large or tall phones (new iPhones, Ultra phones) */
@media (max-width: 599px) and (min-height: 933px) and (max-height: 1000px) {

   /*#region Nav*/
 header {
  padding: 5px 10px;
  display: flex;
  justify-content: center; /* Center children horizontally */
  align-items: center;
}

nav {
  display: flex;
  justify-content: center;
  width: auto; /* stop forcing full width */
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

 nav ul.nav-links {
  display: flex;
  justify-content: center; /* center the links */
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}


  nav ul.nav-links li {
    width: auto;
    /* Allow natural width */
    margin: 0;
  }

  nav ul.nav-links li a,
  .language-select {
    font-size: 0.65rem;
    /* Smaller text for mobile */
    padding: 4px 6px;
    /* Compact padding */
  }

  .language-container {
    width: auto;
    /* Fit content */
    margin-top: 0;
    /* Remove extra spacing */
  }

  .logout-container,
  .sub-container {
    width: auto;
    /* Fit content */
    font-size: 0.65rem;
  }

  /* Optional: reduce dropdown size */
  .language-dropdown li {
    font-size: 0.65rem;
    padding: 3px 5px;
  }

  

  /*#endregion NAV*/

  /*#region PROFILE*/
  .profile-section {
    padding: 15px;
    /* Reduced padding for better spacing on tablet-sized screens */
  }

  .profile-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Profile card itself */
  .profile-card {
    width: 95%;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: 85vh;
  }

  /* Header section */
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    /* Makes absolute children positioned relative to this */
  }

  .profile-header img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 600;
  }

  .profile-email {
    font-size: 1.0rem !important;
    color: #fff;
  }

  .profile-details .detail-item {
    flex-direction: column;
    /* Stack the label and value vertically */
    align-items: flex-start;
    /* Align label and value to the left */
  }

  .label {
    font-size: 0.75rem;
    color: #555;
  }

  .underline-input {
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
    background: transparent;
    width: 100%;
  }

  /* Buttons */
  .profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* Camera icon adjustment */
  .camera-icon {
    position: absolute;
    bottom: 0;
    right: calc(50% - 15px);
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.6);
    /* dark semi-transparent overlay */
    color: #fff;
    /* white camera icon for contrast */
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    /* subtle shadow */
  }

  .camera-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(50%) scale(1.1);
    transition: 0.2s ease;
  }

  /*#endregion PROFILE*/


  /*#region MOODPAD SECTION*******/
  .profile-container,
  .profile-card,
  .moodpad {
    width: 100% !important;
    overflow-x: hidden !important;
    /* Block horizontal scroll on parent */
  }

  .moodpad {
    position: relative;
    /* Change to relative to prevent overlap and adjust layout */
    top: auto;
    /* Reset top positioning */
    left: 0;
    /* Reset left positioning */
    width: 100%;
    /* Make the moodpad take full width of the container */
    padding: 15px;
    /* Adjust padding for smaller screens */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Maintain box-shadow for consistency */
    margin-top: 10px;
    /* Slightly increase the top margin */
    overflow-x: hidden !important;
  }


  .moodpad-header h2 {
    margin-top: 30px !important;
  }

  .moodpad-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
  }

  .moodpad-table {
    display: block !important;
    /* Makes the container scrollable independently */
    overflow-x: auto !important;
    /* Horizontal scroll */
    overflow-y: hidden !important;
    /* No vertical scroll */
    max-width: 100% !important;

  }

  .moodpad-table table {
    width: max-content !important;
    /* Table width grows naturally */
    border-collapse: collapse !important;
    white-space: nowrap !important;
    /* Prevent cell wrapping */
    z-index: 1500px !important;
  }


  .moodpad-table th,
  .moodpad-table td {
    padding: 6px;
    text-align: center !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    /* Prevent wrapping in cells */
  }

  /* Optional: make Saved Mood Logs scroll horizontally too */
  .moodpad-list .mood-log-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .date-holder {
    display: block !;
    /* Ensure it behaves like a block */
    top: -310px !important;
    /* Push it down below the header */
    text-align: center;
    /* Optional: center the date/time */
    font-weight: 500;
    font-size: 0.65rem;
    color: rgb(70, 70, 70);
  }

  /*#endregion MOODPAD SECTION*/


  /*#region Graph*/
  .graph {
    display: none;
  }

  /*#endregion Graph*/

  /*#region Analyzer*/
  .analysis-profile-card {
    display: none;
  }

  /*#endregion Analyzer*/

  /*#region ADVERT*/
 .ad-container {

    transform: translateY(-50%) !important;
    width: 120px !important;
    height: 125px !important;
    min-width: 130px !important;
    min-height: 130px !important;

  }

  .ad-content h3 {
    font-size: 0.675rem !important;

  }

  .ad-content p {
    font-size: 0.675rem !important;

  }
  /*#endregion ADVERT*/

}

/*ANCHOR POINT (IPHONE 16 PRO MAX) ✅*/
@media (max-width: 430px) and (max-height: 932px) {

  /*#region NAV*/
 header {
  padding: 5px 10px;
  display: flex;
  justify-content: center; /* Center children horizontally */
  align-items: center;
}

nav {
  display: flex;
  justify-content: center;
  width: auto; /* stop forcing full width */
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

 nav ul.nav-links {
  display: flex;
  justify-content: center; /* center the links */
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}


  nav ul.nav-links li a,
  .language-select {
    font-size: 0.6rem;
    padding: 3px 4px;
  }

  .logout-container,
  .sub-container,
  .language-container {
    font-size: 0.6rem;
    width: auto;
  }

  .language-dropdown li {
    font-size: 0.6rem;
    padding: 2px 4px;
  }
  /*#endregion NAV*/


  /*#region PROFILE*/
  .profile-section {
    padding: 10px;
  }

  .profile-container {
    padding: 8px;
    display: flex; 
    flex-direction: column;
    align-items: center;
  }

  .profile-card {
    width: 94%;
    padding: 12px;
    border-radius: 10px;
   background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 82vh;
  }

  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
  }

  .profile-header img {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 0.95rem;
    margin-top: 6px;
    font-weight: 600;
  }

  .profile-email {
    font-size: 0.9rem !important;
    color: #fff;
  }

  .profile-details .detail-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .label {
    font-size: 0.7rem;
  }

  .underline-input {
    font-size: 0.78rem;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 3px 0;
    background: transparent;
    width: 100%;
  }

  .profile-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .btn {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 8px;
  }

  .camera-icon {
    position: absolute;
    bottom: 0;
    right: calc(50% - 12px);
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  }

  .camera-icon:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(50%) scale(1.05);
    transition: 0.2s ease;
  }
  /*#endregion PROFILE*/


  /*#region MOODPAD*/
  .profile-container,
  .profile-card,
  .moodpad {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .moodpad {
    position: relative;
    top: auto;
    left: 0;
    width: 100%;
    padding: 12px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    overflow-x: hidden !important;
  }

  .moodpad-header h2 {
    margin-top: 25px !important;
    font-size: 1.05rem;
  }

  .moodpad-header p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
  }

  .moodpad-table {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
  }

  .moodpad-table table {
    width: max-content !important;
    border-collapse: collapse !important;
    white-space: nowrap !important;
  }

  .moodpad-table th,
  .moodpad-table td {
    padding: 5px;
    text-align: center !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .moodpad-list .mood-log-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .date-holder {
    display: block !important;
    top: -290px !important;
    text-align: center;
    font-weight: 500;
    font-size: 0.6rem;
    color: rgb(70, 70, 70);
  }
  /*#endregion MOODPAD*/


  /*#region Graph*/
  .graph {
    display: none;
  }
  /*#endregion Graph*/

  /*#region Analyzer*/
  .analysis-profile-card {
    display: none;
  }
  /*#endregion Analyzer*/

  /*#region ADVERT*/
  .ad-container {
    transform: translateY(-45%) !important;
    width: 110px !important;
    height: 115px !important;
    min-width: 120px !important;
    min-height: 120px !important;
  }

  .ad-content h3 {
    font-size: 0.65rem !important;
  }

  .ad-content p {
    font-size: 0.65rem !important;
  }
  /*#endregion ADVERT*/
}


@media (max-width: 767px) and (min-width: 600px)and (max-height: 568px) {}


/* 🔧 Fix Lighthouse font-display warning for Font Awesome */

/* Solid icons */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  /* 👈 ensures text/icons are visible immediately */
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff") format("woff");
}

/* Brands */
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
    url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff") format("woff");
}