/* assets/css/style.css */

/* Brand Color Variables */
:root {
  --accent: #E8F7F0;
  --primary: #289C78;
  --hover: #1F6D54;
  --text: #1A1A1A;
  --background: #FFFFFF;
}

/* Base Reset and Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.header-logo {
  width: 30px;
  height: 44px;
}

/* Container */
.content-wrapper {
  width: 100%;
  background: var(--background);
  padding: 1.5rem 2.5rem 2.5rem 1.5rem;
}

/* Landing Section: Two Columns */
.landing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left   right"
    "tagline right";
  gap: 2rem;
}

/* assign grid‑areas */
.left-section {
  grid-area: left;
}

.right-section {
  grid-area: right;
}

.tagline {
  grid-area: tagline;
}

/* Left Column */
.left-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  align-self: start;
}

.headline {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 60px;
}

.subheadline {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 20px;
}

.tagline {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 48px;
  color: var(--primary);
}

/* Tab Container Styles */
.tab-container {
  display: flex;
  gap: 0;
  margin-bottom: -2px;
}

.tab-button {
  flex: 1;
  padding: 1rem 2rem;
  border: 2px solid #e0e0e0;
  background: #f9f9f9;
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid #e0e0e0;
  transition: all 0.2s;
}

.tab-button.active {
  background: linear-gradient(135deg, #289C78 0%, #1F6D54 100%);
  color: white;
  border: 2px solid #289C78;
  border-bottom: 2px solid #289C78;
  z-index: 1;
}

.tab-button:hover:not(.active) {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.tab-button.active:hover {
  background: linear-gradient(135deg, #289C78 0%, #1F6D54 100%);
}

.tab-content {
  display: none !important;
  background: white;
  border: 2px solid #289C78;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 2rem;
  min-height: 500px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .tab-content {
    padding: 1.5rem 1rem;
    min-height: 400px;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 14px;
  }
}

.tab-content.active {
  display: block !important;
}

/* Upload Drop Zone */
.upload-drop-zone {
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-drop-zone:hover {
  background: #E8F7F0;
}

.upload-cloud-icon {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .upload-cloud-icon {
    margin-bottom: 0.5rem;
  }
  
  .upload-drop-zone {
    padding: 1.5rem 1rem;
  }
}

.upload-drop-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 1rem;
}

.upload-drop-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5rem;
}

.upload-disclaimer {
  margin-top: 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 2rem;
}

.upload-button {
  background: linear-gradient(135deg, #289C78 0%, #1F6D54 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.upload-button:hover {
  opacity: 0.9;
}

#pasteTab {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#pasteTab .manual-input {
  width: 100%;
  min-height: 300px;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  resize: vertical;
}

#pasteTab #processData {
  margin: 1.5rem auto 0 auto;
  display: block;
}

/* Right Column */
.right-section {
  
  background: #E8F7F0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 40px;
  gap: 24px;
}

/* Steps Container */
.steps-container {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.step {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    border: 2px solid var(--primary);
    padding: 1.5rem;
    text-align: left;
    align-items: flex-start;
}

.step-icon-wrapper {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.step-text-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.step-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    align-items: flex-start;
}

.step-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  width: 100%;
  text-align: left;
  margin: 0;
}

.step-desc {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  margin: 0;
}

/* Call-to-Action Button */
.cta-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: var(--background);
  cursor: pointer;
  transition: background 0.3s;
}

.cta-button:hover {
  background: var(--hover);
}

/* Dynamic SVG */
.dynamic-svg-container {
  padding-bottom: 2.5rem;
}

/* Upload Section */
.upload-section {
  padding: 2.5rem;
  background-color: white;
  width: 90%;
}

.upload-label {
  display: flex;
  flex-direction: column;
  padding-bottom: 2.5rem;
}

.upload-label .upload-step {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1;
}

.upload-label .upload-subtext {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 22px;
  padding-top: 0.5rem;
}

