* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

main {
  background-color: #e6edf7;
}

.container {
  max-width: 120rem;
  padding: 0 3.2rem;
  margin-inline: auto;
}

.container-130 {
  max-width: 130rem;
}

.container-90 {
  max-width: 90rem;
}

.container-60 {
  max-width: 60rem;
}

.grid {
  display: grid;
}

.grid--two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--three-cols {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid--four-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--five-cols {
  grid-template-columns: repeat(5, 1fr);
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
}

.country-buttons {
  border: none;
  box-shadow: none;
  background-color: #052752;
}

.language-change {
  gap: 1rem;
  margin-bottom: 1.2rem;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.6rem;
}

.logout-icon {
  display: flex;
  align-items: center;
  font-size: 3.4rem;
  color: #fff;
  cursor: pointer;
  margin-right: 1rem;
  transition: color 0.2s;
}
.logout-icon:hover {
  color: #ff4d4d;
}

.country-btns {
  display: flex;
  gap: 1rem;
}

.country-logo {
  height: 3.4rem;
  width: 3.4rem;
}

.country-logo:hover {
  transition: all 0.3s ease;
  transform: scale(1.1);
  cursor: pointer;
}

.w3-sidebar {
  z-index: 3;
  width: 25rem;
  top: 43px;
  bottom: 0;
  height: inherit;
}
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag-list li {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ddd;
  border-radius: 5px;
  font-size: 1.4rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 1.5rem 3rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.site-branding {
  display: flex;
  align-items: center;
}
.site-logo-container img {
  width: 5rem;
  height: 5rem;
}
.site-title-container {
  margin-left: 1rem;
}
.site-title a {
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}
.site-description {
  font-size: 1.4rem;
  color: #666;
}
.header-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}
.header-menu li {
  margin-left: 2rem;
}
.header-menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.6rem;
  padding: 1rem;
}
.header-menu a:hover {
  color: #007bff;
}
.social-icons a {
  margin-left: 1rem;
  text-decoration: none;
}

