:root {
  --utm-primary-color: #663399;     /* Royal Purple */
  --utm-accent-color: #990000;      /* Accent (used for hover or alerts) */
  --utm-text-color: #333;
  --utm-bg-color: #fff;
  --utm-border-color: #e5e5e5;
}

.utm-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.utm-lock {
  margin-left: 6px;
  color: #999;
}


.cta-button {
  background: var(--utm-primary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #5a189a;
}
.plan-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 24px;
}
/* Add signup, pricing, testimonial, and table styles as needed */
    .pricing-container {
      max-width: 1200px;
      margin: 0 auto;
      text-align: center;
    }
    .pricing-container h1 {
      margin-bottom: 10px;
      color: #4B4453;
    }
    .pricing-container p.subtitle {
      color: #666;
      margin-bottom: 40px;
    }
    .billing-toggle {
      margin-bottom: 30px;
    }
    .billing-toggle button {
      padding: 10px 20px;
      border: 1px solid #ccc;
      background: #fff;
      cursor: pointer;
      margin: 0 5px;
      border-radius: 4px;
      font-weight: bold;
    }
    .billing-toggle button.active {
      background: #663399;
      color: #fff;
      border-color: #663399;
    }

    .pricing-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    .plan-card {
      background: #ffffff;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 24px;
      flex: 1;
      min-width: 280px;
      max-width: 320px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
      position: relative;
    }

    .plan-card.popular {
      border: 2px solid #663399;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
      background: #ede9f9;
    }

    .plan-card.popular::before {
      content: 'MOST POPULAR';
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: #663399;
      color: #fff;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: bold;
      border-radius: 4px;
    }

    .plan-title {
      font-size: 20px;
      margin-bottom: 10px;
      color: #4B4453;
    }

    .plan-price {
      font-size: 26px;
      font-weight: bold;
      margin-bottom: 16px;
    }

    .plan-price span {
      font-size: 14px;
      color: #777;
    }

    .feature-list {
      list-style: none;
      padding: 0;
      text-align: left;
      margin: 20px 0;
    }

    .feature-list li {
      margin: 8px 0;
      font-size: 15px;
    }

    .feature-list li::before {
      content: "✔️";
      margin-right: 8px;
      color: #38a169;
    }

    .feature-list li.unavailable::before {
      content: "❌";
      color: #e53e3e;
    }

    .feature-list li.unavailable {
      color: #aaa;
    }

    .cta-button {
      background: #663399;
      color: #fff;
      padding: 12px 20px;
      border: none;
      border-radius: 6px;
      text-decoration: none;
      display: inline-block;
      margin-top: 10px;
      font-weight: bold;
      transition: background 0.3s ease;
    }

    .cta-button:hover {
      background: #5a189a;
    }

    @media (max-width: 768px) {
      .pricing-grid {
        flex-direction: column;
        align-items: center;
      }
    }

    .custom-contact {
      margin-top: 40px;
      font-size: 14px;
      color: #555;
    }

    .custom-contact a {
      color: #663399;
      text-decoration: underline;
    }

    .feature-compare {
      margin-top: 60px;
    }

    .feature-compare h2 {
      margin-bottom: 20px;
      color: #4B4453;
    }

    .feature-table-wrapper {
      overflow-x: auto;
    }

    .feature-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 600px;
    }

    .feature-table thead {
      background: #ede9f9;
    }

    .feature-table th, .feature-table td {
      padding: 12px;
      text-align: center;
      border-bottom: 1px solid #ddd;
    }

    .feature-table td:first-child, .feature-table th:first-child {
      text-align: left;
    }
    /* Billing toggle switch */

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #663399;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
/* UTM Manager Dashboard Layout */
.utm-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #f7f7f7;
  font-family: sans-serif;
}


/* Main content area */
.utm-content-area {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}




/* Mobile styles */
@media (max-width: 768px) {
  .utm-dashboard-wrapper {
    flex-direction: column;
  }

  .utm-sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    width: 250px;
    background-color: #990000;
    padding-top: 3.5rem;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
  }

  .utm-sidebar.open {
    left: 0;
  }

  .utm-content-area {
    padding: 1rem;
  }

  .utm-sidebar-toggle {
    display: block;
  }
}
/* Force parent to allow flex layout */
.elementor-widget-shortcode > .elementor-widget-container {
  display: contents;
}

/* Ensure your wrapper flex still applies */
.utm-dashboard-wrapper {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
  font-family: sans-serif;
}

/* Scoped only to pages with this class */
.utm-dashboard-page .elementor-column.elementor-col-100 {
  max-width: 100vw !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
}

.utm-dashboard-page .utm-dashboard-wrapper {
  display: flex;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}
.utm-dashboard-section {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
}
/* Apply only to UTM Dashboard pages */
.utm-dashboard-page .elementor-container,
.utm-dashboard-page .elementor-section,
.utm-dashboard-page .elementor-row,
.utm-dashboard-page .elementor-column,
.utm-dashboard-page .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.utm-dashboard-page .utm-dashboard-wrapper {
  display: flex;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}




.utm-dashboard-page {
  max-width: 100vw !important;
  width: 100vw !important;
  margin: 0 auto !important;
  padding: 0 !important;
}


/* Applies when utm-dashboard-page is parent */
.utm-dashboard-page .ast-container,
.ast-container .utm-dashboard-page {
  max-width: 100vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.utm-dashboard-page .site-content,
.utm-dashboard-page .ast-container,
.utm-dashboard-page .site-main,
.utm-dashboard-page .entry-content,
.utm-dashboard-page .elementor-section-wrap {
  max-width: 100vw !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}
body.home .main-header-bar {
  padding-left: 1rem;
  padding-right: 1rem;
}

.utm-dashboard-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background-color: #990099; /* royal/light purple */
  color: white;
  padding: 12px 20px;
  justify-content: flex-start;
  align-items: center;
}

