/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #D3D3D3	;
  color: #000000;
}


/* =============== heading style =============== */

.app-title {
  font-size: 40px;
  font-weight: 800;
  color: #064e3b; /* emerald-900 */
}

.app-title span {
  color: #064e3b; /* pro green */
}

.app-subtitle {
  font-size: 15px;
  color: #064e3b;
  margin-bottom: 20px;
}



/* ================= TOPBAR ================= */
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;  
  background: #ffffff;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}



/* ================= HERO ================= */
.hero {
  padding: 26px 18px 10px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
}

.hero p {
  margin: 6px 0 16px;
  color: #000000;
}

.hero input {
  width: 100%;
  max-width: 520px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #04ab17;
  font-size: 15px;
}

/* ================= LAYOUT ================= */
.layout {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 60px);
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #D3D3D3, #f8fafc);
  border-right: 1px solid #e5e7eb;

  padding: 20px 14px 40px;

  position: sticky;
  top: 60px;

  height: calc(100vh - 60px);
  box-sizing: border-box; /* ✅ CRITICAL FIX */

  overflow-y: auto;
  overflow-x: hidden;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  transition: transform 0.3s ease;
}



/* Optional: hide scrollbar but keep scroll */
.sidebar::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Hidden state (used by menu toggle) */
.sidebar.hidden {
  transform: translateX(-100%);
}

/* Sidebar title */
.side-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #000000;
  margin-bottom: 12px;
  padding-left: 6px;
  text-transform: uppercase;
}



/* Sidebar nav */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: #98df94;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

/* Sidebar links */
.side-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  background: transparent;
  color: #334155;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-link::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 6px;
  background: transparent;
}