.content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background-image: url(https://revoltsoftware.com/wp-content/uploads/2024/03/header_3b-scaled-1.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem;
  text-align: center;
  color: white;
  font-size: 4.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Section hero */

.section-hero {
  background-color: #e6edf7;
  padding: 4.8rem 0 9.6rem 0;
}

.hero {
  align-items: center;
  max-width: 130rem;
  gap: 9.6rem;
  padding: 3.2rem;
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.btn,
.btn:link,
.btn:visited {
  font-size: 2rem;
  color: #fff;
  display: inline-block;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.btn,
.btn-full:link,
.btn-full:visited {
  background-color: #004aad;
  color: #fff;
}

.btn-outline:link,
.btn-outline:visited {
  background-color: #fff;
  color: #555;
}

.btn-full:hover,
.btn-full:active {
  background-color: #4caf50;
}

.btn-outline:hover,
.btn-outline:active {
  background-color: #e6edf7;
  box-shadow: inset 0 0 0 3px #fff;
}

.margin-right-sm {
  margin-right: 1.6rem;
}

.customers-box {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.customer-images-box {
  display: flex;
}

.customer-images-box img {
  height: 3.6rem;
  width: 3.6rem;
  border-radius: 50%;
  margin-right: -1.6rem;
  border: 3px solid #e6edf7;
}

.customer-images-box img:last-child {
  margin-right: 0;
}

.customer-experience {
  font-size: 1.8rem;
  font-weight: 600;
}

.customer-experience span {
  color: #4caf50;
}

.feature-icon {
  height: 2.8rem;
  width: 2.8rem;
  color: #004aad;
  margin-bottom: 3.2rem;
  background-color: #e6edf7;
  padding: 1.6rem;
  border-radius: 50%;
}

.code-feature-heading {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  color: #333;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #6f6f6f;
}

.about-you-section {
  padding: 7.8rem 0 9.6rem 0;
  background-color: #fff;
}

.about-you-grid {
  column-gap: 2.4rem;
}

/* Section CTA */

.section-cta {
  padding: 9.6rem 0 12.8rem;
  margin-inline: auto;
  max-width: 130rem;
}

.cta-section-background {
  background-color: #fff;
}

.cta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background-image: linear-gradient(to right bottom, #004badeb, #0079b9);
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.015);
  border-radius: 11px;
  overflow: hidden;
  padding: 0;
  margin: 0 3.2rem;
}

.cta-text-box {
  color: #001634;
  padding: 4.8rem;
  font-weight: 600;
}

.cta-text-box .heading-secondary {
  color: inherit;
  margin-bottom: 3.2rem;
}

.cta-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 2.8rem;
}

.cta-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.2rem;
  row-gap: 2.4rem;
}

.cta-form label {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.cta-form input,
.cta-form select {
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #e6edf7;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-form::placeholder {
  color: #888;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form button:focus {
  box-shadow: 0 0 0 0.8rem rgba(230, 237, 247, 0.5);
}

.cta-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background-color: #001634;
  color: #fff;
  align-self: end;
  padding: 1.2rem 1.6rem;
}

.cta-form button:hover {
  color: #001634;
  background-color: #fff;
}

.cta-image-box {
  background-image: linear-gradient(
      to right bottom,
      rgba(0, 75, 173, 0.35),
      rgba(0, 120, 185, 0.15)
    ),
    url("");
  background-size: cover;
  background-position: center;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.heading-primary,
.heading-secondary {
  font-weight: 700;
  color: #333;
  letter-spacing: -0.5px;
}

/* Disease section */
.disease-section {
  text-align: center;
  padding: 6rem 2rem;
}

.disease-heading {
  font-size: 5.2rem;
  font-weight: 900;
}

.section-description {
  font-size: 1.6rem;
  color: #4caf50;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  animation: fadeInUp 1s ease-in-out;
}

.disease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.disease-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.disease-card:hover {
  transform: translateY(-1.2rem);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.disease-icon {
  font-size: 3rem;
  color: #4caf50;
}

.disease-title {
  font-size: 2.2rem;
  margin: 1rem 0;
  font-weight: 600;
}

.disease-text {
  color: #666;
  font-size: 1.4rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.header ion-icon {
  font-size: 30px;
  margin-right: 10px;
}

.city-name {
  font-weight: bold;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.city-box {
  padding: 0.4rem 1.6rem 2rem 1.6rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.location-icon {
  font-size: 4rem;
  color: #ff0000;
}
.city-name {
  font-size: 2.8rem;
  color: #fff;
  align-self: flex-end;
}

.device-box {
  width: calc(100% - 3.2rem);
  max-width: 90%;
  padding: 2rem;
  background-color: #ad0101;
  border-left: 8px solid red;
  margin-bottom: 30px;
  margin-left: 1.6rem;
  margin-right: 1.6rem;
  text-align: start;
  border-radius: 11px;
}

.device-info-text {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.89);
  font-weight: 700;
}

.device-info-text-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-text {
  margin-top: 1rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.89);
  font-weight: 600;
  line-height: 1.3;
}

.add-device-btn {
  background-color: blue;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 9px;
  font-weight: 600;
  margin-top: 1.2rem;
}

.add-device-btn:hover {
  background-color: rgb(12, 28, 168);
}

.add-device-btn-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-decoration: none;
}

.add-device-button.add-device-btn-with-icon,
.back-button.add-device-btn-with-icon {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  color: white;
  border-radius: 9px;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  margin-top: 1.2rem;
  text-align: center;
}

.add-device-button.add-device-btn-with-icon:hover,
.back-button.add-device-btn-with-icon:hover {
  background: #1c7a1f;
  color: #fff;
  text-decoration: none;
}

.add-device-btn-icon {
  font-size: 2.2rem;
  color: #fff;
  vertical-align: middle;
  margin-right: 0.7rem;
  flex-shrink: 0;
}

.add-device-btn-text {
  display: inline-block;
  vertical-align: middle;
}

.weather-box {
  width: calc(100% - 3.2rem);
  max-width: 90%;
  background-color: #171720;
  text-align: center;
  border-radius: 9px;
  margin: 0 1.6rem 3rem 1.6rem;
}

.in-time-text {
  font-size: 2rem;
  font-weight: 600;
  text-align: start;
  background-color: #3b14d5;
  border-bottom: 1px solid #8b8b8b88;
  color: #fff;
  padding: 1.2rem;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.weather-condition-text {
  margin: 1rem 0;
  padding: 1rem;
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  width: 90%;
  border-radius: 9px;
  justify-self: center;
  position: relative;
  text-align: start;
}

.block-link {
  text-decoration: none;
}

.refer-to-icon {
  position: absolute;
  top: 3px;
  right: 5px;
  color: #fff;
}

.weather-condition-text.red {
  background-color: #bf1414;
}

.weather-condition-text.green {
  background-color: #2f8d34;
}

.weather-condition-text.yellow{
  background-color: #e9ae09;
}

.page-background {
  background-image: url("background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  min-height: calc(100vh - 6rem);
  width: 100%;
  position: relative;
  padding-bottom: 0;
}

.devices-list {
  list-style: none;
  padding: 0 1.6rem;
  width: 100%;
  margin-top: 2rem;
}

.device-li {
  position: relative;
  margin-bottom: 1.2rem;
  background-color: #4caf50;
  border-radius: 9px;
}

.device-link-full {
  display: block;
  padding: 1rem 6rem 1rem 1.4rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  border-radius: 9px;
  transition: background-color 0.2s ease;
}

.device-link-full:hover {
  background-color: #002f6c;
}

.device-actions {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
  height: 4rem;
  align-items: center;
  justify-items: auto;
}

.settings-container {
  margin-top: 6rem;
  padding: 0 1.6rem;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  padding: 1rem;
  margin: 5px 0;
  background-color: #4caf50;
  border: none;
  border-radius: 9px;
  color: white;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
}

.add-button ion-icon {
  margin-right: 0.6rem;
}

.counter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}

.counter {
  flex: 0 0 50%;
  font-size: 4.2rem;
  font-weight: bold;
  color: #fff;
}

.more-settings {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  background-color: #4caf50;
  color: white;
  border-radius: 9px;
  font-weight: 600;
}

.more-button {
  flex: 0 0 50%;
  padding: 1rem 0 1rem 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 2.2rem;
  text-align: center;
  border-radius: 9px;
  font-weight: 600;
}

.setting-icon {
  font-size: 2.4rem;
  color: #fff;
}

.newModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 70vw;
  height: 50vh;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
}

.redact-device-heading {
  margin-bottom: 2.4rem !important;
  text-align: center;
}

.redact-button {
  margin-top: auto;
  align-self: center;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Calendar Page */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 2.4rem;
}

.upcoming-events {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
}

.upcomming-events-list {
  list-style: none;
  padding: 0 1.6rem;
  margin: 0;
  width: 100%;
}

.upcomming-event-info {
  width: 100%;
  margin-bottom: 0.8rem;
}

.event-info-text {
  display: block;
  width: 100%;
  padding: 0.8rem;
  text-align: start;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background-color: #4caf50;
  border-radius: 9px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Add Device page */

.container {
  width: calc(100% - 3.2rem);
  max-width: 90rem;
  margin: 5rem 1.6rem 3rem 1.6rem;
  padding: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.add-device-heading {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
  color: #fff;
}

.device-name-input,
.edit-device-coord-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.4rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* Match coordinates input style to name input */
.device-coord-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.4rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.add-device-button {
  width: 100%;
  background: #4caf50;
  color: white;
  padding: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
}

.add-device-button:hover {
  background: #002f6c;
}

.back-button {
  text-decoration: none;
  font-size: 1.6rem;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  width: auto;
  float: right;
  margin-right: 1.4rem;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  position: absolute;
  top: 100%;
  left: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  padding: 8px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-item:hover {
  background-color: #ddd;
}

.dropdown {
  background-color: #fff;
  padding: 0.6rem 0;
  border-radius: 5px;
  position: relative;
  width: 16rem;
  margin-bottom: 1.2rem;
}

.dropdown-choose-model-text {
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-icon {
  flex-shrink: 0;
}

.dropdown-item {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
  text-align: start;
}

.back-btn {
  background: none;
  border: none;
  font-size: 2.6rem;
  color: #4caf50;
  cursor: pointer;
  padding: 10px;
}

/* Calendar Page css */

.calendar {
  border-radius: 8px;
  background-color: white;
  width: 300px;
  justify-self: center;
  margin: 2rem auto;
  overflow: hidden;
}

@media (max-width: 330px) {
  .calendar {
    width: 280px;
  }

  #buy-subscription-btn {
    padding: 0.4rem;
  }

  #buy-subscription-text {
    font-size: 1.4rem !important;
  }
}

.calendar-header-text {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #2db533;
  color: white;
  font-size: 1.2em;
}

.calendar-button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 1px;
}

.day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 50px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
  border-right: 1px solid #eee;
}

.day-number {
  margin-top: 5px;
  z-index: 1;
}

.event-indicator {
  position: absolute;
  width: calc(100% + 2px); /* Add 1px on each side to overlap borders */
  height: 4px;
  margin: 0;
  left: -1px; /* Offset the extra width */
}

/* Stack the events from top to bottom */
.event-indicator:nth-child(2) {
  bottom: 16px;
}
.event-indicator:nth-child(3) {
  bottom: 11px;
}
.event-indicator:nth-child(4) {
  bottom: 6px;
}
.event-indicator:nth-child(5) {
  bottom: 1px;
}

#event-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 80%;
  max-width: 90vw;
  height: 80%;
  max-height: 90vh;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#event-modal h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

#event-close {
  margin-top: 10px;
  padding: 10px 30px;
  border: none;
  background-color: #ff4d4d;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.4rem;
}

#event-description {
  font-size: 1.6rem;
  flex-grow: 1;
  text-align: start;
}

#event-list {
  overflow-y: auto;
  padding: 5px;
  width: 100%;
  text-align: left;
  list-style-type: none;
  flex-grow: 1;
}

