/*
Theme Name: AppBuilder SaaS Engine
Theme URI: https://example.com/appbuilder
Author: AppBuilder Studio
Author URI: https://example.com
Description: Complete Web-to-App SaaS theme: marketing site, URL scanner, 10-tab studio with live device simulator, customer accounts and dashboard, WooCommerce licensing, PWA and native (Capacitor) project export, contact and newsletter leads.
Version: 11.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appbuilder
Tags: saas, woocommerce, app-builder, dark-mode, e-commerce, custom-menu
*/

html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
code, .font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.glass-panel {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}
.dark .glass-panel { background: rgba(2, 6, 23, 0.85); }

.ab-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.ab-navlink { font-size: 0.8rem; font-weight: 700; color: #475569; transition: color .15s; }
.dark .ab-navlink { color: #cbd5e1; }
.ab-navlink:hover { color: #059669; }
.dark .ab-navlink:hover { color: #34d399; }
.ab-footlink { font-size: 0.8rem; color: #94a3b8; }
.ab-footlink:hover { color: #34d399; }
.ab-mobile-menu .ab-menu { flex-direction: column; align-items: flex-start; gap: .75rem; }
.ab-footer-menu .ab-menu { flex-wrap: wrap; gap: 1rem; }

.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-move { display: inline-flex; animation: ab-ticker 36s linear infinite; }
@keyframes ab-ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .45); border-radius: 4px; }

/* Form controls */
.ab-input, .ab-select, .ab-textarea {
	width: 100%; padding: .6rem .85rem; font-size: .8rem; border-radius: .75rem;
	background: #fff; color: #0f172a; border: 1px solid #cbd5e1; outline: none;
}
.dark .ab-input, .dark .ab-select, .dark .ab-textarea { background: #020617; color: #f8fafc; border-color: #1e293b; }
.ab-input:focus, .ab-select:focus, .ab-textarea:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.ab-label { display: block; font-size: .72rem; font-weight: 700; color: #475569; margin-bottom: .3rem; }
.dark .ab-label { color: #cbd5e1; }
.ab-hint { font-size: .68rem; color: #64748b; margin-top: .25rem; }
input[type="color"].ab-color { padding: 0; height: 2.25rem; width: 100%; border-radius: .6rem; border: 1px solid #cbd5e1; background: none; cursor: pointer; }
.dark input[type="color"].ab-color { border-color: #1e293b; }

/* Buttons */
.ab-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	padding: .65rem 1.1rem; border-radius: .8rem; font-weight: 800; font-size: .78rem;
	cursor: pointer; transition: all .15s; border: 1px solid transparent; line-height: 1.2;
}
.ab-btn:disabled { opacity: .55; cursor: not-allowed; }
.ab-btn-primary { color: #fff; background: linear-gradient(90deg, #059669, #0d9488, #4f46e5); box-shadow: 0 8px 20px rgba(5, 150, 105, .25); }
.ab-btn-primary:hover:not(:disabled) { opacity: .93; transform: translateY(-1px); }
.ab-btn-ghost { background: transparent; color: inherit; border-color: #cbd5e1; }
.dark .ab-btn-ghost { border-color: #334155; }
.ab-btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 184, .15); }
.ab-btn-danger { background: rgba(244, 63, 94, .12); color: #e11d48; border-color: rgba(244, 63, 94, .3); }

/* Cards */
.ab-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; }
.dark .ab-card { background: #0f172a; border-color: #1e293b; }

/* Badges */
.ab-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #e2e8f0; color: #334155; }
.ab-badge-amber { background: #fef3c7; color: #92400e; }
.ab-badge-indigo { background: #e0e7ff; color: #3730a3; }
.ab-badge-emerald { background: #d1fae5; color: #065f46; }
.ab-badge-rose { background: #ffe4e6; color: #9f1239; }
.dark .ab-badge { background: #1e293b; color: #cbd5e1; }
.dark .ab-badge-amber { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.dark .ab-badge-indigo { background: rgba(99, 102, 241, .18); color: #a5b4fc; }
.dark .ab-badge-emerald { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.dark .ab-badge-rose { background: rgba(244, 63, 94, .15); color: #fda4af; }

/* Studio */
.tab-btn { cursor: pointer; white-space: nowrap; }
.tab-btn.active { background-color: #059669 !important; color: #fff !important; border-color: #059669 !important; box-shadow: 0 4px 14px rgba(22, 163, 74, .35); }
.ab-switch { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; border-radius: .75rem; border: 1px solid #e2e8f0; font-size: .78rem; font-weight: 600; }
.dark .ab-switch { border-color: #1e293b; }
.ab-switch input { width: 2.4rem; height: 1.3rem; accent-color: #10b981; cursor: pointer; }
.sim-nav-item { transition: color .15s; }
.ab-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 100; max-width: 90vw; padding: .75rem 1.1rem; border-radius: .9rem; font-size: .8rem; font-weight: 700; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ab-toast.ok { background: #047857; }
.ab-toast.err { background: #be123c; }

/* Prose for blog/pages */
.ab-prose { max-width: 70ch; }
.ab-prose h2 { font-size: 1.4rem; font-weight: 800; margin: 1.6em 0 .6em; }
.ab-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4em 0 .5em; }
.ab-prose p, .ab-prose ul, .ab-prose ol { margin: 0 0 1em; line-height: 1.75; font-size: .92rem; }
.ab-prose ul { list-style: disc; padding-left: 1.4rem; }
.ab-prose ol { list-style: decimal; padding-left: 1.4rem; }
.ab-prose a { color: #059669; text-decoration: underline; }

/* WooCommerce basics so checkout stays readable in the dark theme */
.woocommerce, .woocommerce-page { color: inherit; }
.woocommerce table.shop_table { border: 1px solid #1e293b; border-radius: .75rem; border-collapse: separate; }
.woocommerce .button, .woocommerce button.button, .woocommerce #respond input#submit { background: #059669 !important; color: #fff !important; border-radius: .75rem; font-weight: 800; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-page .select2-container .select2-selection { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; border-radius: .6rem; padding: .6rem; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: #10b981; background: rgba(148, 163, 184, .12); color: inherit; }

@media (prefers-reduced-motion: reduce) {
	.ticker-move { animation: none; }
	html { scroll-behavior: auto; }
}