/* fixed icon column */
.side-link .icon {
  width: 28px;          /* ⭐ THIS fixes alignment */
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* text column */
.side-link .label {
  text-align: left;
  white-space: nowrap;
}


.side-link.active {
  background: #eef2ff;
  border-left: 3px solid #2563eb;
  border-radius: 10px;
}


.side-link:hover {
  background: rgba(255,255,255,0.6);
}


.side-link.active {
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 600;
}

.side-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ================= MAIN ================= */
.main {
  flex: 1;
  padding: 28px 24px;
  max-width: 1200px;
}

/* ================= TOOL GRID ================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* ================= TOOL CARD ================= */
.tool-card {
  background: #4b6050;
  color:#ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.tool-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* ===== Link Addons URL (2-line clamp FIX) ===== */
.tool-card p {
  white-space: normal !important;   /* 👈 THIS IS THE KEY */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  line-height: 1.4;
  max-height: 2.8em;

  word-break: break-word;
  overflow-wrap: anywhere;
}



/* ================= BADGES ================= */
.badges {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.badge.free {
  background: #ecfeff;
  color: #155e75;
}

.badge.paid {
  background: #ecfeff;
  color: #155e75;
}

.badge.redirect {
  background: #eef2ff;
  color: #3730a3;
}

.badge.internal {
  background: #dcfce7;
  color: #166534;
}

/* ================= CTA ================= */
.tool-card a {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tool-card a:hover {
  background: #1d4ed8;
}

/* ================= TRUST ================= */
.trust {
  background: #D3D3D3;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

.trust small {
  display: block;
  color: #64748b;
  margin-top: 4px;
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #64748b;
}

/* ================= OVERLAY ================= */
/* default overlay should NOT block clicks */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  z-index: 150;
}

.overlay.show {
  display: block;
}



/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .layout {
    flex-direction: column;
  }

  .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      z-index: 200;
      transform: translateX(-100%);
      background: linear-gradient(180deg, #D3D3D3, #f8fafc);
    }

    /* 🔥 THIS WAS MISSING */
    .sidebar.show {
      transform: translateX(0);
    }

  .main {
    padding: 16px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}


/* Menu button hidden by default (desktop) */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Show menu button only on mobile */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
}


/* ===============================
   PLAN SELECTOR
   =============================== */

.plan-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 30px;
  padding: 12px 16px;
  max-width: 400px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  justify-content: center;
}

.plan-label {
  font-weight: 600;
  color: #374151;
  margin-right: 6px;
}

.plan-btn {
  /*border: 1px solid #d1d5db;*/
  background: #f9fafb;
  color: #111827;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.plan-btn:hover {
  background: #e5e7eb;
}

.plan-btn.active {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}


/* ================= BUTTON BASE ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;

  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;

  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
}

/* ================= ENABLED ================= */
.btn.open {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  cursor: pointer;
}

.btn.open:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ================= LOCKED (SAME SHAPE) ================= */
.btn.locked {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #6b7280;
  cursor: not-allowed;
}

/* Remove native disabled opacity */
.btn.locked:disabled {
  opacity: 1;
}

/* ================= TOOL CARD LOCKED ================= */
.tool-card.locked {
  opacity: 0.75;
}


//already pro access css
.access-box {
  margin-top: 20px;
  text-align: center;
}
.access-box input {
  padding: 10px;
  width: 260px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.access-box button {
  margin-left: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #22c55e;
  color: #fff;
  cursor: pointer;
}


//side link addons css

.side-section {
  margin-top: 24px;          /* 👈 space from tools */
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.side-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  margin: 10 12px 8px;
  letter-spacing: 0.05em;
}


//link addons modal css

/* ===== LINK ADDONS VIEW ===== */
#linkAddonsView {
  height: calc(100vh - 260px);
  display: flex;
  flex-direction: column;
}

.addons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.addons-list {
  overflow-y: auto;
  padding-right: 6px;
}

/* Single row */
.addon-row {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr auto auto;
  gap: 12px;
  align-items: center;

  background: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.addon-row a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.addon-remove {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}


//search inputs clear css


.search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.search-wrap input {
  width: 100%;
  padding: 14px 42px 14px 14px; /* room for X */
  border-radius: 12px;
}

.clear-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
  display: none;
  z-index: 5;            /* 🔥 FIX */
  pointer-events: auto; /* 🔥 FIX */
}

.clear-search:hover {
  color: #111827;
}


//for printer


.printmodal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.printmodal.hidden {
  display: none;
}

.printmodal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.printmodal-content h3 {
  margin-top: 0;
}

.printmodal-actions {
  display: padding-left;
  justify-content: padding-left;
  gap: 10px;
  margin-top: 15px;
}



//ai agent styles

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card-header h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.card-desc {
  font-size: 13px;
  //color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge.ai {
  background: #0f172a;
  color: #fff;
}

.badge.pro {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.card-action-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.card-action-btn:active {
  transform: scale(0.98);
}

/* ================= AI AGENT MODAL ================= */

.agent-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.agent-modal.hidden {
  display: none;
}

.agent-modal-content {
  background: #ffffff;
  width: 420px;
  max-width: 92%;
  padding: 20px 22px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: agentPop 0.25s ease;
}

@keyframes agentPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

.agent-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.agent-desc {
  font-size: 14px;
  color: #475569;
  margin: 10px 0 14px;
}

.agent-file {
  width: 100%;
  margin-bottom: 10px;
}

.privacy-note {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}

.agent-actions {
  text-align: right;
}

.agent-status {
  margin-top: 12px;
  font-weight: 600;
}

/*  for collapsable plan and access code details */

.plan-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px; /* pill shape */
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(79,70,229,0.25);
  transition: all 0.25s ease;
}

.plan-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(79,70,229,0.35);
}

.plan-toggle-btn .arrow {
  font-size: 16px;
  transition: transform 0.25s ease;
}

/* Arrow rotates UP when open */
.plan-toggle-btn.open .arrow {
  transform: rotate(180deg);
}




.collapsible {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.collapsible.closed {
    max-height: 0;
    opacity: 0;
}

/* ================= BOOKING IMAGE CARDS ================= */

.booking-card-bg {
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.booking-card-bg:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.booking-overlay {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* 🌗 top dark → bottom transparent */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.85)
  );
}

.booking-top {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-icon {
  font-size: 26px;
}

.booking-bottom {
  padding: 14px;
  color: #fff;
}

.booking-bottom h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.booking-bottom p {
  margin: 6px 0 10px;
  font-size: 13px;
  opacity: 0.9;
}

.booking-bottom .card-action-btn {
  background: #ffffff;
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