/* Schedule Title/Name */
.schedule-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 2.5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 2.25rem;
}

.content-schedule-title {
  display: block;
}

.schedule-name-label {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.schedule-input-group {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.schedule-input-group input {
  width: 100%;
  /* Remove or adjust max-width if necessary */
  max-width: none;
  height: 54px;
  padding: 1rem 0.5rem;
  border: 1px solid #98A8B3;
  border-radius: 0.25rem;
  margin-top: 1rem;
  font-size: 16px; /* Prevent iOS zoom on focus */
}

.schedule-input-help {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1rem;
}

/* Input Area (Upload & Manual) */
.upload-input-area {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.upload-file-container,
.manual-input-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manual-input {
  height: 157px;
  border: 1px solid #1A1A1A;
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin-top: 1rem;
  font-size: 16px; /* Prevent iOS zoom on focus */
}

/* Upload Zone */
.upload-zone {
  height: 207px;
  margin-top: 1rem;
  border: 2px dashed #98A8B3;
  border-radius: 8px;
  padding: 2.5rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.3s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #289C78;
}

.upload-zone-title {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 22px;
}

.upload-zone-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-item-snap {
  display: none;
}

@media (max-width: 1024px) {
  .icon-item-snap {
    display: flex;
  }
}

.icon-item p {
  margin-top: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
}

/* Button Group */
.button-group {
  text-align: center;
}

.continue-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* Spinner */
#spinner {
  display: none;
  text-align: center;
  margin-top: 2rem;
}

.spinner-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.loader {
  border: 6px solid var(--accent);
  border-top: 6px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--accent);
  text-align: left;
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  width: 447px;
  height: 276px;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  align-items: center;
}

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

#modal-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: #000000;
  text-align: start;
}

.modal-close {
  width: 16px;
  height: 16px;
  color: #000000;
  background: transparent;
  border-radius: 50%;
  font-size: 32px;
  line-height: 16px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  border: 0px;
}

.modal-textarea {
  flex: 1;
  border: 1px solid #98A8B3;
  border-radius: 4px;
  padding: 16px 4px 4px 16px;
  background-color: #FFFFFF;
  resize: none;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  width: 100%;
}

.modal-submit {
  height: 40px;
  width: 103px;
  background-color: #289C78;
  color: #FFFFFF;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
}

/* Header and Footer */
.site-header {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--background);
  border-bottom: 1px solid #1A1A1A;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo svg {
  margin-right: 0;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Raleway', sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--hover);
}

.nav-links a:active  {
  color: var(--primary);
}

.nav-links .get-started-btn {
  background-color: var(--primary);
  color: #fff !important;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s;
}

.nav-links .get-started-btn:hover {
  background-color: var(--hover);
  color: #fff !important;
}

.nav-links .get-started-btn:active {
  background-color: var(--hover);
  color: #fff !important;
}

.site-footer {
  background: var(--background);
  text-align: center;
  padding-top: 20px;
}

.footer-line {
  max-width: 100%;
  height: 78px;
  padding: 0 24px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 160px;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #1A1A1A;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.manual-input-title {
  text-align: center;
}

#eventTable {
  width: 100%;
  min-height: 400px;
}

.content-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 100%;
}

.connect-area {
  /* padding: 4rem 20%; */
  /* text-align: center; */
  display: none;
}

