:root{
  --primary:#7c5cff;
  --bg:white;
  --card:#171923;
  --text:#ffffff;
  --muted:#b6b8c5;
  --border:rgba(255,255,255,0.08);
  --sidebar-width:220px; /* <-- define sidebar width */
  --accent: #eb6835;
}

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

body{
  background:var(--bg);
  color:var(--text);
  font-family:'DM Sans',sans-serif;
  padding:40px;
}
/* ================= SIDEBAR ================= */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  border-radius: 0 10px 10px 0;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar a {
  display: block;
  padding: 12px;
  color: #b8c5d6;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  background: #333;
} */

/* sidebar */

#menuToggle {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  color: #333;
}

.sidebar {
  width: 220px;
  height: 100vh;
  background:  rgb(63, 81, 119);
  color: #fff;
  position: fixed;
  top: 0;
  padding: 20px 15px;
  transition: 0.3s ease;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 22px;
  letter-spacing: 1px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ccc;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar ul li a i {
  font-size: 18px;
}

.sidebar ul li a p {
  margin: 0;
  font-size: 15px;
}

.sidebar ul li a:hover {
  background: #c7d0ea;
  color: #151515;
}

.sidebar ul li a.active {
  background: #4e73df;
  color: #fff;
}

.sidebar.hide {
  display: none;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: whitesmoke;
}


/* Logo */
.logo {
  font-size: 24px;
  font-weight: 700;
  color: black;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  font-size: 14px;
}

.search-bar .search-icon {
  color: #cbd5e1;
}

.search-bar .search-kbd {
  background: #1e293b;
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Right-side buttons */
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.outline-nav-btn {
  background: transparent;
  border: 1px solid peru;
  color:black;
}

.outline-nav-btn:hover {
  background: peru;
  color: black;
}

.primary-nav-btn {
  background: peru;
  color: black;
}

.primary-nav-btn:hover {
  background: #4f46e5;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.theme-toggle:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-bar {
    width: 100%;
    justify-content: space-between;
  }
}
/* Main content wrapper */
.main {
  margin-left: var(--sidebar-width); /* push content to the right of sidebar */
  padding: 40px 20px;
}

/* Component cards grid */
.component-card,
.tooltip-card,
.form-card {
  margin-left: 0; /* ensure cards align within main */
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}


.page-header h1{
  font-family:'Syne',sans-serif;
  font-size:3rem;
  margin-bottom:60px;
}

.page-header p{
  color:var(--muted);
  max-width:650px;
  margin:auto;
  line-height:1.7;
}

.tooltip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
}


.tooltip-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:40px;
  text-align:center;
  min-height: 200px;
  transition:0.35s ease;
  position:relative;
  overflow:hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tooltip-card:hover{
  transform:translateY(-6px);
  border-color:rgba(124,92,255,0.5);
  box-shadow:0 20px 40px rgba(0,0,0,0.4);
}

.tooltip-card h3{
  margin-top:20px;
  margin-bottom:10px;
  font-size:1.4rem;
}

.tooltip-card p{
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.6;
}

.demo-area{
  margin-top:30px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100px;
}

.tooltip-wrapper{
  position:relative;
  display:inline-block;
}