.event-item {
  padding: 1rem;
  background-color: #4caf50;
  color: #fff;
  margin: 1rem 0;
  border-radius: 9px;
  font-size: 1.6rem;
  font-weight: 600;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4caf50;
  padding: 0.2rem 0.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  top: 1.2rem;
  width: 100%;
  margin: 0 auto 2.4rem auto;
  z-index: 1000;
  border-radius: 9px;
}

.header-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  padding: 1rem 1rem;
  flex: 1;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.header-btn:hover {
  background-color: #002f6c;
  transform: translateY(-2px);
}

.login-container {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hide-background {
  margin-bottom: 16rem;
}

.login-container label,
.login-container select,
.login-container input,
.login-container button {
  margin-bottom: 15px;
  font-size: 16px;
}

.status {
  color: #008000;
  font-size: 1.4rem;
  margin-top: 1rem;
  text-align: center;
  margin-bottom: 0.6rem;
}
.status.error {
  color: red;
}
.status.success {
  color: green;
}

/* Calendar admin panel */

.event-blue-info {
  background-color: #4caf50;
}
.event-red-warning {
  background-color: #ff0000;
}
.event-green-recommendation {
  background-color: #4caf50;
}

.event-yellow-color{
  background-color: #eab508;
}

/* Calendar admin select styles */
.info-option {
  background-color: #4caf50 !important;
  color: white !important;
}

.warning-option {
  background-color: #ff0000 !important;
  color: white !important;
}

.recommendation-option {
  background-color: #4caf50 !important;
  color: white !important;
}

/* Custom select styling */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem top 50%;
  background-size: 0.65rem auto;
  transition: background-color 0.3s ease;
}

.custom-select option {
  background-color: white;
  color: black;
}

.calendar-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Calendar event indicator colors */
.event-info {
  background-color: #4caf50 !important;
}

.event-warning {
  background-color: #ff0000 !important;
}

.event-recommendation {
  background-color: #4caf50 !important;
}

/* Event list item colors in modal */
.event-item.event-info {
  background-color: #4caf50;
}

.event-item.event-warning {
  background-color: #ff0000;
}

.event-item.event-recommendation {
  background-color: #4caf50;
}

/* Date Range Styles */
.date-range-container {
  margin-bottom: 1.5rem;
}

.date-range-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.date-range-toggle input[type="checkbox"] {
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
}

.date-range-toggle label {
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.date-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

/* Link Section Styles */
.links-section {
  margin: 1.5rem 0;
}

.add-link-button {
  background: #4caf50;
  color: white;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.add-link-button:hover {
  background: #002f6c;
}

.link-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.link-input {
  flex: 1;
  margin-bottom: 0 !important;
}

.remove-link-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.remove-link-btn:hover {
  background: #ff3333;
}

/* Notification page */

.notification-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 20px;
}

.notification-box {
  background: white;
  border-radius: 12px;
  width: calc(100% - 3.2rem);
  max-width: 500px;
  height: 65vh;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-self: center;
  margin: 6rem 1.6rem 0 1.6rem;
}

.notifications-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: auto;
  max-height: calc(65vh - 120px);
  box-sizing: border-box;
}

#event-modal.show,
#event-modal[style*="display: flex"] {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  height: auto;
  min-height: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
}

.notification-header {
  color: white;
  font-size: 22px;
  font-weight: bold;
  padding: 15px 0;
  text-align: center;
}

.notification-header-with-icon {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
  background-color: #4caf50;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;

}

.notification-header-icon {
  font-size: 2.4rem;
  color: #fff;
  vertical-align: middle;
}

.section-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  color: #4caf50;
}

.section-title-with-icon.in-time-text {
  display: flex;
  align-items: end;
  background-color: #3b14d5;
  border-bottom: 1px solid #8b8b8b88;
  color: #fff;
  padding: 1.2rem;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: start;
  gap: 0.7rem;
}

.section-title-icon {
  font-size: 2.2rem;
  color: #fff;
  vertical-align: middle;
}

.in-time-text-label {
  display: inline-block;
  vertical-align: middle;
}

.unread .mark-read-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.notification-item.read {
  background-color: #d4d2dd;
}

.tab-buttons {
  display: flex;
}

.mark-all-btn {
  padding: 10px;
  border: none;
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 0 12px 12px;
  width: 100%;
}

.tab-btn {
  border: none;
  padding: 1rem 0.6rem;
  border-radius: 9px;
  background-color: #4caf50;
  border: 3px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  flex-grow: 1;
  text-align: center;
  width: 100%;
}

.delete-all-container{
  display:flex;
  justify-content:flex-end;
  margin:0.5rem 0.4rem 0.5rem 0;
}

.no-notifications {
  text-align: center;
  color: #888;
  font-size: 16px;
  margin-top: 20px;
}

/* Basic modal styling (same as your original modal) */
#event-details-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.8);
  text-align: center;
  width: 80%;
  max-width: 90vw;
  height: auto;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
  position: absolute;
}

#event-details-modal.show,
#event-details-modal[style*="display: flex"] {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

#event-details-modal h3 {
  font-size: 2rem;
  margin: 1rem 0;
  color: #4caf50;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.3;
}

#event-details-modal p {
  font-size: 1.4rem;
  color: #333;
  margin: 0.5rem 0;
  text-align: left;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Links section in event details */
#event-details-links {
  margin-top: 1rem;
  display: none;
  width: 100%;
}

#event-details-links a {
  color: #4caf50;
  text-decoration: none;
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  text-align: start;
}

/* Back button for returning to the main modal */
#back-to-main-modal {
  background-color: #4caf50;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  border: none;
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

#back-to-main-modal ion-icon {
  margin-right: 8px;
}

/* Make sure the modal content is in the right place */
#event-details-modal > * {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  color: #333;
  height: auto;
}

#event-details-modal > :first-child {
  margin-right: auto !important;
  margin-left: 0 !important;
  justify-self: flex-start !important;
  text-align: left !important;
  box-shadow: none;
  color: #4caf50;
  padding-bottom: 0 !important;
}

#event-details-modal.show {
  display: flex;
}

