/* BotixTech dark theme for one-page tools (migrated tool UIs) */
.opt-root { color: #c6cde0; font-size: 15px; line-height: 1.7; }
.opt-root label { display: block; font-size: 13.5px; font-weight: 600; color: #dbe2f4; margin: 14px 0 6px; }
.opt-root input[type="file"], .opt-root input[type="text"], .opt-root input[type="number"],
.opt-root textarea, .opt-root select {
  width: 100%; background: #0f1629; border: 1px solid rgba(255,255,255,.14);
  color: #e6e9f5; border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin: 4px 0 8px;
}
.opt-root input[type="checkbox"], .opt-root input[type="radio"] { width: auto; margin-right: 7px; accent-color: #7c3aed; }
.opt-root input[type="range"] { width: 100%; accent-color: #7c3aed; }
.opt-root button, .opt-root .tool-button {
  background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; border: none;
  border-radius: 30px; padding: 12px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; margin: 10px 6px 4px 0; box-shadow: 0 4px 14px rgba(124,58,237,.4);
}
.opt-root button:hover { filter: brightness(1.12); }
.opt-root button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.opt-root p { color: #9aa3b8; margin: 10px 0; }
.opt-root img { max-width: 100%; border-radius: 10px; margin-top: 12px; }
.opt-root canvas { max-width: 100%; border-radius: 10px; }
.result-area { margin-top: 14px; padding: 14px 16px; background: #0f1629; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #dbe2f4;
  white-space: pre-wrap; word-break: break-all; }
.option-group { padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; margin-top: 12px; background: rgba(255,255,255,.02); }
.option-group label { display: inline; margin: 0 14px 6px 0; font-weight: 400; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.tab-button { background: none; border: none; color: #9aa3b8; padding: 10px 20px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; border-radius: 8px 8px 0 0; box-shadow: none; margin: 0; }
.tab-button.active { background: #7c3aed; color: #fff; }
.tab-button:not(.active):hover { background: rgba(255,255,255,.06); filter: none; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.timer-display, .stopwatch-display { font-size: 2.8rem; font-weight: 800; text-align: center;
  color: #a78bfa; margin: 16px 0; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.laps-list { list-style: none; padding: 8px 12px; margin-top: 12px; max-height: 160px; overflow-y: auto;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #0f1629; }
.laps-list li { padding: 5px 0; font-size: 13.5px; color: #9aa3b8; border-bottom: 1px dashed rgba(255,255,255,.1); }
.color-picker-display { display: flex; gap: 16px; align-items: center; margin: 14px 0; }
.color-preview { width: 72px; height: 72px; border-radius: 12px; border: 2px solid rgba(255,255,255,.2); flex-shrink: 0; }
.color-values { font-size: 14px; }
.copy-color-val { cursor: pointer; color: #c4b5fd; margin-left: 8px; font-size: 13px; }
.modal-alert, #toolAlert { display: none; padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.modal-alert.info, #toolAlert.info { background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.4); color: #d9cfff; display: block; }
.modal-alert.error, #toolAlert.error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #fca5a5; display: block; }
.modal-alert.success, #toolAlert.success { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.4); color: #86efac; display: block; }
.opt-tool-card { background: #141d33; border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  padding: 30px 26px; box-shadow: 0 10px 34px rgba(0,0,0,.35); max-width: 760px; margin: 26px auto; }
.opt-article { max-width: 860px; margin: 40px auto 10px; padding: 0 20px; }
.opt-article h2 { color: #f0f0fa; font-size: 22px; font-weight: 700; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.opt-article h3 { color: #fff; font-size: 19px; margin: 26px 0 10px; }
.opt-article p { color: #9aa3b8; line-height: 1.8; font-size: 15px; margin-bottom: 12px; }
.opt-article ul, .opt-article ol { color: #9aa3b8; margin: 12px 0 20px 24px; line-height: 1.8; font-size: 15px; }
.opt-article li { margin-bottom: 8px; }
.opt-article a { color: #c4b5fd; }
.opt-article strong { color: #dbe2f4; }
@media (max-width: 700px) {
  .opt-tool-card { padding: 20px 16px; }
  .timer-display, .stopwatch-display { font-size: 2.1rem; }
}

/* Related tools - card style */
.tools-links { max-width: 860px; margin: 0 auto; padding: 10px 20px 50px; }
.tools-links h2 { color: #f0f0fa; font-size: 22px; font-weight: 700; margin: 30px 0 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tools-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tools-links li { margin: 0; }
.tools-links a { display: block; background: #141d33; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 14px 16px; color: #dbe2f4 !important; font-weight: 600; font-size: 14.5px; text-decoration: none; transition: transform .15s, border-color .15s; }
.tools-links a:hover { transform: translateY(-2px); border-color: #7c3aed; color: #fff !important; }

/* FAQ boxes */
.faq-item { background: #141d33; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 18px 20px; margin: 0 0 14px; }
.faq-item h3, .faq-item p strong { color: #c4b5fd !important; font-size: 16px; margin: 0 0 8px; }
.faq-item h3 { margin-top: 0 !important; }
.faq-item p { margin: 0; color: #9aa3b8; line-height: 1.7; font-size: 14.5px; }

/* ===== Animated background blobs + grid (matches classic pages) ===== */
.bg-blobs,.bg-grid{pointer-events:none;position:fixed;inset:0;}
.bg-blobs{z-index:0;}
.blob{position:absolute;border-radius:50%;filter:blur(120px);opacity:.18;}
.blob-1{width:600px;height:600px;background:#7c3aed;top:-200px;left:-100px;animation:18s ease-in-out infinite alternate drift1;}
.blob-2{width:500px;height:500px;background:#06b6d4;bottom:-150px;right:-100px;animation:22s ease-in-out infinite alternate drift2;}
.blob-3{width:300px;height:300px;background:#f59e0b;top:40%;left:55%;animation:15s ease-in-out infinite alternate drift3;}
@keyframes drift1{from{transform:translate(0,0) scale(1);}to{transform:translate(60px,40px) scale(1.1);}}
@keyframes drift2{from{transform:translate(0,0) scale(1);}to{transform:translate(-50px,30px) scale(1.08);}}
@keyframes drift3{from{transform:translate(0,0);}to{transform:translate(30px,-40px);}}
.bg-grid{z-index:1;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:40px 40px;}
.bg-grid::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,transparent 40%,#060612 100%);}
.wrapper > :not(.bg-blobs):not(.bg-grid):not(#header_main){position:relative;z-index:2;}

/* ===== Spinning header logo (matches homepage) ===== */
.brand:before{background-size:100% 100%;content:"BotixTech";line-height:200px;color:#f5f2f7;font-size:20px;font-family:"HEAVITAS","Helvetica Rounded",Arial,sans-serif;font-weight:700;text-align:center;width:200px;height:200px;margin:0 auto;position:absolute;z-index:99999!important;}
.logo svg path{position:absolute;stroke-width:2;top:0;left:0;transform-origin:50% 50%;transform:rotate(0deg);animation:4s linear infinite;}
.logo svg path:first-child{opacity:1;animation-name:rotate-1;animation-delay:.5s;}
.logo svg path:nth-child(2){opacity:.5;animation-name:rotate-2;animation-delay:.6s;}
.logo svg path:nth-child(3){opacity:.8;animation-name:rotate-3;animation-delay:.7s;}
@keyframes rotate-1{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
@keyframes rotate-2{from{transform:rotate(0deg);}to{transform:rotate(-360deg);}}
@keyframes rotate-3{from,to{transform:rotate(0deg);}}

/* ===== Nested flyout sub-menus under Tech Tools ===== */
.header .header__right .main-nav .menu li .sub-menu{overflow:visible;}
.header .header__right .main-nav .menu .sub-menu li{position:relative;}
.header .header__right .main-nav .menu .sub-menu .sub-menu{top:-6px;left:100%;max-height:78vh;overflow-y:auto;transform:translateX(10px);}
.header .header__right .main-nav .menu li .sub-menu .sub-menu{opacity:0;visibility:hidden;}
.header .header__right .main-nav .menu li .sub-menu li:hover > .sub-menu{opacity:1;visibility:visible;transform:translateX(0);}
.header .header__right .main-nav .menu .sub-menu li.menu-item-has-children > a::after{content:"\25B8";display:inline-block!important;margin-left:8px;font-size:10px;}