.tooltip-btn{
  padding:14px 24px;
  border:none;
  border-radius:14px;
  background:var(--primary);
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.tooltip-btn:hover{
  transform:scale(1.04);
}

.tooltip{
  position:absolute;
  background:#fff;
  color:#111;
  padding:10px 16px;
  border-radius:10px;
  font-size:0.85rem;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  transition:0.3s ease;
  z-index:10;
}

.tooltip-wrapper:hover .tooltip{
  opacity:1;
  visibility:visible;
}

/* TOP */
.tooltip-top{
  bottom:120%;
  left:50%;
  transform:translateX(-50%);
}

.tooltip-top::after{
  content:"";
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:8px solid transparent;
  border-top-color:#fff;
}

/* BOTTOM */
.tooltip-bottom{
  top:120%;
  left:50%;
  transform:translateX(-50%);
}

.tooltip-bottom::after{
  content:"";
  position:absolute;
  bottom:100%;
  left:50%;
  transform:translateX(-50%);
  border:8px solid transparent;
  border-bottom-color:#fff;
}

/* LEFT */
.tooltip-left{
  right:120%;
  top:50%;
  transform:translateY(-50%);
}

.tooltip-left::after{
  content:"";
  position:absolute;
  left:100%;
  top:50%;
  transform:translateY(-50%);
  border:8px solid transparent;
  border-left-color:#fff;
}

/* RIGHT */
.tooltip-right{
  left:120%;
  top:50%;
  transform:translateY(-50%);
}

.tooltip-right::after{
  content:"";
  position:absolute;
  right:100%;
  top:50%;
  transform:translateY(-50%);
  border:8px solid transparent;
  border-right-color:#fff;
}

/* GLASS TOOLTIP */
.glass{
  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(12px);
  color:#fff;
  border:1px solid rgba(255,255,255,0.2);
}

.glass::after{
  border-top-color:rgba(255,255,255,0.15);
}

/* GRADIENT TOOLTIP */
.gradient-tooltip{
  background:linear-gradient(135deg,#7c5cff,#ff4fd8);
  color:#fff;
}

.gradient-tooltip::after{
  border-top-color:#7c5cff;
}

@media(max-width:768px){

  body{
    padding:24px;
  }

  .page-header h1{
    font-size:2.2rem;
  }

}

/* =========================
   TOOLTIP PAGE — UIVERSE

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

:root{
  --primary:#7c3aed;
  --secondary:#2563eb;
  --dark:#0f172a;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:rgba(255,255,255,0.08);
}

body{
  min-height:100vh;
  font-family:'DM Sans',sans-serif;
  background:
  radial-gradient(circle at top left,#7c3aed22,transparent 30%),
  radial-gradient(circle at bottom right,#2563eb22,transparent 30%),
  var(--dark);
  color:var(--text);
  padding:80px 20px;
  overflow-x:hidden;
}

/* =========================
   PAGE HEADER

.page-header{
  text-align:center;
  max-width:750px;
  margin:auto;
  margin-bottom:70px;
}

.page-header h1{
  font-size:3.8rem;
  margin-bottom:20px;
  font-family:'Syne',sans-serif;
  font-weight:800;
  line-height:1.1;
  background:linear-gradient(135deg,#ffffff,#8b5cf6,#3b82f6);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.page-header p{
  color:var(--muted);
  line-height:1.9;
  font-size:1.08rem;
}

/* =========================
   GRID

.tooltip-grid{
  width:min(1300px,95%);
  margin:auto;

  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:30px;
}

/* =========================
   CARD

.tooltip-card{
  position:relative;
  overflow:hidden;

  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);

  border-radius:28px;
  padding:38px 30px;

  backdrop-filter:blur(18px);

  transition:.4s ease;

  box-shadow:
  0 10px 30px rgba(0,0,0,0.18);
}

.tooltip-card:hover{
  transform:translateY(-10px);
  border-color:rgba(255,255,255,0.15);

  box-shadow:
  0 25px 60px rgba(0,0,0,0.35);
}

/* Glow Effect */
.tooltip-card::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  background:linear-gradient(135deg,#7c3aed,#2563eb);
  border-radius:50%;
  filter:blur(90px);
  opacity:.15;
  top:-70px;
  right:-70px;
}

/* =========================
   ICON

.tooltip-card i{
  width:78px;
  height:78px;

  display:grid;
  place-items:center;

  border-radius:22px;

  background:
  linear-gradient(135deg,var(--primary),var(--secondary));

  color:#fff;

  margin-bottom:24px;

  box-shadow:
  0 18px 35px rgba(124,58,237,0.35);
}

/* =========================
   TEXT

.tooltip-card h3{
  font-size:1.55rem;
  margin-bottom:14px;
  font-family:'Syne',sans-serif;
}

.tooltip-card p{
  color:var(--muted);
  line-height:1.8;
  margin-bottom:35px;
}

/* =========================
   DEMO AREA

.demo-area{
  min-height:160px;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   BUTTON

.tooltip-btn{
  border:none;
  outline:none;

  padding:14px 28px;

  border-radius:14px;

  background:
  linear-gradient(135deg,var(--primary),var(--secondary));

  color:#fff;
  font-weight:700;
  font-size:1rem;

  cursor:pointer;

  transition:.35s ease;

  box-shadow:
  0 12px 25px rgba(124,58,237,.3);
}

.tooltip-btn:hover{
  transform:translateY(-4px);
}

/* =========================
   TOOLTIP WRAPPER

.tooltip-wrapper{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   TOOLTIP BASE

.tooltip{
  position:absolute;

  padding:12px 18px;

  border-radius:14px;

  background:#111827;
  color:#fff;

  font-size:.92rem;
  font-weight:500;

  white-space:nowrap;

  opacity:0;
  visibility:hidden;

  transition:.35s ease;

  pointer-events:none;

  border:1px solid rgba(255,255,255,0.08);

  z-index:20;
}

/* Show Tooltip */
.tooltip-wrapper:hover .tooltip{
  opacity:1;
  visibility:visible;
}

/* =========================
   TOOLTIP ARROW

.tooltip::after{
  content:"";
  position:absolute;
  width:12px;
  height:12px;
  background:inherit;
  transform:rotate(45deg);
}

/* =========================
   TOP

.tooltip-top{
  bottom:calc(100% + 18px);
  left:50%;
  transform:translateX(-50%) translateY(10px);
}

.tooltip-top::after{
  left:50%;
  bottom:-6px;
  transform:translateX(-50%) rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-top{
  transform:translateX(-50%) translateY(0);
}

/* =========================
   BOTTOM

.tooltip-bottom{
  top:calc(100% + 18px);
  left:50%;
  transform:translateX(-50%) translateY(-10px);
}

.tooltip-bottom::after{
  left:50%;
  top:-6px;
  transform:translateX(-50%) rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-bottom{
  transform:translateX(-50%) translateY(0);
}

/* =========================
   LEFT

.tooltip-left{
  right:calc(100% + 18px);
  top:50%;
  transform:translateY(-50%) translateX(10px);
}

.tooltip-left::after{
  right:-6px;
  top:50%;
  transform:translateY(-50%) rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-left{
  transform:translateY(-50%) translateX(0);
}

/* =========================
   RIGHT

.tooltip-right{
  left:calc(100% + 18px);
  top:50%;
  transform:translateY(-50%) translateX(-10px);
}

.tooltip-right::after{
  left:-6px;
  top:50%;
  transform:translateY(-50%) rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-right{
  transform:translateY(-50%) translateX(0);
}

/* =========================
   GLASS TOOLTIP

.glass{
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,0.12);
}

/* =========================
   GRADIENT TOOLTIP

.gradient-tooltip{
  background:
  linear-gradient(135deg,#7c3aed,#2563eb);
  border:none;
}

/* =========================
   RESPONSIVE

@media(max-width:768px){

  body{
    padding:60px 16px;
  }

  .page-header h1{
    font-size:2.7rem;
  }

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

  .tooltip-card{
    padding:32px 24px;
  }

}
/* ================= FOOTER ================= */
body .footer {
  margin-left: 220px;
  background: #ffffff;
  padding: 80px 40px 40px;
  border-top: 1px solid rgb(255 255 255 / 5%);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(235 104 53 / 20%), transparent);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), #ff8e53);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.footer-col p {
  color: #8a9bc0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #8a9bc0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-col.newsletter .newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-col.newsletter input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 2%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  outline: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-col.newsletter input[type="email"]:focus {
  border-color: var(--accent);
  background: rgb(255 255 255 / 4%);
  box-shadow: 0 0 10px rgb(235 104 53 / 20%);
}