/* Login Page */
.login-container {
  width: 90%;
  max-width: 40rem;
  margin: 5rem auto;
  padding: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-container input {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.4rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.login-container button {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background-color: #4caf50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover {
  background-color: #1c7a1f;
}

.status {
  color: #008000;
  font-size: 1.4rem;
  margin-top: 1rem;
  text-align: center;
  margin-bottom: 0.6rem;
}
.status.error {
  color: red;
}
.status.success {
  color: green;
}

/* Logout Modal */
#logout-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

#logout-modal .logout-modal-content {
  border-radius: 12px;
  padding: 2.4rem 2rem 2rem 2rem;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  min-width: 260px;
  max-width: 90vw;

}

#logout-modal .logout-modal-message {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  color: #fff;
}

#logout-modal .logout-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#logout-modal .logout-modal-btn {
  padding: 1rem 4.2rem;
  font-size: 1.5rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

#logout-modal .logout-modal-btn.yes {
  background: #b30505;
  color: #fff;
}

#logout-modal .logout-modal-btn.yes:hover {
  background: #002f6c;
}

#logout-modal .logout-modal-btn.no {
  background: #eee;
  color: #222;
}

#logout-modal .logout-modal-btn.no:hover {
  background: #ccc;
}

.edit-icon {
  margin-right: 1rem;
}

#delete-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

#delete-modal .logout-modal-content {
  border-radius: 12px;
  padding: 2.4rem 2rem 2rem 2rem;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  min-width: 260px;
  max-width: 90vw;
}

#delete-modal .logout-modal-message {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  color: #fff;
}

#delete-modal .logout-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#delete-modal .logout-modal-btn {
  padding: 1rem 4.2rem;
  font-size: 1.5rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

#delete-modal .logout-modal-btn.yes {
  background: #b30505;
  color: #fff;
}

#delete-modal .logout-modal-btn.yes:hover {
  background: #4caf50;
}

#delete-modal .logout-modal-btn.no {
  background: #eee;
  color: #222;
}

#delete-modal .logout-modal-btn.no:hover {
  background: #ccc;
}

/* Devices page - moved inline styles to classes */
.counter-container-vertical {
  align-items: flex-start !important;
  flex-direction: column !important;
}

.counter-row {
  display: flex !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.counter-small {
  font-size: 2.2rem !important;
  flex: 0 0 auto !important;
  margin-right: 0.8rem !important;
}

.add-button-large {
  margin-left: 0.8rem !important;
  width: auto !important;
  padding: 1rem 2rem !important;
  font-size: 2rem !important;
}

.counter-row-bottom {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.upgrade-account-btn {
  width: auto !important;
  padding: 0.6rem 0.8rem !important;
  font-size: 1.8rem !important;
}

.upgrade-account-btn-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upgrade-account-btn-icon {
  font-size: 2.8rem;
  color: #fff;
  vertical-align: middle;
}

.edit-device-coord-label {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.3rem !important;
  display: block !important;
}

#upgradeAccountModal.upgradeModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem 2.4rem 2.4rem 2.4rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgb(0, 0, 0);
  z-index: 2001;
  flex-direction: column;
  width: 90%;
  align-items: flex-start;
}

#upgradeAccountModal .back-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #4caf50;
  cursor: pointer;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

#upgradeAccountModal .upgrade-modal-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #222;
  text-align: left;
}

.upgrade-account-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#upgradeAccountOverlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
}

.logout-modal-message{
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
}

.okButtonModal,
.upgradeButtonModal
{
  width: 100%;
}

#maxLocationsModal .logout-modal-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-height: 8rem;
}

#maxLocationsModal{
  height: auto;
}

.upgradeButtonModal {
  margin-top: 2rem;
}

.okButtonModal {
  margin-top: auto;
}

.addDeviceModal{
  width: 85%;
  display:none;
  height:auto;
}

#add-device-modal-back{
  padding: 0 0 1rem 0;
  font-size: 2.6rem;
}

.modal-add-device .modal-title-large {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: #fff;
}

.modal-add-device .modal-label-large {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.modal-add-device .modal-input-large {
  font-size: 1.6rem;
}

.modal-add-device .modal-button-large {
  font-size: 1.8rem;
  margin-top: 2rem;
}

.notification-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 0.4em;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.3;
}

.notification-description {
  font-size: 1.6rem;
  color: #000;
  margin: 0.2em 0 0 0;
  height: auto;
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
  text-align: start;
  box-sizing: border-box;
  overflow: hidden;
  display: none;
  hyphens: auto;
}

.mark-read-btn.blue-btn {
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.5rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.6rem;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
  align-self: flex-end;
}

.mark-read-btn.blue-btn:hover {
  background-color: #002f6c;
  color: #fff;
}

/* Login back arrow styles */
.login-back-arrow {
  display: block;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: inherit; /* Inherit color from parent or icon */
  width: auto;
  height: auto;
  padding: 0;
  margin-right: auto;
  top: 0.8rem;
  left: 0.8rem;
}

.login-back-arrow-icon {
  font-size: 3.8rem;
  line-height: 1;
  color: #4caf50; /* Make the arrow itself blue */
}

/* Only remove the inherited modal styles for the back arrow button in event details modal */
#event-details-modal > #back-to-main-modal {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  max-width: none !important;
  width: auto !important;
  font-size: inherit !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.calendar-header-with-icon {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 0.8rem;
  margin-left: 1.2rem;
  margin-right: 1.2rem;
  margin-top: 2.8rem;
}

.calendar-header-icon {
  font-size: 2.4rem;
  color: #fff;
  vertical-align: middle;
}

.upcoming-events-with-icon {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  margin-top: 2rem;
  justify-content: center;
  border-bottom: 2px solid #0f6d14;
  padding-bottom: 0.8rem;
  margin-left: 1.6rem;
  margin-right: 1.6rem;
}

.upcoming-events-icon {
  font-size: 2.2rem;
  color: #fff;
  vertical-align: middle;
}

.nav-calendar-icon{
  font-size: 1.8rem;
}

.calendar-header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: default;
  color: #fff;
  padding: 0.4rem 0.4rem;
  flex: 1;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

#meteostations-btn,
#buy-meteostation-btn {
  margin: 5px 0 !important;
}

#profile-info{
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-info-wrapper {
  width: 80%;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  justify-content: none;
  gap: 1.2rem;
  background-color: #fff;
  padding: 1rem;
  border-bottom-left-radius: 33px;
  border-bottom-right-radius: 33px;
  border-top-left-radius: 33px;
  border-top-right-radius: 33px;
  position: relative;
  cursor: pointer;
}

.profile-info-wrapper .profile-info-action-icon {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  color: #4caf50;
  opacity: 0.7;
  pointer-events: none;
}

.profile-info-wrapper:hover .profile-info-action-icon {
  opacity: 1;
}

.profile-info-icon ion-icon {
  font-size: 3.6rem;
  color: #4caf50;
  height: 3.8rem;
}

.profile-info-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.profile-info-username {
  font-weight: 700;
  font-size: 1.7rem;
  color: #4caf50;
}

.profile-info-phone {
  font-size: 1.3rem;
  color: #222;
}