.connect-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.info-block {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.info-text {
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.375rem;
  text-align: left;
}

/* LOGIN & CONSENT BOX */
.login-area {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.button-area {
  width: 25%;
  text-align: left;
}

.button-area-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* GOOGLE BUTTON */
.btn-google {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-google:hover {
  background: var(--hover);
}

/* LOGGED-IN USER BUTTON */
.btn-user {
  padding: 0.625rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: none;
  border-radius: 0.5rem;
}

/* CONSENT TEXT */
.consent-area {
  width: 25%;
  text-align: left;
}

.consent-text {
  font-family: Roboto, sans-serif;
  font-size: 0.75rem;
  line-height: 1.375rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ACTION BUTTONS */
.actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-cancel,
.btn-continue {
  flex: 1;
  display: inline-block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

.btn-cancel {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--accent);
}

.btn-continue {
  background: var(--primary);
  color: #fff;
}

.btn-continue:hover {
  background: var(--hover);
}

.upload-zone-desc {
  display: none;
}

.icon-item-svg {
  width: 70px;
  height: 70px;
}

.content-desc {
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
  margin-top: 2.5rem;
}

/* ------------ Mobile Responsive Overrides ------------ */
/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #1A1A1A;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
  pointer-events: none;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 80px 0 0 0;
  transition: right 0.3s ease;
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu {
  right: 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: #1A1A1A;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
  background-color: #f8f8f8;
}

.mobile-menu-item.logout-item {
  color: #dc3545;
}

.mobile-menu-item.logout-item:hover {
  background-color: #fff5f5;
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.menu-open {
  overflow: hidden;
}

.desktop-nav {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header {
    position: relative;
    z-index: 100;
    padding: 12px 24px 8px 24px;
  }

  .content-wrapper {
    padding: 1.5rem;
  }
  
  .logo-text {
    font-size: 48px;
    line-height: 1;
  }

  .nav-links a {
    font-size: 14px;
  }

  .header-logo {
    width: 40px;
    height: 56px;
  }

  .landing-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "tagline";
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .landing-section .left-section {
    order: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
  }

  .headline {
    font-size: clamp(22px, 5.5vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    max-width: 100%;
    word-break: keep-all;
  }

  .subheadline {
    font-size: 16px;
    margin-bottom: 0.25rem;
  }

  .landing-section .right-section {
    order: 2;
    width: 100%;
    margin-top: 0;
    height: auto;
  }
  
  .landing-section {
    gap: 0;
  }

  .steps-container {
    flex-direction: column;
    padding: 0;
    gap: 16px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
    font-size: 14px;
  }

  .step {
    text-align: left;
    align-items: flex-start;
    padding: 1rem;
  }

  .step-icon-wrapper {
    width: 104px;
    height: 104px;
  }

  .step-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    text-align: left;
  }

  .step-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .landing-section .tagline {
    order: 3;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 24px;
  }

  /* 2. Keep dynamicSVG visible between landing & upload */
  .dynamic-svg-container {
    display: none; /* Hide the SVG on mobile */
  }
  
  .landing-section .left-section {
    gap: 0;
    margin-bottom: 0;
    padding: 0;
  }
  
  .landing-section .right-section {
    margin-top: 0;
  }

  /* 3. Upload section → vertical, hide subtext, full‑width button */
  .upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0;
    margin-top: 0.25rem;
  }
  
  .content-wrapper {
    padding: 0.5rem 0.75rem 0 0.75rem;
  }
  
  .landing-section .left-section {
    margin-bottom: 0.5rem;
  }
  
  .landing-section .right-section {
    margin-top: 0;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
  }
  
  .upload-section {
    margin-top: 0;
    padding-top: 0;
    background-color: transparent !important;
  }
  
  .tab-container {
    margin-top: 0;
    margin-bottom: 0;
  }

  .upload-step {
    font-size: 20px !important;
    font-weight: 500;
  }

  .upload-label {
    padding: 0
  }

  .upload-subtext {
    display: none;
  }

  .schedule-title {
    flex-direction: column;
    font-size: 1rem;
    align-items: start;
  }

  .schedule-input-help {
    margin-top: 0.5rem;
  }

  .upload-input-area {
    flex-direction: column;
  }

  .upload-file-container {
    width: 100%;
    order: 1;
    align-items: start;
  }

  .manual-input-container {
    order: 2;
    width: 100%;
    align-items: start;
  }

  .manual-input {
    width: 100%
  }

  .upload-zone {
    height: auto;
    width: 100%;
  }

  .icon-item-snap {
    flex-direction: column;
    align-items: center;
  }

  .icon-item p {
    font-size: 14px;
  }

  .icon-item-snap p {
    margin-top: 0.5rem;
    font-size: 14px;
  }

  .upload-zone-desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
  }

  #processData {
    display: block;
    margin: 0 auto;
  }

  .icon-item-svg {
    width: 24px;
    height: 24px;
  }

  .footer-links {
    padding: 1rem;
  }

  .footer-links a {
    font-size: 12px;
  }

  /* 4. Content area → full‑page vertical scroll, table horizontal scroll */
  #contentArea {
    overflow-x: hidden;
    /* allow page scroll vertically */
    -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure continue button area is accessible and scrollable */
  .continue-area {
    position: relative;
    z-index: 1;
    min-height: auto;
  }

  .content-title {
    margin-bottom: 1rem;
    font-size: 20px;
  }

  .content-desc {
    display: none;
  }

  .content-schedule-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    margin-top: 1.5rem !important;
  }
  
  .schedule-name-label {
    font-size: 1rem;
    font-weight: 500;
  }

  #eventTable {
    overflow-x: auto;
    /* make container hug table height */
    max-height: none !important;
  }

  .continue-area {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .start-over-button {
    order: 2;
    width: 100%;
    border: 1px solid #289C78!important;    
    margin-top: 1rem;
    curosr: pointer;
  }

  .connect-button {
    order: 1;
    width: 100%!important;
    cursor: pointer;
  }

  /* force Tabulator to auto‑height on mobile */
  .tabulator {
    height: auto !important;
  }

  
  /* 5. Connect area → vertical flow */
  .connect-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .connect-title {
    font-size: 20px;
  }
  .info-svg {
    width: 23px;
    height: 20px;
  }

  .info-text {
    font-size: 1rem;
  }

  .login-area {
    flex-direction: column;
  }
  .button-area {
    width: 100%;
    text-align: center;
  }
  .button-area-title {
    font-size: 20px;
    text-align: center;
  }

  .btn-google {
    font-size: 14px;
    margin: 0 auto;
    display: block;
  }

  .consent-text {
    font-size: 14px;
  }
  .consent-area {
    width: 100%;
  }

  .success_svg {
      width: 40px!important;
      height: 40px!important;
  }
  .success-label {
      font-size: 1.5rem!important;
  }
  .success-message {
      display: flex;
      flex-direction: column!important;
      text-align: center;
  }
  .success-message p {
      font-size: 1.25rem!important;
  }
  .share-icon {
    width: 38px;
    height: 38px;
    }
    .share-title {
        font-size: 1.25rem;
    }
    .copy-btn {
        width: 100%;
    }
    .btn-outline {
        order: 1;
        width: 100%;
        background: #fff;
        color: var(--primary);
        border: 1px solid var(--primary);
    }
    .btn-another {
        order: 2;
        width: 100%;
        background: #fff!important;
        color: var(--primary)!important;
        border: 1px solid var(--primary)!important;
    }
    .action-buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .share-link-input {
        flex-direction: column;
    }
    .share-link-box {
        width: auto;
        display: flex;
        flex-direction: column!important;
        max-width: max-content !important;
    }
    .btn {
        padding: .5rem .5rem !important;
    }
    
    .shared-header-area {
        flex-direction: column!important;
        width: 100%!important;
        gap: 1rem!important;
    }
    .shared-title-area {
        flex-direction: column!important;
        gap: .5rem!important;
        text-align: center!important;
    }
    .shared-title {
        font-size: 1.5rem!important;
    }
    .shared-desc {
        font-size: 14px!important;
    }
    
    .shared-add-button {
        font-size: 14px!important;
    }
    .shared-info-area {
        margin-top: 1.5rem!important;
        padding: 1.25rem!important;
        gap: 1.5rem!important;
        flex-direction: column!important;
        
    }
    .shared-info-title {
        font-size: 14px!important;
    }
    .shared-info-content {
        font-size: 12px!important;
    }
    .shared-note-area {
        margin-top: 1.5rem!important;
        flex-direction: column!important;
        gap: 1.5rem!important;
        text-align: center!important;
    }
    .shared-note {
        font-size: 14px!important;
        height: 1rem!important;
    }
    .detail-header-area {
        flex-direction: column!important;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .detail-header {
        font-size: 1.5rem;
    }
    
    .detail-import-button {
        font-size: 1rem;
        width: 100%!important;
        height: 2.5rem!important;
    }
    
    .backTo {
        display: inline-block;
        padding: 0.75rem 1.25rem;
        background-color: #289C78;
        color: white !important;
        text-decoration: none;
        border-radius: 6px;
        font-size: 16px !important;
        font-weight: 600;
        min-height: 44px; /* Touch target size */
        text-align: center;
        transition: background-color 0.2s;
        margin-bottom: 1rem;
    }
    .backTo:hover {
        background-color: #1F6D54;
        color: white !important;
    }
    .detail-content-area {
        flex-direction: column!important;
        gap: 1.5rem;
        padding-bottom: 1.5rem!important;
    }
    .detail-content-label {
        font-size: 1rem!important;
    }
    .syncButton {
        width: 100%!important;
        font-weight: 600;
        font-size: 14px;
        height: 2.5rem!important;
    }
    .remove-modal-buttons {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    .remove-modal-cancel {
        width: auto !important;
        text-align: center;
    }
    .remove-modal-confirm-yes-calendar,
    .remove-modal-confirm-no-calendar {
        width: 100% !important;
    }
    .share-modal-link {
        flex-direction: column!important;
        gap: 1rem;
    }
    .share-modal-input {
        width: 100%!important;
    }
    .share-modal-copy {
        width: 100%!important;
    }
    .dashboard-label {
        font-size: 1.25rem!important;
    }
    .btn-import-new {
        width: 2.25rem!important;    
        height: 2.25rem!important;
        border-radius: 50%!important;
        padding: 0;        
        font-size: 0;      
        position: relative;
      }
    
      .btn-import-new::after {
        content: '+';
        font-size: 1.5rem;
        color: #fff;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        line-height: 1;
      }
      .tabulator .tabulator-header {
          font-weight: 500!important;
          font-size: 12px!important;
          height: 2.5rem!important;
        }
        
        .tabulator .tabulator-row {
          font-weight: 400!important;
          font-size: 12px!important;
          height: 4.25rem!important;
        }
    
    /* Dashboard Table Mobile Styles - Convert to Cards */
    .dashboard-table-wrapper {
        overflow-x: visible;
    }
    
    .dashboard-table {
        border: none;
    }
    
    .dashboard-table thead {
        display: none;
    }
    
    .dashboard-table tbody {
        display: block;
    }
    
    .dashboard-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #98A8B3;
        border-radius: 8px;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .dashboard-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #F0F3F4;
    }
    
    .dashboard-table tbody td:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
    }
    
    .dashboard-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text);
        font-size: 14px;
    }
    
    .dashboard-table tbody td:last-child::before {
        display: none;
    }
    
    .dashboard-actions {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
        width: 100%;
    }
    
    .dashboard-actions::before {
        content: "Actions";
        font-weight: 600;
        color: var(--text);
        font-size: 14px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .dashboard-actions .tab-btn {
        margin-right: 0;
        margin-bottom: 0;
        height: 2rem;
        padding: 0.375rem 0.75rem;
        font-size: 13px;
        white-space: nowrap;
        flex: 1 1 auto;
        min-width: 80px;
    }
    
    .no-schedules {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    #dashboard-section {
        padding: 1rem !important;
    }
    
    .myTableArea,
    .sharedTableArea {
        margin-top: 1rem;
    }
}