.footer-col.newsletter button {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-col.newsletter button:hover {
  background: #d45c28;
  box-shadow: 0 4px 12px rgb(235 104 53 / 30%);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
  color: #8a9bc0;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 4%);
  margin-top: 60px;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #6a7a94;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer {
    margin-left: 0;
    padding: 40px 15px;
  }
  
  .footer-card {
    padding: 30px 20px;
  }
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
  .tooltip-grid {
  .toggle-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .tooltip-card {
    width: 100%;
    min-height: 160px;
    text-align: center;
  }

  .tooltip-card h3 {
    font-size: 1rem;
  }

  .tooltip-card p {
    font-size: 0.9rem;
    word-wrap: break-word;
  .toggle-card {
    width: 100%;
    min-height: 180px;
    text-align: center;
  }

  .sidebar {
    display: none; /* hide sidebar on mobile */
  }

  .hamburger {
    display: block; /* show hamburger menu */
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .tooltip-grid {
  .toggle-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

 .sidebar {
  display: none; /* hidden by default on mobile */

  .sidebar {
    width: 200px;
  }
}

.sidebar.active {
  display: block;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #111;
  padding: 1rem;
}

.tooltip {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  transform: translateY(-5px) scale(1.05);
}

.tooltip-wrapper .tooltip-btn:focus + .tooltip,
.tooltip-wrapper .tooltip-btn:hover + .tooltip {
  opacity: 1;
  visibility: visible;
}

.tooltip {
  background: #111; /* dark background */
  color: #fff;      /* white text */
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .sidebar.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #111;
    padding: 1rem;
  }
}