.revolt-logo {
  width: 9rem;
  border-radius: 12px;
  display: block;
  margin: 2rem auto 0 auto;
  float: none;
}

.today-blue-cell {
  background: #d8e6fc !important;
}

#event-modal {
  z-index: 2001 !important;
}

#event-details-description {
  max-height: 60vh;
  overflow-y: auto;
}

body > .revolt-logo {
  margin-top: auto;
  padding-top: 2rem;
}

.upgrade-prompt-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fa2828;
  border-radius: 9px;
  padding: 1.2rem 2rem;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  width: 100%;
  margin-bottom: 0.8rem;
  gap: 1.2rem;
}

.upgrade-prompt-text {
  flex: 1 1 auto;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  margin-right: 1.2rem;
  text-align: left;
  white-space: normal;
}

.subscription-modal {
  padding: 0.8rem 1.2rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.6rem;
  font-weight: 700;
  box-sizing: border-box;
  z-index: 900;
}

.subscription-modal-renew-btn {
  background: #fa2828;
  color: #fff;
  font-weight: 700;
  border-radius: 7px;
  padding: 0.8rem 2.2rem;
  text-decoration: none;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(255, 152, 0, 0.07);
}


@media (max-width: 600px) {
  .upgrade-prompt-box {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  #upgrade-account-btn-inline {
    width: 100%;
    justify-content: center;
  }
}

.profile-subscription-expiry-info {
  margin: 1rem 0 0 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222; /* default black, overridden inline for expired */
}

.icon-text-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

#meteostations-btn .add-device-btn-text {
  font-size: 1.7rem;
}

#buy-meteostation-btn .add-device-btn-text {
  font-size: 1.7rem;
}

#buy-subscription-btn .add-device-btn-text {
  font-size: 1.7rem;
}

.device-suspended-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ffeaea 0%, #ffd6d6 100%);
  border-radius: 0.7rem;
  padding: 0.2rem 0.2rem;
  color: #fa2828;
  font-weight: 600;
  font-size: 1.2rem;
  position: absolute;
  left: 52%;
  top: 11%;
  transform: translateX(-50%);
  z-index: 2;
}

.device-li {
  position: relative;
}

.suspended-link {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

      .index-logo {
        width: 16rem;
        max-width: 90vw;
        margin-bottom: 2.2rem;
        margin-top: 2rem;
        display: block;
      }
      .index-header {
        color: #fff;
        font-size: 2.6rem;
        margin-bottom: 3rem;
        text-align: center;
      }
      .index-btn-row {
        display: flex;
        flex-direction: row;
        gap: 2.4rem;
        align-items: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }
      .index-btn-group {
        display: flex;
        flex-direction: row;
        gap: 2.4rem;
        align-items: end;
      }
      .index-btn,
      .index-store-btn {
        width: 220px;
        max-width: 90vw;
        height: 60px;
        border-radius: 9px;
        overflow: hidden;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .index-btn {
        text-align: center;
        font-size: 2.2rem;
        gap: 1rem;
      }
      .index-store-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

@media (max-width: 600px) {
  .index-btn-row,
  .index-btn-group {
    flex-direction: column;
    align-items: center;
    width: 85%;
    margin: 0 auto;
  }

    .index-btn,
    .index-store-btn
     {
      width: 100%;
      max-width: 400px;
    }

    .open-in-browser{
      width: 83% !important;
    }

    .index-btn,
    .index-store-btn {
      height: 70px;
    }

    .google-play-a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 130% !important;
      box-sizing: border-box;
  }

  #install-app-btn{
    width: 85% !important;
  }
}

@media (max-width: 390px) {
  .google-play-a {
      width: 100%;
  }
}

.open-in-browser{
  display: flex !important;
  background-color: #000 !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}

.coming-soon-label {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  padding: 0.4rem;
  margin-bottom: 0.1rem;
}

.country-phone-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

#countryCode {
  width: 100%;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #4caf50;
  background: #f8faff;
  color: #4caf50;
  margin-bottom: 1rem;
}

#countryCode:focus {
  outline: 2px solid #4caf50;
}

#phone {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
  border-radius: 6px;
  border: 1px solid #4caf50;
  background: #fff;
  color: #000 !important;
  margin-bottom: 1rem;
}

#phone:focus {
  outline: 2px solid #fff;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 1.5rem;
}
.country-code-select-wrapper {
  position: relative;
  width: 7rem;
}

.country-code-select {
  width: 100%;
  height: 4.2rem;
  font-size: 1.7rem;
  border-radius: 8px;
  border: 2px solid #4caf50;
  background: #f8faff;
  color: #4caf50;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.country-code-select:focus {
  outline: 2px solid #4caf50;
}
.country-dropdown-list {
  position: absolute;
  top: 90%;
  left: 0;
  width: 22rem;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(18, 78, 6, 0.897);
  border-radius: 12px;
  z-index: 9999;
  margin-bottom: 1rem;
  display: none;
}

.country-name-text{
  color: #fff;
}

.country-modal-item {
  display: flex;
  align-items: center;
  justify-content: none;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  font-size: 1.4rem;
}

.country-modal-item:hover {
  background: #e6edf70a;
}

.country-dial {
  font-size: 1.3rem;
  color: #4caf50;
  font-weight: 600;
}

.phone-input {
  flex: 1;
  padding: 1.2rem;
  font-size: 1.5rem;
  border-radius: 6px;
  border: 1px solid #4caf50;
  background: #fff;
  color: #4caf50;
}
.phone-input:focus {
  outline: 2px solid #4caf50;
}

.error-screen-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  z-index: 2002;
  display: none;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 32rem;
  min-width: 260px;
  height: auto;
  padding: 2.4rem 2rem 2rem 2rem;
}
.error-screen-modal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.error-screen-modal-message {
  font-size: 1.7rem;
  font-weight: 600;
  color: #4caf50;
  margin-bottom: 2.2rem;
  text-align: center;
  word-break: break-word;
}
.error-screen-modal-ok-btn {
  background: #4caf50;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  padding: 1rem 4.2rem;
  margin-top: auto;
  transition: background 0.2s;
}
.error-screen-modal-ok-btn:hover {
  background: #002f6c;
}
.error-screen-modal-overlay {
  position: fixed;
  z-index: 2001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
}

.privacy-link-container {
  width: 100%;
  text-align: center;
}
#privacy-link {
  color: #21db27;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