.success_label {
    font-family: 'Raleway', sans-serif;
    font-weight:500;font-size:2.5rem;line-height:100%;align-content:center;
}

.success_svg {
    width: 110px;
    height: 111px;
}

.start-over-button {
  height: 2.75rem;
  border: 0;
  background-color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: #289C78;
  font-weight: 600;
  font-size: 1rem;
  line-height: 100%;
  font-family: 'Raleway', sans-serif;
}

.connect-button {
  height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  width: 117px;
  background-color: #289C78;
  color: #FFFFFF;
  padding: 0.625rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 100%;
}
.info-svg {
  width: 27px;
  height: 39px;
}
.import-success {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.success-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.success-svg { width: 110px; height: 111px; }
.success-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
}
.success-message {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.success-message p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  line-height: 2.25rem;
  text-align: center;
}

.view-calendar {
  margin-left: 1rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.share-link-box {
  width: 100%;
  max-width: 55%;
  background: var(--accent);
  border: 1px solid var(--primary);
  border-radius: .5rem;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.share-link-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.share-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
}

.share-link-input {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}
.share-icon {
    width: 38px;
    height: 38px;
}
.share-input {
  flex: 1;
  padding: .75rem;
  border: 1px solid var(--primary);
  border-radius: .5rem;
}

.share-info {
  list-style: none;
  padding-left: 1rem;
}

.share-info li::before {
  content: '✔';
  color: var(--text);
  margin-right: .5rem;
}

.action-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  border-radius: .5rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.copy-btn {
  background: var(--primary);
  color: #fff;
  border: 0;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-another {
  background: var(--primary);
  color: #fff;
  border: 0;
}

.shared-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
}

.shared-header-area {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}
.shared-title-area {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.shared-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--text);
}
.shared-desc {
    fony-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    
}

