/* Style the subscribe button container */
#replace-with-subscribe {
  display: inline-block;
}

.page-status {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Style the subscribe button after load */
#replace-with-subscribe .updates-dropdown-container {
  position: static !important;
  display: inline-block !important;
}

/* Override StatusPage's default styles */
.custom-header-buttons #replace-with-subscribe .updates-dropdown-container .show-updates-dropdown,
#replace-with-subscribe .updates-dropdown-container .show-updates-dropdown,
#replace-with-subscribe .show-updates-dropdown,
.show-updates-dropdown {
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  margin: 0 !important;
  display: inline-block !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.5 !important;
}

.custom-header-buttons #replace-with-subscribe .updates-dropdown-container .show-updates-dropdown:hover,
#replace-with-subscribe .updates-dropdown-container .show-updates-dropdown:hover,
#replace-with-subscribe .show-updates-dropdown:hover,
.show-updates-dropdown:hover {
  background: #e5e7eb !important;
  color: #374151 !important;
}

/* Adjust dropdown positioning */
#replace-with-subscribe .updates-dropdown {
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  margin-top: 10px;
}

/* Style the header */
.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.custom-header-logo img {
  max-height: 50px;
  width: auto;
}

.custom-header-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.custom-header-buttons a.contact-support-btn {
  padding: 10px 20px;
  border-radius: 6px;
  line-height: 1.5 !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.custom-header-buttons a.contact-support-btn:hover {
  background: #e5e7eb;
}

/* Style the footer */
.custom-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.custom-footer-social {
  display: flex;
  gap: 20px;
  font-size: 24px;
  order: 1;
  flex: 1;
  justify-content: flex-start;
}

.custom-footer-social a {
  color: #6b7280;
  transition: color 0.2s;
}

.custom-footer-social a:hover {
  color: #2563eb;
}

.custom-footer-logo {
  order: 2;
  flex: 1;
  display: flex;
  justify-content: center;
}

.custom-footer-logo img {
  max-height: 40px;
  width: auto;
}

.custom-footer-copyright {
  order: 3;
  font-size: 14px;
  color: #6b7280;
  flex: 1;
  text-align: right;
}

.custom-footer-copyright a {
  color: #6b7280;
  text-decoration: none;
}

.custom-footer-copyright a:hover {
  color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .custom-header-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .custom-footer {
    flex-direction: column;
    gap: 20px;
  }
  
  .custom-footer-social,
  .custom-footer-logo,
  .custom-footer-copyright {
    order: 0;
  }
}