      /* Define default colors */
        :root {
      --page-bg: #f5f5f5;
      --text-color: #333333;
      --h1-color: #ffffff;
      --h2-color: #34495e;
      --btn-attention: #e74c3c;
      --btn-hover: #c0392b;
      --btn-text: #ffffff; }
    /* Layout styling for the generator interface */
    body { font-family: Arial, sans-serif; margin: 0; background: var(--page-bg); color: var(--text-color); }
    h1, h2 { font-size: 1.0em; margin: 0px; padding: 5px;}
    .social { position: absolute; width: 190px; bottom: 1%; flex-direction: row; justify-content: center; display: flex; gap: 15px; font-size: 26px; }
    .social a:hover { transform: scale(1.1); transition: transform 0.2s ease-in-out; }
    .target { position: absolute; width: 190px; bottom: 1%; left: 45%; }
    #toolbox-logo { width: 30px; height: 30px; display: inline-block;
    background: url('../image/on-page-seo.png') no-repeat center center; background-size: contain; }
    .tag { position: absolute; top: 2%; left: 18%; font-size: 1.0em; margin: 0; z-index: 5; color: green; padding: 0; }
    .container { display: flex; height: 100vh; }
    .sidebar { width: 190px; background-image: radial-gradient(ellipse at top left, #6699FF, #6666CC, #00CCFF); color: #fff; padding: 16px; }
    .sidebar h3 { margin-bottom: 14px; user-select: none; transition: all 0.3s ease; }
    .sidebar2 { font-size: 0.9em; background-image: color: #fff; padding: 12px; cursor: pointer;}
    .sidebar2.collapsed .toggle-arrow { transform: rotate(-180deg); cursor: pointer; }
    .sidebar2.collapsed .external-links { max-height: 0; margin-bottom: 36px; cursor: pointer; }
    .external-links button { display: block; width: 100%; margin: 2px 0; padding: 6px; border: none; background: #007cba; color: white; border-radius: 3px; cursor: pointer; }
    .external-links button:hover { background: #005a87; }
    .external-links { overflow: hidden; transition: max-height 0.3s ease; max-height: 450px; }
    .sidebar button { font-size: 0.7em; display: block; width: 100%; padding: 6px; margin-bottom: 3px; border: none; clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%); background: grey; color: #fff; cursor: pointer; text-align: left; }
    .sidebar button:hover { background: #0E5077; color: #FFFF00; }

/* Sidebar category buttons active state */
    .sidebar button.active { background: #0E5077; color: #FFFF00; font-weight: bold; transform: translateX(5px); /* Slight indent effect */ box-shadow: 2px 0 8px rgba(14, 80, 119, 0.3); }    
    .content { flex: 1; padding: 15px; overflow-y: auto; }
    .tabs button { font-size: 0.6em; padding: 8px; border: none; background: #0073e6; color: #fff; border-radius: 12px 12px 0 0; /* TL TR BR BL */ cursor: pointer; }
    .tabs button:hover { background: #005bb5; }

/* Active tab button styling */
    .tabs button.active { background: #4CAF50; /* Green background for active state */
    color: white; font-weight: bold; box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); /* Subtle shadow */
    transform: translateY(-2px); /* Slight lift effect */ border-bottom: 3px solid #45a049; /* Bottom accent border */ }
    .tab-content { display: none; margin-top: 8px; }
    .tab-content.active { display: block; }
    iframe { width: 100%; height: 472px; border: 1px solid #ccc; border-radius: 4px; }
    .cta-buttons { border: none; cursor: pointer; border-radius: 8px; margin-top: 6px; font-size: 0.9em; padding: 8px 10px; margin-right: 8px; }
    .cta-white { font-size: 0.9em !important; background: #4CAF50 !important; color: white; border: none; cursor: pointer; padding: 8px 10px !important; border-radius: 8px !important; }
    .cta-seo { font-size: 0.9em !important; background: #F76503 !important; color: white; border: none; cursor: pointer; padding: 8px 10px !important; border-radius: 8px !important; }
    .cta-seo:hover, .cta-white:hover { background-color: #0E5077 !important; color: #FFFF00 !important; transform: scale(1.1); box-shadow: 5px 5px 10px 3px rgba(0, 0, 0, 0.5); }

/* Overlay background */
    .popup-overlay { display: none; /* hidden by default */ position: fixed; top: 0; left: 35%; width: 450px; margin: 10px auto; z-index: 9999; }

/* Popup box */
    .popup-content { position: relative; width: 100%; height: 100%; background: #fff; padding: 20px; border-radius: 8px; margin: 10px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); animation: fadeIn 0.3s ease; }

/* Close button */
   .close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: red; }
   .close-btn:hover { color: #000; }

/* Simple animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
  .bio-form { margin-top: 1rem; max-width: 100%; background: #f9fbfc;
    padding: 1.5rem; border-radius: 12px; backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
   .modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
   .modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white; padding: 12px; text-align: center; }
  .bio-form label { display: block; margin-bottom: 0.6rem; font-weight: 600; color: #333; font-size: 0.7rem; }
  .bio-form input, .bio-form textarea { width: 100%; padding: 6px; margin-top: 0.2rem; border: 1px solid #ccc;
    border-radius: 4px; font-size: 0.7rem; transition: border 0.2s ease; box-sizing: border-box; }
  .bio-form input:focus, .bio-form textarea:focus { border-color: #0072b1; outline: none; }
  .bio-form button {
    background: blue; color: white;
    padding: 0.75rem 1.5rem;
    border: none; border-radius: 6px;
    font-weight: bold; font-size: 0.9rem;
    cursor: pointer; margin-top: 1rem;
    transition: background 0.3s ease; }

  .bio-form button:hover { background: #0072b1; }

.g-recaptcha iframe { border: none !important; box-shadow: none !important; }
     a { text-decoration: none; display: block; }
.floating-tooltip {
  position: absolute;
  top: 25px; right: 25px;
  z-index: 100;
  font-family: sans-serif;
}
.tooltip-icon {
  cursor: pointer;
  font-size: 40px; color: orange; 
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* offset-x | offset-y | blur-radius | color */
}
.tooltip-text {
  visibility: hidden;
  width: 180px;
  background-color: rgba(0,0,0,0.85);
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 5px;
  position: absolute;
  top: 25px; right: 10px;
  font-size: 12px;
  line-height: 1.3;
}
.floating-tooltip:hover .tooltip-text {
  visibility: visible;
}

        /* bottom Floating Icons */
        .floating-icons {
            position: fixed;
            bottom: 1px; right: 28%;
            transform: translateY(-50%);
            display: flex; flex-direction: row;
            gap: 30px; z-index: 100;
        }
        .floating-icon {
            background: white;
            border-radius: 50%;
            display: flex;
            width: 30px; height: 30px;
	    align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            animation: float 3s ease-in-out infinite;
        }
        .floating-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        .floating-icon:nth-child(2) { animation-delay: 0.5s; }
        .floating-icon:nth-child(3) { animation-delay: 1s; }
        .floating-icon:nth-child(4) { animation-delay: 1.5s; }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
     .tooltip-badge {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
    .tooltip-badge .tooltip {
  visibility: hidden;
  position: absolute;
  width: 230px;
  bottom: 0.25%; right: 1%;
  padding: 8px;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  text-align: center;
  font-size: 12px;
  z-index: 100;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
    .tooltip-badge:hover .tooltip { visibility: visible; opacity: 1; }

#copyright { white-space: nowrap; font-size: 0.7em; text-align: right; padding-right: 10px; color: darkgrey; }

/* Enhanced Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
  iframe { height: 500px; }
  .sidebar { width: 180px; padding: 12px; }
  .sidebar button { font-size: 0.65em; padding: 8px; }
  .tabs button { font-size: 0.55em; padding: 6px; }
  .floating-icons { right: 380px; gap: 20px; }
  .floating-icon { width: 25px; height: 25px; }
}

/* Tablets */
@media (max-width: 768px) {
  .container { flex-direction: column; height: auto; }
  .sidebar { width: 100%; order: 2; /* Move sidebar below content */
    padding: 10px; background-image: linear-gradient(90deg, #6699FF, #6666CC, #00CCFF); }
  .sidebar h3 { font-size: 0.9em; margin-bottom: 10px; }
  .sidebar button {
    display: inline-block;
    width: auto; margin: 2px; padding: 6px 10px;
    font-size: 0.6em; clip-path: none; /* Remove arrow shape on mobile */
    border-radius: 4px; }
  .content { order: 1; /* Content appears first */ padding: 10px; }
  iframe { height: 400px; }
  .tabs { display: flex; flex-wrap: wrap; gap: 2px; }
  .tabs button {
    font-size: 0.5em;
    padding: 5px 8px;
    flex: 1;
    min-width: 80px; }
  .cta-buttons { display: flex; flex-direction: column; gap: 8px; }
  .cta-buttons button { width: 100%; font-size: 0.65em; }
/* Adjust floating elements for tablets */
  .floating-tooltip { top: 10px; right: 10px; }
  .tooltip-icon { font-size: 30px; }
  .floating-icons { bottom: 20px; right: 20px; flex-direction: column; gap: 15px; }
  .floating-icon { width: 35px; height: 35px; }
/* Popup adjustments */
  .popup-overlay { left: 5%; width: 90%; top: 5%; }
  .popup-content { margin: 0; max-height: 90vh; overflow-y: auto; }
  .bio-form { padding: 1rem; }
  .bio-form label { font-size: 0.65em; }
  .bio-form input, .bio-form textarea { font-size: 0.65em; padding: 8px; }
}

/* Mobile phones */
@media (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 0.9em; text-align: center; }
  h1 img { width: 24px; height: 24px; margin: 0 4px; }
  .sidebar { padding: 8px; }
  .sidebar h3 { font-size: 0.8em; }
  .sidebar button { font-size: 0.55em; padding: 4px 6px; margin: 1px; }
  .sidebar2 { padding: 8px; }
  .external-links button { font-size: 0.5em; padding: 6px; margin: 2px 0; }
  .content { padding: 5px; }
  iframe { height: 300px; }
  .tabs { margin-bottom: 5px; }
  .tabs button { font-size: 0.45em; padding: 4px 6px; min-width: 60px; border-radius: 6px 6px 0 0; }
  .cta-buttons button { font-size: 0.6em; padding: 8px; }
/* Hide floating tooltip on very small screens */
  .floating-tooltip { display: none; }
/* Simplify floating icons for mobile */
  .floating-icons { bottom: 10px; right: 10px; gap: 10px; }
  .floating-icon { width: 30px; height: 30px; }
  .floating-icon img { width: 20px !important; height: auto; }
  .tooltip-badge .tooltip { width: 150px; font-size: 10px; bottom: 35px; right: -50px; }
/* Popup full screen on mobile */
  .popup-overlay { left: 0; top: 0; width: 100%; height: 100%; margin: 0; }
  .popup-content {
    width: 100%; height: 100%; border-radius: 0;
    padding: 15px; box-sizing: border-box; }
  .close-btn { font-size: 24px; top: 5px; right: 10px; }
  .modal-header { padding: 8px; }
  .modal-header h2 { font-size: 16px; }
  .bio-form { padding: 0.5rem; }
  .bio-form label { font-size: 0.6em; margin-bottom: 0.4rem; }
  .bio-form input, .bio-form textarea { font-size: 0.6em; padding: 6px; }
  .bio-form button { font-size: 0.8em; padding: 10px; }
/* Copyright adjustment */
  #copyright { font-size: 0.6em; text-align: center; padding: 5px; }
}

/* Responsive adjustments for active states */
@media (max-width: 768px) {
    .tabs button.active {
        transform: none; /* Remove lift effect on mobile */
        border-bottom: 2px solid #45a049; /* Thinner border */
    }
    
    .sidebar button.active {
        transform: none; /* Remove indent on mobile */
    }
}

@media (max-width: 480px) {
    .tabs button.active {
        box-shadow: none; /* Remove shadows on small screens for performance */
        border-bottom: 1px solid #45a049;
    }
}
/* Extra small devices */
@media (max-width: 320px) {
  .sidebar button {
    font-size: 0.5em;
    padding: 3px 5px;
  }
  
  .tabs button {
    font-size: 0.4em;
    padding: 3px 5px;
    min-width: 50px;
  }
  
  iframe { height: 250px; }
  .floating-icons { gap: 8px; }
  .floating-icon { width: 25px; height: 25px; }
  .floating-icon img { width: 15px !important; }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .container { flex-direction: row; }
  .sidebar { width: 150px; order: 1; }
  .content { order: 2; }
  iframe { height: 250px; }
  
  .popup-overlay {
    top: 2%;
    height: 96%;
  }
}