#privacy-link:hover {
  color: #45a049;
}
.privacy-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  z-index: 2002;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 32rem;
  min-width: 260px;
  height: 70vh;
  padding: 2.4rem 2rem 2rem 2rem;
  box-shadow: 0 4px 24px rgb(0, 0, 0);
}
.privacy-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}
.privacy-modal-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 1.2rem;
  text-align: center;
}
.privacy-modal-scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1.2rem;
  padding: 0.2rem 0.2rem;
  background: #f8faff;
  border-radius: 8px;
  box-sizing: border-box;
}
.privacy-modal-text {
  font-size: 1.2rem;
  color: #222;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  padding: 0.2rem;
  background: none;
  border: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.privacy-modal-ok-btn {
  background: #4caf50;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  padding: 1rem 4.2rem;
  transition: background 0.2s;
  width: 100%;
  z-index: 2;
  margin-top: 1.2rem;
  position: static;
}
.privacy-modal-ok-btn:hover {
  background: #002f6c;
}
.privacy-modal-overlay {
  position: fixed;
  z-index: 2001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
}

.delete-account-container {
  width: 90%;
  max-width: 40rem;
  margin: 5rem auto 0 auto;
  padding: 2.4rem 2rem 2rem 2rem;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.delete-account-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 1.2rem;
  text-align: center;
}

.delete-account-warning {
  font-size: 1.4rem;
  color: #ad0101;
  background: #ffeaea;
  border-radius: 7px;
  padding: 1.2rem 1rem;
  margin-bottom: 2.2rem;
  text-align: center;
  font-weight: 600;
}

.delete-account-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: #ad0101;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}

.delete-account-btn:hover {
  background: #7a0000;
}

.delete-confirm-modal {
  display: none;
  position: fixed;
  z-index: 2002;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.delete-confirm-content {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.4rem 2rem 2rem 2rem;
  text-align: center;
  min-width: 260px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.delete-confirm-message {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  color: #ad0101;
}

.delete-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.delete-confirm-btn {
  padding: 0.8rem 2rem;
  font-size: 1.5rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.delete-confirm-btn.yes {
  background: #ad0101;
  color: #fff;
}

.delete-confirm-btn.yes:hover {
  background: #7a0000;
}

.delete-confirm-btn.no {
  background: #eee;
  color: #222;
}

.delete-confirm-btn.no:hover {
  background: #ccc;
}

.delete-account-top-btn {
  background: #ad0101;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 0.4rem 0.9rem;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.delete-account-top-btn:hover {
  background: #7a0000;
}
.delete-account-top-btn ion-icon {
  font-size: 1.3rem;
}

@media (max-width: 600px) {
  .delete-account-top-btn {
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
  }
}

/* WeatherAPI widget styles */
#weather-widget {
  width: 90%;
  background: #171720;
  color: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.8rem 2rem 1.8rem;
  margin: 0 0 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  min-height: 600px;
}

.weatherapi-widget.loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
}

.weatherapi-loading-gif {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}

.weatherapi-location {
  text-align: left;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-left: 1.4rem;
}

.weatherapi-location .loc-name {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: .5px;
  margin-top: 1.8rem;
}

.weatherapi-location .loc-region {
  font-size: 1.6rem;
  opacity: .85;
  font-weight: 600;
}

.weatherapi-location .loc-country {
  font-size: 1.2rem;
  opacity: .65;
  font-weight: 600;
  letter-spacing: .5px;
}

.weatherapi-core {
  display: flex;
  align-items: center;
}

.weatherapi-icon {
  width: 72px;
  height: 72px;
  image-rendering: -webkit-optimize-contrast;
}

.weatherapi-temp {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.weatherapi-cond {
  font-size: 1.6rem;
  font-weight: 600;
  opacity: .9;
  margin-top: .2rem;
}

.weatherapi-updated {
  margin-top: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  opacity: .75;
}

.weatherapi-updated ion-icon {
  font-size: 1.4rem;
  color: #fff;
  opacity: .9;
}

.weatherapi-metrics-extended {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
}

.wx-card {
  background: linear-gradient(145deg,#20202b,#121218);
  border: 1px solid #272736;
  padding: .9rem .8rem .8rem .8rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  position: relative;
  min-height: 72px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03),0 4px 10px rgba(0,0,0,.45);
}

.wx-card:hover {
  border-color: #3b3b52;
  box-shadow: 0 6px 16px rgba(0,0,0,.55);
}

.wx-card ion-icon {
  position: absolute;
  top: .6rem;
  right: .6rem;
  font-size: 1.7rem;
  color: #80b9ff;
  opacity: .85;
}

.wx-card .lbl {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .75;
  padding-right: 2.2rem;
}

.wx-card strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .5px;
  word-break: break-word;
}


  .weatherapi-temp { font-size: 3.4rem; }
  .weatherapi-icon { width: 62px; height: 62px; }
  .wx-card { min-height: 66px; }
  .weatherapi-metrics-extended { grid-template-columns: repeat(2, 1fr); }


/* Inline weekly forecast overlay */
#weather-widget .weekly-forecast-inline {
  position: absolute;
  inset: 0;
  background: #171720;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 10;
  overflow-y: auto;
}

#weather-widget .weekly-forecast-inline::-webkit-scrollbar {
  width: 8px;
}
#weather-widget .weekly-forecast-inline::-webkit-scrollbar-track {
  background: #121218;
  border-radius: 8px;
}
#weather-widget .weekly-forecast-inline::-webkit-scrollbar-thumb {
  background: #2b2b38;
  border-radius: 8px;
}
#weather-widget .weekly-forecast-inline::-webkit-scrollbar-thumb:hover {
  background: #3a3a4c;
}

.weekly-forecast-header {
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap:0.4rem;
  position: relative;
}

.weekly-forecast-title {
  font-size:1.2rem;
  font-weight:600;
  margin:0;
}