.shared-add-button {
    border-radius: .5rem;
    padding: 0.625px 1.5rem;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    height: 2.5rem;
    border: 0;
    cursor: pointer;
}
.shared-info-area {
    margin-top: 2.5rem;
    background-color: #E8F7F0;
    padding: 2.5rem;
    gap: 74px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.shared-info-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.shared-info-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    border-bottom: 1px solid #303030;
}
.shared-info-content {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
}
.shared-note-area {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
}
.shared-note {
    font-weight:600;
    font-size: 14px;
    color: var(--text);
    height: 1rem;
}
.dashboard-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.dashboard-label {
    font-family: 'Raleway',sans-serif;font-weight:500;font-size:2.5rem;
}
.btn-import-new{
    background-color: var(--primary);
    color: #fff;
    border-radius: .5rem;
    border: 0;
    height: 2.5rem;
    width: 10rem;
}
.myTableArea {
    width: 100%;
    border: 1px solid #98A8B3;
    border-radius: 4px;
}
.myTableLabel {
    padding: 1rem;
    font-family: 'Roboto', sans-serif;font-size: 1.5rem;font-weight:500;
}
.mySyncedTable {
    width: 100%;
}
.sharedTableArea {
    width: 100%;
    border: 1px solid #98A8B3;
    border-radius: 4px;
}
.sharedTableLabel {
    padding: 1rem;
    font-family: 'Roboto', sans-serif;font-size: 1.5rem;font-weight:500;
}
.sharedWithMeTable {
    width: 100%;
}