.utm-dashboard-topnav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.utm-dashboard-topnav a:hover {
  background-color: #b366cc;
}
.utm-dashboard-page .utm-dashboard-topnav {
  max-width: 100%;
  margin: 0;
}
.utm-dashboard-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 20px;
  font-family: sans-serif;
  flex-wrap: wrap;
}

.utm-nav-left .utm-logo {
  font-weight: bold;
  font-size: 18px;
  color: #990000;
  text-decoration: none;
}

.utm-nav-center .utm-promo {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
}

.utm-nav-right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.utm-nav-right a {
  text-decoration: none;
  color: #990000;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.utm-nav-right a:hover {
  color: #b30000;
}

.utm-user-name {
  font-weight: bold;
  color: #444;
  font-size: 14px;
}

.utm-dashboard-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--utm-bg-color);
  border-bottom: 1px solid var(--utm-border-color);
  padding: 10px 20px;
  font-family: sans-serif;
  flex-wrap: wrap;
  padding: 10px 32px 10px 20px;

}

.utm-nav-left .utm-logo {
  font-weight: bold;
  font-size: 18px;
  color: var(--utm-primary-color);
  text-decoration: none;
}

.utm-nav-center .utm-promo,
.utm-nav-center .utm-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--utm-primary-color);
  white-space: nowrap;
}

.utm-cta {
  padding: 6px 12px;
  background-color: var(--utm-primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 15px;
  font-size: 13px;
}

.utm-cta:hover {
  background-color: #4b2882;
}

.utm-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.utm-nav-right a {
  text-decoration: none;
  color: var(--utm-primary-color);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.utm-nav-right a:hover {
  color: var(--utm-accent-color);
}

/* 👤 Dropdown styling */
.utm-user-dropdown {
  position: relative;
  cursor: pointer;
}

.utm-user-name {
  font-weight: bold;
  color: var(--utm-text-color);
  font-size: 14px;
}

.utm-dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid var(--utm-border-color);
  border-radius: 4px;
  min-width: 140px;
  z-index: 999;
}

.utm-dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: var(--utm-primary-color);
  font-size: 13px;
  border-bottom: 1px solid var(--utm-border-color);
}

.utm-dropdown-menu a:hover {
  background-color: #f9f9f9;
}

/* Show dropdown on hover */
.utm-user-dropdown:hover .utm-dropdown-menu {
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .utm-dashboard-topnav {
    flex-direction: column;
    align-items: flex-start;
  }

  .utm-nav-right {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    gap: 10px;
  }

  .utm-nav-center {
    margin: 10px 0;
  }
}


.utm-resources-landing {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}
.utm-resource-block {
  border-bottom: 1px solid #ddd;
  padding: 1.5rem 0;
}
.utm-resource-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.utm-resource-block p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.utm-btn {
  display: inline-block;
  background-color: #990000;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
}
.utm-btn:hover {
  background-color: #bb0000;
}
.utm-divider {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  margin: 2rem 0;
}
.utm-resources-landing {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  font-family: system-ui, sans-serif;
}

.utm-page-h1 {
  text-align: center;
  margin-bottom: 30px;
}
.utm-page-h1 h1 {
  font-size: 1.75rem;
  color: #4B4453;
  margin: 0;
}

#utm-template-library {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.utm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.utm-filter-bar input,
.utm-filter-bar select {
  padding: 8px;
  font-size: 1rem;
}

.utm-template-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.utm-template-card {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 10px;
  background: #fafafa;
  transition: box-shadow 0.2s;
}

.utm-template-card:hover {
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.utm-template-card h3 {
  margin-top: 0;
  color: #990000;
}

.utm-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.utm-template-actions .btn {
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  background: #990000;
  color: white;
  border-radius: 5px;
}
/* Modal overlay handles full-screen centering */
.utm-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal dialog box */
.utm-modal {
  background: var(--utm-bg-color, #fff);
  color: var(--utm-text-color, #333);
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 20px;
  border: 1px solid var(--utm-border-color, #ccc);
}

/* Close button */
.utm-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: var(--utm-primary-color, #990000);
  background: none;
  border: none;
  cursor: pointer;
}

/* Inner body */
.utm-modal-body {
  padding-top: 10px;
  text-align: center;
}

#utm-template-library .utm-filter-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

#utm-template-library .utm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
}

#utm-template-library .utm-template-actions-header {
  flex-shrink: 0;
  margin-left: auto;
}

#utm-template-library .utm-template-actions-header .cta-button {
  background: var(--utm-primary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

#utm-template-library .utm-template-actions-header .cta-button:hover {
  background: #5a189a;
}
.utm-filter-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.utm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
}

.utm-template-actions-header {
  flex-shrink: 0;
  align-self: center; /* <-- This ensures vertical alignment */
}
.utm-modal-body form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.utm-modal-body input,
.utm-modal-body textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid var(--utm-border-color);
  border-radius: 5px;
}

.utm-modal-body button.cta-button {
  align-self: flex-end;
  margin-top: 10px;
}
/* Modal overlay for full-screen centering */
.utm-modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal container */
.utm-modal {
  background: #fff;
  color: #333;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Modal buttons */
.utm-modal button {
  margin: 10px 8px 0;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.utm-modal #confirm-delete {
  background-color: #990000;
  color: white;
}

.utm-modal #cancel-delete {
  background-color: #ccc;
  color: black;
}