.weekly-close-btn {
  background: linear-gradient(135deg,#ff7e42,#ff4a6a);
  border: none;
  color:#fff;
  font-size:.95rem;
  font-weight:700;
  padding:.45rem .9rem;
  border-radius: 8px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: box-shadow .2s, transform .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.weekly-close-btn:hover {
  box-shadow:0 6px 16px rgba(0,0,0,.5);
  transform: translateY(-2px);
}

.weekly-forecast-grid {
  display:grid;
  gap:1rem;
  grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
}

.weekly-forecast-card {
  background:#20202b;
  border:1px solid #272736;
  border-radius:10px;
  padding:0.6rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03),0 4px 10px rgba(0,0,0,.45);
  font-size:1.1rem;
}

.weekly-forecast-card:hover { border-color:#3b3b52; box-shadow:0 6px 16px rgba(0,0,0,.55); }

.wf-day { font-weight:700; font-size:1.3rem; letter-spacing:.04em; }
.wf-icon { width:30px; height:30px; }
.wf-cond { font-size:1.1rem; text-align:center; min-height:2.2rem; }
.wf-temps { display:flex; flex-direction:column; gap:.2rem; font-size:1.3rem; }
.wf-rain { font-size:1.2rem; font-weight:600; }


.weekly-forecast-grid {
  grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
}

.weekly-forecast-btn {
   font-size:1rem;
    padding:.5rem .7rem;
    position: absolute;
    top:10px;
    right: 10px; 
    background: linear-gradient(135deg, #ff7e42, #ff4a6a); 
    border: none; 
    color: #fff;
    border-radius: 8px; 
    cursor: pointer; 
}

/* Coordinate picker (Leaflet) */
.map-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2200;
  display: none;
}

.map-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 680px;
  height: 70vh;
  max-height: 760px;
  transform: translate(-50%, -50%);
  background: #171720;
  border-radius: 14px;
  box-shadow:   0 6px 32px rgba(0,0,0,0.55);



  z-index: 2201;
  display: none;
  padding: 1.2rem 1.4rem 1.6rem 1.4rem;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.map-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.map-close-btn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  font-size: 1.3rem;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.map-close-btn:hover { background:#d93636; }

/* Ensure the map is visible */
#coord-map {
  flex: 1 1 auto;
  width: 100%;
  height: 55vh;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #2b2b38, 0 4px 14px rgba(0,0,0,0.45);
}

.confirm-coord-btn {
  background: #4caf50;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: background .25s;
}
.confirm-coord-btn:hover { background:#002f6c; }

.select-coord-btn.chosen { background: #001993 !important; }

.map-search-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.map-search-input {
  width: 100%;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1.4rem;
  outline: none;
}

.map-search-results {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  max-height: 28vh;
  overflow-y: auto;
  background: #fff;
  color: #111;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.map-search-results li {
  padding: 0.8rem 1rem;
  font-size: 1.3rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.map-search-results li:last-child {
  border-bottom: none;
}

.map-search-results li:hover {
  background: #f0f4ff;
}

.notif-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  backdrop-filter: blur(2px);
}

.notif-modal {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 90vw;
  height: 70vh;
  max-height: 90vh;
  background: #1a1a1a;
  border-radius: 16px;
  z-index: 2001;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid #2a2a2a;
  overflow: hidden;
  position: absolute;
}

.notif-modal.show,
.notif-modal[style*="display: flex"] {
  display: flex !important;
  flex-direction: column;
}

.notif-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: #111;
  border-bottom: 1px solid #2a2a2a;
}

.notif-modal-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.notif-modal-title ion-icon {
  font-size: 2.2rem;
  color: #4caf50;
}

.notif-modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.notif-modal-close-btn:hover {
  background-color: rgba(255, 77, 77, 0.2);
}

.notif-modal-close-btn ion-icon {
  font-size: 2.4rem;
  color: #ff4d4d;
}

.notif-modal-tabs {
  display: flex;
  background: #111;
  border-bottom: 1px solid #2a2a2a;
}

.notif-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.notif-tab-btn ion-icon {
  font-size: 1.8rem;
}

.notif-tab-btn:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.notif-tab-btn.active {
  color: #4caf50;
  border-bottom-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.notif-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 200px;
  max-height: 50vh;
}

.notif-modal-content::-webkit-scrollbar {
  width: 6px;
}

.notif-modal-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.notif-modal-content::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 3px;
}

.notif-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.notif-loading-icon {
  font-size: 3rem;
  color: #4caf50;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.notif-empty {
  text-align: center;
  color: #888;
  font-size: 1.4rem;
  padding: 3rem 1rem;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #222;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border-left: 4px solid #4caf50;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.notif-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.notif-item.read {
  border-left-color: #555;
  opacity: 0.8;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.3;
}

.notif-item-body {
  font-size: 1.2rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.notif-item-btn {
  flex-shrink: 0;
  background: #4caf50;
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notif-item-btn:hover {
  transform: scale(1.1);
}

.notif-item-btn ion-icon {
  font-size: 1.8rem;
  color: #fff;
}

.notif-item-btn.delete {
  background: #ff4d4d;
}

.notif-item-btn.delete:hover {
  background: #e03e3e;
}

.notif-item-btn.mark-read {
  background: #4caf50;
}

.notif-item-btn.mark-read:hover {
  background: #3d9142;
}

.notif-modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: calc(100% - 2rem);
  margin: 1rem;
  padding: 1rem;
  background: #4caf50;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notif-modal-action-btn:hover {
  background: #3d9142;
  transform: translateY(-2px);
}

.notif-modal-action-btn.delete {
  background: #ff4d4d;
}

.notif-modal-action-btn.delete:hover {
  background: #e03e3e;
}

.notif-modal-action-btn ion-icon {
  font-size: 2rem;
}

 @media (max-width: 360px) {
  .notif-modal {
    width: 90%;
    max-height: 90vh;
  }
  
  .notif-modal-title {
    font-size: 1.6rem;
  }
  
  .notif-tab-btn {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
  
  .notif-tab-btn ion-icon {
    font-size: 1.6rem;
  }
}

.new-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000 !important;
  padding: 1rem 1.6rem;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid #3c623b;
  margin: 0;
}

.new-header-btn {
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.new-header-btn:hover {
  background-color: rgba(76, 175, 80, 0.15) !important;
  transform: scale(1.05);
}

.new-header-btn:active {
  background-color: rgba(76, 175, 80, 0.25) !important;
  transform: scale(0.95);
}

.new-header-btn ion-icon {
  font-size: 2.8rem;
  color: #4caf50 !important;
}

.new-header-logo-link,
.new-header-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  order: 2;
  flex: 1;
}

.new-header-logo {
  height: 4.2rem;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Remove hover effect since it's no longer clickable */
.new-header-logo-container .new-header-logo {
  cursor: default;
}

.new-header-menu-btn {
  order: 1;
}

.new-header-notifications-btn {
  order: 3;
}

/* Notification badge */
.new-header-notif-badge {
  position: absolute;
  top: 0rem;
  right: 0rem;
  background-color: #f44336;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.4);
  border: 2px solid #000;
}

/* Responsive adjustments for new header */
@media (max-width: 360px) {
  .new-header {
    padding: 0.8rem 1rem;
  }
  
  .new-header-btn ion-icon {
    font-size: 2.4rem;
  }
  
  .new-header-logo {
    height: 3.4rem;
  }
  
  .new-header-btn {
    padding: 0.6rem;
  }
}

/* Menu Drawer Styles */
.menu-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.menu-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  z-index: 1999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  border-right: 1px solid #2a2a2a;
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: #000;
  border-bottom: 1px solid #3c623b;
}

.menu-drawer-logo {
  height: 4rem;
  width: auto;
  border-radius: 8px;
}

.menu-drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.menu-drawer-close-btn:hover {
  background-color: rgba(255, 77, 77, 0.2);
}

.menu-drawer-close-btn ion-icon {
  font-size: 2.4rem;
  color: #ff4d4d;
}

.menu-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.menu-drawer-content::-webkit-scrollbar {
  width: 4px;
}

.menu-drawer-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.menu-drawer-content::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 2px;
}

.menu-drawer-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-drawer-item:hover {
  background: rgba(76, 175, 80, 0.1);
  border-left-color: #4caf50;
}

.menu-drawer-item:active {
  background: rgba(76, 175, 80, 0.2);
}

.menu-drawer-item ion-icon {
  font-size: 2.2rem;
  color: #4caf50;
  flex-shrink: 0;
}

.menu-drawer-item span {
  flex: 1;
}

.menu-drawer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #3a3a3a, transparent);
  margin: 0.8rem 1.6rem;
}

.menu-drawer-logout {
  color: #ff6b6b !important;
}

.menu-drawer-logout ion-icon {
  color: #ff6b6b !important;
}

.menu-drawer-logout:hover {
  background: rgba(255, 77, 77, 0.1) !important;
  border-left-color: #ff4d4d !important;
}

.menu-drawer-footer {
  padding: 1.5rem 1.6rem;
  background: #0a0a0a;
  border-top: 1px solid #2a2a2a;
}

.menu-drawer-lang-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.menu-lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #3a3a3a;
  border-radius: 50%;
  padding: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-lang-btn:hover {
  border-color: #4caf50;
  transform: scale(1.1);
  background: rgba(76, 175, 80, 0.1);
}

.menu-lang-btn:active {
  transform: scale(0.95);
}

.menu-lang-flag {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive adjustments for menu drawer */
@media (max-width: 360px) {
  .menu-drawer {
    width: 260px;
  }
  
  .menu-drawer-item {
    padding: 1rem 1.4rem;
    font-size: 1.4rem;
  }
  
  .menu-drawer-item ion-icon {
    font-size: 2rem;
  }
  
  .menu-lang-flag {
    width: 2.8rem;
    height: 2.8rem;
  }
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  padding: 0.8rem 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
  border-top: 1px solid #3c623b;
  z-index: 1000;
  width: 100%;
  height: 6rem;
}

.bottom-nav-divider {
  width: 2px;
  height: 3.5rem;
  background: linear-gradient(180deg, transparent, #4caf50, transparent);
  flex-shrink: 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  color: #888;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 8px;
  flex: 1;
  max-width: 50%;
}

.bottom-nav-item ion-icon {
  font-size: 2.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item span {
  text-align: center;
  line-height: 1.2;
}

.bottom-nav-item:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
  color: #4caf50;
}

.bottom-nav-item.active ion-icon {
  color: #4caf50;
  transform: scale(1.1);
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

/* Add padding to body to account for bottom nav */
body.page-background {
  padding-bottom: 6rem;
  min-height: 100vh;
}

/* Responsive adjustments for bottom nav */
@media (max-width: 360px) {
  .bottom-nav {
    padding: 0.6rem 0;
  }
  
  .bottom-nav-item {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
  
  .bottom-nav-item ion-icon {
    font-size: 2rem;
  }
}

/* Main Tab Content Switching */
.main-tab-content {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.main-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.device-section-tabs {
  display: flex;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 12px;
  padding: 0.6rem;
  margin: 0 1.6rem 2rem 1.6rem;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-section-tab {
  flex: 1;
  padding: 1rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.device-section-tab:hover {
  background: rgba(76, 175, 80, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(76, 175, 80, 0.3);
}

.device-section-tab.active {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #fff;
  border-color: #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.device-section-tab.active:hover {
  background: linear-gradient(135deg, #5cbf60 0%, #4caf50 100%);
}

/* Device Section Content */
.device-section-content {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.device-section-content.active {
  display: block;
}

@media (max-width: 360px) {
  .device-section-tabs {
    margin: 0 1rem 1.5rem 1rem;
    padding: 0.4rem;
  }
  
  .device-section-tab {
    padding: 0.8rem 0.6rem;
    font-size: 1.2rem;
  }
}

.device-li {
  position: relative;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-bottom: 1rem;
}

.device-li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(76, 175, 80, 0.3);
}

.device-link-full {
  display: flex;
  align-items: center;
  padding: 1.4rem 5rem 1.4rem 1.4rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  transition: background-color 0.2s ease;
  min-height: 58px;
  border-radius: 14px;
}

.device-link-full:hover {
  background: rgba(76, 175, 80, 0.08);
}

.list-text {
  font-size: 1.7rem;
  color: #4caf50;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.list-icon {
  font-size: 2.2rem;
  color: #4caf50;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: #463e3e;
}

.counter-container {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
}

.counter {
  font-size: 2.4rem;
  font-weight: 700;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  letter-spacing: 0.05em;
}

.add-button {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-button:hover {
  background: linear-gradient(135deg, #5cbf60 0%, #4caf50 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#buy-subscription-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

#buy-subscription-btn:hover {
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.upgrade-prompt-box {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.08) 100%);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 12px;
}

.upgrade-prompt-text {
  color: #ff8a80;
}

.upgrade-account-btn {
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.upgrade-account-btn:hover {
  background: linear-gradient(135deg, #f06292 0%, #e91e63 100%);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.newModal,
#upgradeAccountModal.upgradeModal {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.newModal h1,
.newModal .redact-device-heading,
#upgradeAccountModal .upgrade-modal-title {
  color: #fff;
}

.newModal .device-name-input,
.newModal .edit-device-coord-input,
.upgrade-account-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.newModal .device-name-input:focus,
.newModal .edit-device-coord-input:focus,
.upgrade-account-form input:focus {
  border-color: #4caf50;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.newModal .device-name-input::placeholder,
.newModal .edit-device-coord-input::placeholder,
.upgrade-account-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newModal .edit-device-coord-label {
  color: rgba(255, 255, 255, 0.8);
}

.newModal .back-btn ion-icon {
  color: #4caf50;
}

.newModal .back-btn:hover ion-icon {
  color: #fff;
}

.overlay,
#upgradeAccountOverlay {
  backdrop-filter: blur(4px);
}

.device-suspended-warning {
  background: linear-gradient(90deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.08) 100%);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ff6b6b;
}

.subscription-modal-expired,
.subscription-modal-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.subscription-modal-message {
  color: #ffd54f;
}

.station-data-box {
  display: flex;
  flex-direction: row;
  gap: 2.4rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 2.4rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  width: 95%;
  min-height: 400px;
}

.station-data-box-mobile {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 2rem auto;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.station-data-list {
  flex: 1 1 45%;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.7rem;
  color: #222;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.station-data-list-mobile {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.station-data-list-mobile li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
}

.station-data-label {
  flex: 1 1 60%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  padding-right: 1rem;
  word-break: break-word;
}

.station-data-value {
  flex: 1 1 40%;
  color: #4caf50;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 600px) {
  .station-data-box-mobile {
    max-width: 90%;
    padding: 0.7rem 0.4rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .station-data-list-mobile li {
    font-size: 1.2rem;
    padding: 0.5rem 0.4rem;
  }
  .station-data-label,
  .station-data-value {
    font-size: 1.6rem;
    padding-right: 0.5rem;
  }
}