/* Dashboard Table Styles */
.dashboard-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
}

.dashboard-table thead {
    background-color: #F0F3F4;
}

.dashboard-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid #98A8B3;
}

.dashboard-table td {
    padding: 0.75rem 1rem;
    font-weight: 400;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--accent);
}

.dashboard-table tbody tr:hover {
    background-color: #F9F9F9;
}

.dashboard-actions {
    white-space: nowrap;
}

.dashboard-actions .tab-btn {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.no-schedules {
    padding: 2rem;
    text-align: center;
    color: #98A8B3;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.tab-btn {
  margin-right: .5rem;
  height: 1.375rem;
  padding: .25rem .5rem;
  border: 1px solid var(--primary);
  border-radius: .5rem;
  background: #fff;
  color: var(--primary);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

/* Remove modal */
.remove-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.remove-modal-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: .5rem;
  width: 90%; max-width: 400px;
  text-align: center;
}
.remove-modal-message {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}
.remove-modal-warning {
    margin-top: .5rem;
    color: var(--text);
    text-align: start;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}
.remove-modal-cancel {
    background: none;
    border: none;
    color: var(--primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
}
.remove-modal-cancel:hover {
    text-decoration: none;
}
.remove-modal-confirm {
    color: #fff;
    background-color: var(--primary);
    border: 0;
    border-radius: .5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    width: 8.75rem;
    height: 2.5rem;
}
.remove-modal-calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.remove-modal-confirm-yes-calendar,
.remove-modal-confirm-no-calendar {
    height: 2.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}
.remove-modal-confirm-yes-calendar:hover,
.remove-modal-confirm-no-calendar:hover {
    background: var(--primary);
    color: #fff;
}
.remove-modal-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

/* Share modal */
.share-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.share-modal-title {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}
.share-modal-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: .5rem;
  width: 90%;
  max-width: 600px;
}
.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.share-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.remove-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.share-modal-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
}
.share-modal-logo {
    display: flex;
    flex-direction: row;
    gap: .5rem;
}
.share-modal-icon {
    width: 1.5rem;
    height: 2rem;
}
.share-modal-detail {
  background-color: #E8F7F0;
  border-radius: .5rem;
  padding: 1.5rem;
  margin-top: 1rem;
}
.share-modal-link {
  display: flex;
  margin-top: .5rem;
}
.share-modal-input {
  flex: 1;
  margin-right: .5rem;
  padding: .5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--primary);
  color: var(--text);
}
.share-modal-copy {
  padding: .5rem 1rem;
  background: #289C78;
  border-radius: .5rem;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 7.5rem;
  height: 2.5rem;
}

.detail-header-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 2.5rem;
}

.detail-header {
    font-family: 'Raleway', sans-serif;    
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--text);
}
.detail-content-label {
    font-size: 1.25rem;
}
.detail-content-label .schedule-title-large {
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-import-button {
    border-radius: .5rem;
    color: #fff;
    background-color: var(--primary);
    padding: 10px 1.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    height: 2.75rem;
    width: 14.875rem;
    border: 0;
}
.backTo {
    display: inline-block;
    height: auto;
    width: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: #289C78;
    transition: color 0.2s;
}

.backTo:hover {
    color: #1F6D54;
}
.detail-content-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 2.5rem;
}
.detail-content-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    
}
.syncButton {
    height: 2.75rem;
    width: 5rem;
    border: 1px solid var(--primary);
    background-color: #fff;
    border-radius: .5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
}

.tabulator .tabulator-header {
  background-color: #F0F3F4;
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 17px;
  height: 2.25rem;
}

/* All normal rows */
.tabulator .tabulator-row {
  background-color: #fff;
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  height: 2rem;
}


.tabulator .tabulator-row.inactive {
  color: #98A8B3 !important;
}

.tabulator {
  border: none !important;
  border-radius: .5rem;
}

/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  background: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
}

.loading-content .loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

/* How it Works Wrapper - 2 Column Layout */
.how-it-works-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.how-it-works-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Steps Section */
#steps-section {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

#steps-section .tagline {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Video Section */
.video-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.video-section video {
  width: 940px;
  height: 788px;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .how-it-works-wrapper {
    padding: 1rem;
  }
  
  .how-it-works-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .video-section {
    margin: 0;
  }
  
  .video-section video {
    width: 100%;
    height: auto;
  }
}