diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..0c7dbf8 --- /dev/null +++ b/.env.example @@ -0,0 +1,36 @@ +# SnapCAD / YakNet cloud configuration. +# Copy this file to .env and fill in real values. Never commit .env. + +YAKNET_DB_HOST='127.0.0.1' +YAKNET_DB_PORT='3306' +YAKNET_DB_NAME='yaknet_auth' +YAKNET_DB_USER='root' +YAKNET_DB_PASS='replace-with-your-database-password' + +# Run `php database/migrate.php` once to create/update the schema. +# Leave this false; true is only for one-off automatic schema setup. +SNAPCAD_AUTO_MIGRATE='false' + +YAKNET_AUTH_BASE_URL='https://developer-console.yakhub.com.tr' +YAKNET_CDN_ACCOUNT_JS='https://cdnjs.yakhub.com.tr/ajax/libs/yaknet-account/latest/yaknet-account.js' +SNAPCAD_CANONICAL_URL='https://snap.yakhub.com.tr' +SNAPCAD_CALLBACK_URL='https://snap.yakhub.com.tr/callback.php' +YAKNET_CLIENT_ID='replace-with-oauth-client-id' +YAKNET_CLIENT_SECRET='replace-with-oauth-client-secret' +# Space or comma separated OAuth scopes. Defaults to '*'. +YAKNET_OAUTH_SCOPE='*' + +# Keep true in production. Set false only for a local development certificate issue. +YAKNET_OAUTH_VERIFY='true' + +# Origins allowed to send state-changing requests. +SNAPCAD_ALLOWED_ORIGINS='https://snap.yakhub.com.tr,http://localhost,http://127.0.0.1' + +# Request and storage limits. +SNAPCAD_MAX_BODY_BYTES='8388608' +SNAPCAD_MAX_PROJECT_BYTES='4194304' +SNAPCAD_MAX_PROJECTS_PER_USER='200' +SNAPCAD_MAX_STORAGE_BYTES_PER_USER='104857600' + +# Client-supplied SSO payloads are never trusted. Use OAuth callback or a verified token. +SNAPCAD_ENABLE_CLIENT_SSO_SYNC='false' diff --git a/.gitignore b/.gitignore index 945de90..32a336e 100644 --- a/.gitignore +++ b/.gitignore @@ -48,5 +48,41 @@ Thumbs.db # Claude Code local settings (machine-specific) .claude/settings.local.json -# Staged occt-wasm runtime (copied from node_modules by scripts/copy-occt-wasm.mjs) +# Staged WebAssembly runtimes (copied from node_modules by scripts/copy-*.mjs) apps/web/public/occt/ +apps/web/public/dwgdxf/ +apps/web/public/libredwg/ +apps/web/public/libredwg-web/ + +# PHP dependencies (install with composer install) +/vendor/ + +# Static export copied to the Laragon web root by scripts/sync-laragon-static.mjs +/_next/ +/assets/ +/404/ +/dwgdxf/ +/gizlilik/ +/guvenlik/ +/hakkimizda/ +/icons/ +/iletisim/ +/kullanim-kosullari/ +/kurumsal-guvenlik/ +/kvkk/ +/libredwg/ +/libredwg-web/ +/occt/ +/index.html +/index.txt +/404.html +/sw.js +/manifest.json +/manifest.webmanifest +/manifold.js +/manifold.wasm +/.htaccess + +# Local deploy/backup artifacts +*.bak +*.sql diff --git a/README.md b/README.md index 56f4bec..995e7ba 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,37 @@
- - - - - -
- SketchForge logo - -

SketchForge

-

A local-first 3D design editor that runs in your browser.

-

- Build shapes, cut holes, group parts, import STL files, and export models without accounts, cloud lock-in, or heavyweight CAD setup. -

-
+

SnapCAD Studio

+

Erişilebilir, tarayıcı tabanlı 3B parametrik CAD ve mimari modelleme stüdyosu.

+

DWG/DXF/STEP/STL/OBJ/GLB içe aktarma, .skf proje paketleri, isteğe bağlı YakNet Bulut yedeği ve ekran okuyucu dostu arayüz.

+ YakHub deposu GNU AGPLv3 license - Star SketchForge on GitHub - Sponsor SketchForge on GitHub - Local first - Version v1.0.9 + Canlı uygulama + Erişilebilirlik hedefi

-![SketchForge editor showing a selected model on the workplane](https://sketchforge3d.com/assets/landing/editor-phone-stand.png) +![SnapCAD Studio editor showing a selected model on the workplane](https://sketchforge3d.com/assets/landing/editor-phone-stand.png) -## Why SketchForge +> **Depo:** [yakhub.com.tr/YakNet/snapcad-studio](https://yakhub.com.tr/YakNet/snapcad-studio) +> +> **Canlı uygulama:** [snap.yakhub.com.tr](https://snap.yakhub.com.tr) -SketchForge is a lightweight CAD-style workspace for people who want to sketch, cut, and export 3D models quickly. +## Neden SnapCAD Studio -It is built for the satisfying loop: drop a shape, resize it, rotate it, make another shape a hole, group the result, import an STL if primitives are not enough, and export the finished model. +SnapCAD Studio, hızlıca çizim yapmak, kesmek ve 3B model dışa aktarmak isteyenler için hafif bir CAD çalışma alanıdır. -No login. No server project storage. No heavyweight CAD install just to make a useful part. +Temel döngü: bir şekil bırak, boyutlandır, döndür, başka bir şekli oyuk yap, sonucu grupla, gerekirse DWG/DXF/STEP/STL/OBJ/GLB içe aktar ve modeli dışa aktar. + +Projeler varsayılan olarak tarayıcıda saklanır. İsterseniz YakNet hesabınızla buluta yedekleyebilirsiniz; bulut isteğe bağlıdır ve yerel kopya her zaman önceliklidir. Ağır CAD kurulumu gerekmez. ## What It Does - **Local-first projects** - designs live in browser storage with generated project thumbnails. +- **DWG ve DXF içe aktarma** - AutoCAD çizimlerini LibreDWG/WebAssembly ile tarayıcıda açar; gerçek CAD birimleri korunur. +- **.skf proje paketleri** - kaynak dosya ve türetilmiş ağı birlikte saklar; projeler yeniden açıldığında geometri kaybolmaz. +- **YakNet Bulut (isteğe bağlı)** - projeleri hesapla yedekler; boş veya eski bir bulut kopyası yerel geometriyi asla silmez. +- **Erişilebilirlik** - klavye ile tam kullanım, ekran okuyucu duyuruları ve WCAG 2.2 AAA hedefi. - **Real 3D workplane** - grid, camera controls, snap settings, transform handles, outlines, and inspector controls. - **Primitive shape library** - boxes, cylinders, spheres, cones, pyramids, wedges, text, roofs, half spheres, torus shapes, tubes, and more. - **Solid and hole workflow** - turn shapes into cutters and group them into final geometry. @@ -99,14 +95,14 @@ Some macOS virtual machines do not provide hardware WebGL. Launch SketchForge wi If you already know Git: ```bash -git clone https://github.com/Formsmith746/SketchForge-3D.git -cd SketchForge-3D +git clone https://yakhub.com.tr/YakNet/snapcad-studio.git +cd snapcad-studio ``` If you do not know Git yet: -1. Open the GitHub page for this repository. -2. Press the green **Code** button. +1. Open the YakHub page for this repository. +2. Press the **Code** button. 3. Press **Download ZIP**. 4. Extract the ZIP somewhere easy to find, such as your Desktop. 5. Open a terminal in the extracted folder. @@ -450,3 +446,20 @@ Use the SketchForge MCP tools to list open editors, inspect the scene, and modif ``` The main tool names are `sketchforge_list_editors`, `sketchforge_read_scene`, `sketchforge_list_objects`, `sketchforge_create_shape`, `sketchforge_update_object`, `sketchforge_list_edges`, `sketchforge_apply_edge_treatment`, and `sketchforge_capture_image`. + +## YakNet cloud backend (PHP/MySQL) + +The cloud API runs on Apache/Laragon with PHP and MySQL. + +1. Copy `.env.example` to `.env` and fill in the database and OAuth values. +2. Install PHP dependencies with `composer install`. +3. Create or update the database schema with `php database/migrate.php`. +4. Build and copy the static site with `npm run export`. + +Schema changes are applied only by the migration script. `SNAPCAD_AUTO_MIGRATE=true` is a one-off escape hatch for a fresh local database and should stay `false` in production. The `database/` directory is blocked from HTTP access by `.htaccess`. + +## Lisans + +SnapCAD Studio, **GNU Affero General Public License v3.0 (AGPL-3.0-only)** altında lisanslanmıştır. Ayrıntılar için [LICENSE](LICENSE) dosyasına bakın. + +Bu proje GNU LibreDWG (GPL-3.0) ve OpenCascade (LGPL-2.1) gibi açık kaynak bileşenler kullanır. AGPL-3.0 bu bileşenlerle uyumludur. Uygulamayı bir sunucuda değiştirerek çalıştırırsanız, AGPL-3.0 gereği kullanıcılara değiştirilmiş kaynak kodunu sunmanız gerekir. diff --git a/api/sync_session.php b/api/sync_session.php new file mode 100644 index 0000000..ee39c99 --- /dev/null +++ b/api/sync_session.php @@ -0,0 +1,45 @@ + true, + 'success' => true, + 'authenticated' => false, + 'user' => null, + ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + exit; +} + +if ($action === 'status' || $action === '') { + echo json_encode([ + 'ok' => true, + 'success' => true, + 'authenticated' => $user !== null, + 'user' => $user, + 'guest_student' => $_SESSION['snapcad_guest_student'] ?? null, + ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + exit; +} + +http_response_code(403); +echo json_encode([ + 'ok' => false, + 'success' => false, + 'authenticated' => $user !== null, + 'error' => 'İstemci taraflı oturum senkronizasyonu devre dışı. Lütfen YakNet hesabınızla giriş yapın.', +], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts index dd052b5..830fb59 100644 --- a/apps/web/next-env.d.ts +++ b/apps/web/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -/// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 1fb0e0e..e64168d 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -25,12 +25,22 @@ const nextConfig: NextConfig = { // brepjs (loaded lazily by the STEP exporter) ships an auto-init helper that // tries optional kernel backends via guarded `import().catch()`. We only install // and use occt-wasm, so silence the resolution warnings for the backends we omit. - webpack: (config) => { + webpack: (config, { isServer }) => { config.resolve.alias = { ...config.resolve.alias, "brepkit-wasm": false, "brepjs-opencascade": false, + "dwg2dxf-converter": false, + "dwgdxf": false, + "@mlightcad/libredwg-web": false, }; + if (!isServer) { + config.resolve.fallback = { + ...config.resolve.fallback, + fs: false, + path: false, + }; + } return config; }, ...(isStaticExport diff --git a/apps/web/public/.htaccess b/apps/web/public/.htaccess new file mode 100644 index 0000000..566b9ed --- /dev/null +++ b/apps/web/public/.htaccess @@ -0,0 +1,57 @@ +DirectoryIndex index.html index.php +Options -Indexes +ServerSignature Off + + + AddType application/wasm .wasm + AddType application/javascript .js .mjs + AddType image/svg+xml .svg + + + + Header always set X-Content-Type-Options "nosniff" + Header always set X-Frame-Options "SAMEORIGIN" + Header always set Referrer-Policy "strict-origin-when-cross-origin" + Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" + Header always set Cross-Origin-Opener-Policy "same-origin-allow-popups" + # HSTS yalnızca HTTPS üzerinden sunulduğunda gönderilir. + Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" "expr=%{HTTPS} == 'on'" + + + + + Header set Cache-Control "no-cache, no-store, must-revalidate" + Header set Pragma "no-cache" + Header set Expires 0 + + + +# Service worker ve manifest güncellemeleri tarayıcıda takılı kalmasın. + + + Header set Cache-Control "no-cache, no-store, must-revalidate" + Header set Pragma "no-cache" + Header set Expires 0 + + + +# Gizli yapılandırma ve kaynak dosyalarına dışarıdan HTTP erişimini engelle + + Require all denied + + + + RewriteEngine On + RewriteBase / + + # Kaynak kod, bağımlılık ve geliştirme klasörlerini dışarıya kapat + RewriteRule ^(?:vendor|node_modules|apps|scripts|tests|src|database|\.git|\.github|\.next-export)(?:/|$) - [F,L] + + # Mevcut dosya (.php, .js, .wasm vb.) veya klasör varsa doğrudan sun + RewriteCond %{REQUEST_FILENAME} -f [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^ - [L] + + # SPA yönlendirmesi: bulunamayan rotaları index.html'e yönlendir + RewriteRule ^ index.html [L] + diff --git a/apps/web/public/icons/apple-touch-icon.png b/apps/web/public/icons/apple-touch-icon.png new file mode 100644 index 0000000..355147f Binary files /dev/null and b/apps/web/public/icons/apple-touch-icon.png differ diff --git a/apps/web/public/icons/favicon-32.png b/apps/web/public/icons/favicon-32.png new file mode 100644 index 0000000..bb65f6a Binary files /dev/null and b/apps/web/public/icons/favicon-32.png differ diff --git a/apps/web/public/icons/icon-192.png b/apps/web/public/icons/icon-192.png new file mode 100644 index 0000000..72b41a0 Binary files /dev/null and b/apps/web/public/icons/icon-192.png differ diff --git a/apps/web/public/icons/icon-512.png b/apps/web/public/icons/icon-512.png new file mode 100644 index 0000000..8358303 Binary files /dev/null and b/apps/web/public/icons/icon-512.png differ diff --git a/apps/web/public/icons/icon-maskable-192.png b/apps/web/public/icons/icon-maskable-192.png new file mode 100644 index 0000000..a4bfa5a Binary files /dev/null and b/apps/web/public/icons/icon-maskable-192.png differ diff --git a/apps/web/public/icons/icon-maskable-512.png b/apps/web/public/icons/icon-maskable-512.png new file mode 100644 index 0000000..580599a Binary files /dev/null and b/apps/web/public/icons/icon-maskable-512.png differ diff --git a/apps/web/public/manifest.json b/apps/web/public/manifest.json new file mode 100644 index 0000000..4416b48 --- /dev/null +++ b/apps/web/public/manifest.json @@ -0,0 +1,55 @@ +{ + "name": "SnapCAD Studio", + "short_name": "SnapCAD", + "description": "Tarayıcı tabanlı profesyonel 3B CAD modelleme, teknik çizim, mimari plan ve devre simülasyon stüdyosu", + "start_url": "/", + "scope": "/", + "display": "standalone", + "orientation": "any", + "background_color": "#060810", + "theme_color": "#0284c7", + "lang": "tr", + "categories": ["productivity", "utilities", "education", "design"], + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/icons/icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "shortcuts": [ + { + "name": "Yeni 3B Çizim", + "short_name": "Yeni 3B", + "description": "Yeni bir 3B modelleme projesi başlat", + "url": "/?action=new-3d", + "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + }, + { + "name": "Devre Simülasyonu", + "short_name": "Devreler", + "description": "Elektronik devre ve Arduino stüdyosunu aç", + "url": "/?view=circuits", + "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + } + ] +} diff --git a/apps/web/public/manifest.webmanifest b/apps/web/public/manifest.webmanifest new file mode 100644 index 0000000..4416b48 --- /dev/null +++ b/apps/web/public/manifest.webmanifest @@ -0,0 +1,55 @@ +{ + "name": "SnapCAD Studio", + "short_name": "SnapCAD", + "description": "Tarayıcı tabanlı profesyonel 3B CAD modelleme, teknik çizim, mimari plan ve devre simülasyon stüdyosu", + "start_url": "/", + "scope": "/", + "display": "standalone", + "orientation": "any", + "background_color": "#060810", + "theme_color": "#0284c7", + "lang": "tr", + "categories": ["productivity", "utilities", "education", "design"], + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/icons/icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "shortcuts": [ + { + "name": "Yeni 3B Çizim", + "short_name": "Yeni 3B", + "description": "Yeni bir 3B modelleme projesi başlat", + "url": "/?action=new-3d", + "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + }, + { + "name": "Devre Simülasyonu", + "short_name": "Devreler", + "description": "Elektronik devre ve Arduino stüdyosunu aç", + "url": "/?view=circuits", + "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + } + ] +} diff --git a/apps/web/public/sw.js b/apps/web/public/sw.js new file mode 100644 index 0000000..940a97f --- /dev/null +++ b/apps/web/public/sw.js @@ -0,0 +1,162 @@ +// SnapCAD Studio Progressive Web App (PWA) Service Worker +const CACHE_NAME = "snapcad-v1.2.0"; +const PRECACHE_ASSETS = [ + "/", + "/manifest.json", + "/icons/icon-192.png", + "/icons/icon-512.png", + "/icons/icon-maskable-192.png", + "/icons/icon-maskable-512.png", + "/icons/apple-touch-icon.png", +]; + +// Ağ hatasında her zaman geçerli bir Response döndür. respondWith(undefined) +// "Failed to convert value to 'Response'" hatasına ve boş sayfaya yol açar. +function gatewayTimeoutResponse() { + return new Response("", { status: 504, statusText: "Gateway Timeout" }); +} + +function offlinePageResponse() { + return new Response( + "SnapCAD Studio çevrimdışı" + + "

Bağlantı kurulamadı

" + + "

SnapCAD Studio şu anda yüklenemedi. İnternet bağlantınızı kontrol edip sayfayı yenileyin.

", + { status: 503, statusText: "Offline", headers: { "Content-Type": "text/html; charset=utf-8" } }, + ); +} + +// Install Event - Pre-cache essential app shell +self.addEventListener("install", (event) => { + event.waitUntil( + caches + .open(CACHE_NAME) + .then((cache) => { + return cache.addAll(PRECACHE_ASSETS).catch((err) => { + console.warn("[SnapCAD SW] Precache warning:", err); + }); + }) + .then(() => self.skipWaiting()), + ); +}); + +// Activate Event - Clean up stale cache versions +self.addEventListener("activate", (event) => { + event.waitUntil( + caches + .keys() + .then((keys) => { + return Promise.all( + keys + .filter((key) => key !== CACHE_NAME) + .map((key) => caches.delete(key)), + ); + }) + .then(() => self.clients.claim()), + ); +}); + +// Fetch Event - Resilient caching strategies +self.addEventListener("fetch", (event) => { + const { request } = event; + const url = new URL(request.url); + + // Never cache non-GET requests or backend API endpoints + if ( + request.method !== "GET" || + url.pathname.startsWith("/api/") || + url.pathname.endsWith(".php") + ) { + return; + } + + // Cross-origin istekleri (ör. Cloudflare Analytics beacon) service worker'a + // sokma; aksi hâlde önbellekte olmayan istekler undefined döndürür. + if (url.origin !== self.location.origin) { + return; + } + + // Strategy 1: Cache-First for Immutable WebAssembly Runtimes + if ( + url.pathname.endsWith(".wasm") || + url.pathname.includes("/occt/") || + url.pathname.includes("/dwgdxf/") || + url.pathname.includes("/libredwg/") + ) { + event.respondWith( + caches.match(request).then(async (cached) => { + if (cached) return cached; + try { + const response = await fetch(request); + if (response && response.status === 200) { + const clone = response.clone(); + caches.open(CACHE_NAME).then((cache) => cache.put(request, clone)); + } + return response; + } catch { + return gatewayTimeoutResponse(); + } + }), + ); + return; + } + + // Strategy 2: Stale-While-Revalidate for Static Assets (_next/static, icons, images) + if ( + url.pathname.startsWith("/_next/static/") || + url.pathname.startsWith("/icons/") || + url.pathname.startsWith("/assets/") + ) { + event.respondWith( + caches.match(request).then(async (cached) => { + const fetchPromise = fetch(request) + .then((networkResponse) => { + if (networkResponse && networkResponse.status === 200) { + const clone = networkResponse.clone(); + caches.open(CACHE_NAME).then((cache) => cache.put(request, clone)); + } + return networkResponse; + }) + .catch(() => cached || gatewayTimeoutResponse()); + + return cached || fetchPromise; + }), + ); + return; + } + + // Strategy 3: Network-First with Offline Fallback for HTML Pages / Navigation + if (request.mode === "navigate") { + event.respondWith( + fetch(request) + .then((response) => { + if (response && response.status === 200) { + const clone = response.clone(); + caches.open(CACHE_NAME).then((cache) => cache.put(request, clone)); + } + return response; + }) + .catch(async () => { + const cached = await caches.match(request); + if (cached) return cached; + const fallback = await caches.match("/"); + return fallback || offlinePageResponse(); + }), + ); + return; + } + + // Default: Network with Cache Fallback + event.respondWith( + fetch(request).catch(async () => { + const cached = await caches.match(request); + return cached || gatewayTimeoutResponse(); + }), + ); +}); + +// Listen for message to skip waiting on update +self.addEventListener("message", (event) => { + if (event.data && event.data.type === "SKIP_WAITING") { + self.skipWaiting(); + } +}); diff --git a/apps/web/src/app/api/app-update/route.ts b/apps/web/src/app/api/app-update/route.ts index b160eb3..99dc176 100644 --- a/apps/web/src/app/api/app-update/route.ts +++ b/apps/web/src/app/api/app-update/route.ts @@ -8,7 +8,6 @@ import { appUpdateIsAvailable, OFFICIAL_UPDATE_GUIDE_URL, type AppUpdateStatus } import { SKF_CREATED_WITH_VERSION } from "@/lib/skfProject"; export const runtime = "nodejs"; -export const dynamic = "force-dynamic"; export const revalidate = false; const DEFAULT_MANIFEST_URL = "https://raw.githubusercontent.com/Formsmith746/SketchForge-3D/main/package.json"; diff --git a/apps/web/src/app/gizlilik/page.tsx b/apps/web/src/app/gizlilik/page.tsx new file mode 100644 index 0000000..960c0a9 --- /dev/null +++ b/apps/web/src/app/gizlilik/page.tsx @@ -0,0 +1,7 @@ +"use client"; + +import KVKKPage from "../kvkk/page"; + +export default function GizlilikPage() { + return ; +} diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css index 0f9447f..b558ffa 100644 --- a/apps/web/src/app/globals.css +++ b/apps/web/src/app/globals.css @@ -1,4 +1,4 @@ -@import "tailwindcss"; +@import "tailwindcss"; :root { --background: #fafafa; @@ -663,6 +663,15 @@ button { background: #eef3f6; } +.dashboard-action-tile.snapcad-tile-classrooms .dashboard-action-icon { + background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%) !important; + color: #ffffff !important; +} + +.dashboard-action-tile.snapcad-tile-classrooms:hover { + border-color: #818cf8; +} + .dashboard-action-tile span:last-child { min-width: 0; overflow-wrap: anywhere; @@ -2892,7 +2901,7 @@ button { .export-format-slider { position: relative; display: grid; - grid-template-columns: repeat(5, minmax(0, 1fr)); + grid-template-columns: repeat(7, minmax(0, 1fr)); height: 38px; padding: 3px; overflow: hidden; @@ -2906,7 +2915,7 @@ button { top: 3px; bottom: 3px; left: 3px; - width: calc((100% - 6px) / 5); + width: calc((100% - 6px) / 7); content: ""; background: #fff; border: 1px solid #a9dce9; @@ -2915,6 +2924,10 @@ button { transition: transform 180ms ease; } +.export-format-slider[data-format="stl"]::before { + transform: translateX(0%); +} + .export-format-slider[data-format="obj"]::before { transform: translateX(100%); } @@ -2923,14 +2936,22 @@ button { transform: translateX(200%); } -.export-format-slider[data-format="svg"]::before { +.export-format-slider[data-format="dxf"]::before { transform: translateX(300%); } -.export-format-slider[data-format="skf"]::before { +.export-format-slider[data-format="svg"]::before { transform: translateX(400%); } +.export-format-slider[data-format="glb"]::before { + transform: translateX(500%); +} + +.export-format-slider[data-format="skf"]::before { + transform: translateX(600%); +} + .export-format-slider button { position: relative; z-index: 1; @@ -4907,8 +4928,8 @@ button { width: 320px; max-height: none; overflow-y: auto; - -ms-overflow-style: none; - scrollbar-width: none; + scrollbar-width: thin; + scrollbar-color: rgba(148, 163, 184, 0.5) transparent; color: #243d56; background: rgba(244, 246, 248, 0.96); border-left: 1px solid #d8e0e7; @@ -4927,7 +4948,17 @@ button { } .shape-inspector::-webkit-scrollbar { - display: none; + width: 6px; + display: block; +} + +.shape-inspector::-webkit-scrollbar-track { + background: transparent; +} + +.shape-inspector::-webkit-scrollbar-thumb { + background: rgba(148, 163, 184, 0.45); + border-radius: 4px; } .shape-inspector-header { @@ -8678,3 +8709,5947 @@ html[data-theme="dark"] .nameplate-fillet-coachmark { animation: none; } } + +/* ============================================================================ + SnapCAD Studios: Codeblocks (Kod Blokları) & Circuits (Elektronik Devreler) + ============================================================================ */ + +.snapcad-actions-band { + grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)) !important; +} + +.snapcad-tile-circuits .dashboard-action-icon { + background: rgba(16, 185, 129, 0.14); + color: #059669; +} + +.snapcad-tile-codeblocks .dashboard-action-icon { + background: rgba(124, 58, 237, 0.14); + color: #7c3aed; +} + +.snapcad-studio-wrap { + display: flex; + flex-direction: column; + gap: 18px; + padding-bottom: 32px; +} + +.snapcad-studio-header { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 16px; + padding: 20px 24px; + background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); + color: #f8fafc; + border-radius: 16px; + box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18); +} + +.snapcad-studio-badge { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 4px 10px; + border-radius: 999px; + background: rgba(56, 189, 248, 0.18); + color: #38bdf8; + font-size: 11px; + font-weight: 800; + letter-spacing: 0.04em; + text-transform: uppercase; + margin-bottom: 6px; +} + +.snapcad-studio-badge.circuits { + background: rgba(16, 185, 129, 0.2); + color: #34d399; +} + +.snapcad-studio-header h1 { + margin: 0 0 4px; + font-size: 22px; + font-weight: 800; + color: #ffffff; +} + +.snapcad-studio-header p { + margin: 0; + font-size: 13.5px; + color: #cbd5e1; + max-width: 680px; +} + +.snapcad-studio-actions { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 10px; +} + +.snapcad-project-name-input { + height: 40px; + padding: 0 14px; + border-radius: 10px; + border: 1px solid rgba(148, 163, 184, 0.35); + background: rgba(15, 23, 42, 0.65); + color: #f8fafc; + font-size: 13.5px; + font-weight: 700; + min-width: 220px; +} + +.snapcad-btn { + display: inline-flex; + align-items: center; + gap: 8px; + height: 40px; + padding: 0 16px; + border-radius: 10px; + font-size: 13px; + font-weight: 800; + cursor: pointer; + border: 1px solid transparent; + transition: all 0.16s ease; +} + +.snapcad-btn.primary { + background: linear-gradient(135deg, #0ea5e9, #0284c7); + color: #ffffff; + box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35); +} + +.snapcad-btn.primary:hover { + transform: translateY(-1px); + filter: brightness(1.06); +} + +.snapcad-btn.success { + background: linear-gradient(135deg, #10b981, #059669); + color: #ffffff; + box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); +} + +.snapcad-btn.danger { + background: linear-gradient(135deg, #ef4444, #dc2626); + color: #ffffff; +} + +.snapcad-btn.secondary { + background: rgba(255, 255, 255, 0.1); + color: #f1f5f9; + border-color: rgba(255, 255, 255, 0.18); +} + +.snapcad-btn.secondary:hover { + background: rgba(255, 255, 255, 0.18); +} + +.snapcad-btn.secondary.active { + background: rgba(56, 189, 248, 0.24); + border-color: #38bdf8; + color: #ffffff; +} + +.snapcad-templates-row { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px; + padding: 10px 14px; + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 12px; +} + +.snapcad-templates-label { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 12.5px; + font-weight: 800; + color: #334155; + margin-right: 4px; +} + +.snapcad-template-chip { + padding: 6px 12px; + border-radius: 999px; + background: #f1f5f9; + border: 1px solid #cbd5e1; + color: #1e293b; + font-size: 12.5px; + font-weight: 700; + cursor: pointer; + transition: all 0.15s ease; +} + +.snapcad-template-chip:hover { + background: #e0f2fe; + border-color: #38bdf8; + color: #0369a1; +} + +/* Codeblocks Grid */ +.snapcad-codeblocks-grid { + display: grid; + grid-template-columns: 250px minmax(360px, 1.15fr) minmax(320px, 0.95fr); + gap: 16px; + align-items: start; +} + +@media (max-width: 1280px) { + .snapcad-codeblocks-grid { + grid-template-columns: 1fr; + } +} + +.snapcad-palette-panel, +.snapcad-workspace-panel, +.snapcad-preview-panel { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 16px; + box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); +} + +.snapcad-palette-group { + margin-bottom: 16px; +} + +.snapcad-palette-group:last-child { + margin-bottom: 0; +} + +.snapcad-palette-group h3 { + display: flex; + align-items: center; + gap: 7px; + margin: 0 0 10px; + font-size: 13px; + font-weight: 800; + text-transform: uppercase; + letter-spacing: 0.03em; +} + +.snapcad-palette-items { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 7px; +} + +.snapcad-palette-btn { + display: flex; + align-items: center; + gap: 6px; + padding: 8px 10px; + border-radius: 9px; + background: #f8fafc; + border: 1px solid #e2e8f0; + border-left: 4px solid #0284c7; + color: #1e293b; + font-size: 12px; + font-weight: 750; + cursor: pointer; + text-align: left; + transition: all 0.14s ease; +} + +.snapcad-palette-btn:hover { + background: #f0f9ff; + transform: translateY(-1px); + box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06); +} + +.snapcad-panel-header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 12px; + padding-bottom: 10px; + border-bottom: 1px solid #e2e8f0; +} + +.snapcad-panel-header strong { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 14px; + font-weight: 800; + color: #0f172a; +} + +.snapcad-panel-header span { + font-size: 12px; + font-weight: 700; + color: #64748b; +} + +.snapcad-block-stack { + display: flex; + flex-direction: column; + gap: 10px; + max-height: 620px; + overflow-y: auto; + padding-right: 4px; +} + +.snapcad-block-card { + border: 1px solid #dbe4ee; + border-left: 5px solid #0284c7; + border-radius: 11px; + background: #f8fafc; + padding: 10px 12px; +} + +.snapcad-block-card.disabled { + opacity: 0.5; +} + +.snapcad-block-top { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 8px; +} + +.snapcad-block-index { + font-size: 11px; + font-weight: 800; + color: #ffffff; + background: #334155; + padding: 2px 7px; + border-radius: 999px; +} + +.snapcad-block-title { + font-size: 13px; + font-weight: 800; + color: #0f172a; + flex: 1; +} + +.snapcad-block-controls { + display: flex; + align-items: center; + gap: 4px; +} + +.snapcad-block-controls button { + width: 26px; + height: 26px; + border-radius: 6px; + border: 1px solid #cbd5e1; + background: #ffffff; + color: #475569; + display: grid; + place-items: center; + cursor: pointer; +} + +.snapcad-block-controls button:hover { + background: #f1f5f9; + color: #0f172a; +} + +.snapcad-block-controls button.danger:hover { + background: #fee2e2; + border-color: #fca5a5; + color: #dc2626; +} + +.snapcad-block-fields { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px; +} + +.snapcad-block-fields label { + display: inline-flex; + align-items: center; + gap: 5px; + background: #ffffff; + border: 1px solid #cbd5e1; + border-radius: 7px; + padding: 4px 8px; + font-size: 11.5px; + font-weight: 700; + color: #475569; +} + +.snapcad-block-fields input[type="number"], +.snapcad-block-fields select { + width: 58px; + border: none; + background: transparent; + font-size: 12px; + font-weight: 800; + color: #0f172a; + outline: none; +} + +.snapcad-block-fields select { + width: auto; +} + +.snapcad-block-fields input[type="color"] { + width: 24px; + height: 22px; + border: none; + padding: 0; + background: transparent; + cursor: pointer; +} + +.snapcad-shape-summary-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 8px; + margin-bottom: 12px; +} + +.snapcad-stat-box { + background: #f1f5f9; + border: 1px solid #e2e8f0; + border-radius: 10px; + padding: 10px; + text-align: center; +} + +.snapcad-stat-box strong { + display: block; + font-size: 20px; + font-weight: 900; + color: #0284c7; +} + +.snapcad-stat-box span { + font-size: 11.5px; + font-weight: 700; + color: #475569; +} + +.snapcad-generated-list { + display: flex; + flex-direction: column; + gap: 6px; + max-height: 280px; + overflow-y: auto; + margin-bottom: 14px; +} + +.snapcad-generated-item { + display: flex; + align-items: center; + gap: 8px; + padding: 7px 10px; + border-radius: 8px; + background: #f8fafc; + border: 1px solid #e2e8f0; + font-size: 12px; +} + +.snapcad-swatch { + width: 14px; + height: 14px; + border-radius: 4px; + flex-shrink: 0; +} + +.snapcad-generated-name { + font-weight: 750; + color: #1e293b; + flex: 1; +} + +.snapcad-generated-coords { + font-family: monospace; + font-size: 11px; + color: #64748b; +} + +.snapcad-code-preview { + background: #0f172a; + color: #38bdf8; + padding: 12px; + border-radius: 10px; + font-size: 11.5px; + line-height: 1.5; + overflow-x: auto; + max-height: 220px; + margin: 0 0 12px; +} + +.snapcad-preview-cta { + margin-top: 8px; +} + +.snapcad-full-width { + width: 100%; + justify-content: center; +} + +/* Circuits Studio */ +.snapcad-circuits-grid { + display: grid; + grid-template-columns: 230px minmax(480px, 1fr); + gap: 16px; + align-items: start; +} + +.snapcad-circuits-grid.with-code { + grid-template-columns: 220px minmax(420px, 1fr) 360px; +} + +@media (max-width: 1280px) { + .snapcad-circuits-grid, + .snapcad-circuits-grid.with-code { + grid-template-columns: 1fr; + } +} + +.snapcad-component-add-list { + display: flex; + flex-direction: column; + gap: 7px; +} + +.snapcad-component-add-btn { + display: flex; + align-items: center; + gap: 8px; + padding: 9px 12px; + border-radius: 9px; + background: #f8fafc; + border: 1px solid #e2e8f0; + color: #1e293b; + font-size: 12.5px; + font-weight: 750; + cursor: pointer; + transition: all 0.14s ease; +} + +.snapcad-component-add-btn:hover { + background: #ecfdf5; + border-color: #10b981; + color: #047857; +} + +.snapcad-wire-colors { + display: flex; + flex-wrap: wrap; + gap: 7px; +} + +.snapcad-wire-swatch { + width: 26px; + height: 26px; + border-radius: 999px; + border: 2px solid rgba(15, 23, 42, 0.2); + cursor: pointer; +} + +.snapcad-wire-swatch.active { + box-shadow: 0 0 0 3px #38bdf8; + transform: scale(1.1); +} + +.snapcad-inspector-controls { + display: flex; + flex-direction: column; + gap: 10px; + font-size: 12.5px; +} + +.snapcad-inspector-controls label { + display: flex; + flex-direction: column; + gap: 5px; + font-weight: 700; + color: #334155; +} + +.snapcad-canvas-panel { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 14px; +} + +.snapcad-sim-indicator { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 12px; + font-weight: 800; + color: #64748b; +} + +.snapcad-sim-indicator.running { + color: #059669; +} + +.snapcad-circuit-canvas { + position: relative; + width: 100%; + height: 540px; + background-color: #0f172a; + background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px); + background-size: 20px 20px; + border-radius: 12px; + overflow: hidden; + border: 1px solid #1e293b; + user-select: none; +} + +.snapcad-wires-svg { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 2; +} + +.snapcad-wire-path { + pointer-events: stroke; + cursor: pointer; + transition: stroke-width 0.12s ease; +} + +.snapcad-wire-path:hover { + stroke-width: 6px; +} + +.snapcad-circuit-node { + position: absolute; + z-index: 3; + background: #1e293b; + border: 2px solid #334155; + border-radius: 12px; + color: #f8fafc; + box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); +} + +.snapcad-circuit-node.selected { + border-color: #38bdf8; + box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), 0 10px 24px rgba(0, 0, 0, 0.4); +} + +.snapcad-circuit-node.type-arduino_uno { + background: #005c73; + border-color: #0081a1; +} + +.snapcad-circuit-node.type-breadboard { + background: #f8fafc; + color: #1e293b; + border-color: #cbd5e1; +} + +.snapcad-node-drag-handle { + display: flex; + align-items: center; + justify-content: space-between; + padding: 6px 10px; + background: rgba(15, 23, 42, 0.45); + border-radius: 10px 10px 0 0; + font-size: 11.5px; + font-weight: 800; + cursor: grab; + color: #f8fafc; +} + +.snapcad-node-body { + padding: 8px 10px; + font-size: 11.5px; +} + +.snapcad-arduino-chip { + display: flex; + flex-direction: column; + gap: 4px; +} + +.snapcad-arduino-leds { + display: flex; + gap: 8px; + margin-top: 4px; +} + +.snapcad-led-pill { + padding: 2px 7px; + border-radius: 999px; + background: rgba(0, 0, 0, 0.35); + font-size: 10px; + font-weight: 800; +} + +.snapcad-led-pill.on { + background: #22c55e; + color: #052e16; + box-shadow: 0 0 10px #22c55e; +} + +.snapcad-led-pill.amber.on { + background: #f59e0b; + color: #451a03; + box-shadow: 0 0 10px #f59e0b; +} + +.snapcad-breadboard-visual { + padding: 6px; +} + +.snapcad-bb-rail { + height: 4px; + margin: 4px 0; + border-radius: 2px; +} + +.snapcad-bb-rail.pos { + background: #ef4444; +} + +.snapcad-bb-rail.neg { + background: #3b82f6; +} + +.snapcad-bb-trench { + text-align: center; + font-size: 10px; + font-weight: 700; + color: #64748b; + padding: 8px 0; +} + +.snapcad-led-visual { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} + +.snapcad-led-bulb { + width: 28px; + height: 28px; + border-radius: 50% 50% 25% 25%; + border: 2px solid rgba(255, 255, 255, 0.5); + transition: all 0.15s ease; +} + +.snapcad-pushbtn-actor { + width: 100%; + padding: 6px; + border-radius: 7px; + border: 1px solid #475569; + background: #334155; + color: #f8fafc; + font-size: 11px; + font-weight: 800; + cursor: pointer; +} + +.snapcad-pushbtn-actor.pressed { + background: #22c55e; + color: #052e16; +} + +.snapcad-multimeter-screen { + background: #022c22; + color: #34d399; + font-family: monospace; + font-size: 16px; + font-weight: 900; + padding: 6px 10px; + border-radius: 6px; + text-align: center; + border: 1px solid #059669; +} + +.snapcad-pin-dot { + position: absolute; + width: 12px; + height: 12px; + border-radius: 50%; + background: #fbbf24; + border: 2px solid #0f172a; + cursor: crosshair; + z-index: 5; + padding: 0; +} + +.snapcad-pin-dot:hover, +.snapcad-pin-dot.active { + background: #38bdf8; + transform: scale(1.35); +} + +.snapcad-pin-dot span { + position: absolute; + top: -16px; + left: 50%; + transform: translateX(-50%); + background: rgba(15, 23, 42, 0.92); + color: #f8fafc; + font-size: 9px; + font-weight: 800; + padding: 1px 4px; + border-radius: 3px; + white-space: nowrap; + pointer-events: none; + opacity: 0; + transition: opacity 0.12s ease; +} + +.snapcad-pin-dot:hover span { + opacity: 1; +} + +.snapcad-wires-bar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 6px; + margin-top: 10px; + font-size: 12px; + color: #475569; +} + +.snapcad-wire-tag { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 3px 8px; + border-radius: 999px; + background: #f8fafc; + border: 1.5px solid #cbd5e1; + font-size: 11px; + font-weight: 700; + cursor: pointer; +} + +.snapcad-code-panel { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 14px; + display: flex; + flex-direction: column; +} + +.snapcad-arduino-editor { + width: 100%; + height: 290px; + background: #0f172a; + color: #e2e8f0; + border: 1px solid #1e293b; + border-radius: 10px; + padding: 12px; + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 12px; + line-height: 1.5; + resize: vertical; +} + +.snapcad-serial-monitor { + background: #020617; + color: #22c55e; + border-radius: 10px; + padding: 10px 12px; + height: 170px; + overflow-y: auto; + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 11.5px; + display: flex; + flex-direction: column; + gap: 4px; +} + +.snapcad-pill-badge { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 4px 10px; + border-radius: 999px; + background: rgba(56, 189, 248, 0.2); + color: #38bdf8; + font-size: 11px; + font-weight: 800; + letter-spacing: 0.04em; + text-transform: uppercase; + margin-bottom: 6px; +} + +.snapcad-studio-header h2 { + margin: 0 0 4px; + font-size: 21px; + font-weight: 800; + color: #ffffff; +} + +.snapcad-project-input { + height: 40px; + padding: 0 14px; + border-radius: 10px; + border: 1px solid rgba(148, 163, 184, 0.35); + background: rgba(15, 23, 42, 0.65); + color: #f8fafc; + font-size: 13.5px; + font-weight: 700; + min-width: 210px; +} + +.snapcad-btn-primary, +.snapcad-btn-secondary, +.snapcad-btn-sim { + display: inline-flex; + align-items: center; + gap: 8px; + height: 40px; + padding: 0 16px; + border-radius: 10px; + font-size: 13px; + font-weight: 800; + cursor: pointer; + border: 1px solid transparent; + transition: all 0.16s ease; +} + +.snapcad-btn-primary { + background: linear-gradient(135deg, #0ea5e9, #0284c7); + color: #ffffff; + box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35); +} + +.snapcad-btn-primary.full { + width: 100%; + justify-content: center; + margin-top: 10px; +} + +.snapcad-btn-secondary { + background: rgba(255, 255, 255, 0.1); + color: #f1f5f9; + border-color: rgba(255, 255, 255, 0.2); +} + +.snapcad-btn-sim { + background: linear-gradient(135deg, #10b981, #059669); + color: #ffffff; + box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); +} + +.snapcad-btn-sim.running { + background: linear-gradient(135deg, #ef4444, #dc2626); + box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35); +} + +.snapcad-templates-bar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px; + padding: 10px 14px; + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 12px; +} + +.snapcad-template-chip { + display: inline-flex; + align-items: center; + gap: 8px; +} + +.snapcad-template-chip span { + font-size: 10.5px; + padding: 2px 7px; + border-radius: 999px; + background: #e2e8f0; + color: #334155; +} + +.snapcad-wire-color-picker { + display: inline-flex; + align-items: center; + gap: 6px; + margin-left: auto; + font-size: 12px; + font-weight: 800; + color: #334155; +} + +.snapcad-palette-card, +.snapcad-blocks-canvas, +.snapcad-summary-card { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 16px; + box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); +} + +.snapcad-palette-card h3, +.snapcad-summary-card h3 { + margin: 0 0 12px; + font-size: 15px; + font-weight: 800; + color: #0f172a; +} + +.snapcad-palette-cat { + display: block; + font-size: 11px; + font-weight: 800; + text-transform: uppercase; + letter-spacing: 0.04em; + color: #64748b; + margin-bottom: 6px; +} + +.snapcad-palette-group { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 14px; +} + +.snapcad-btn-clear { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + width: 100%; + padding: 8px 10px; + border-radius: 8px; + background: #fef2f2; + border: 1px solid #fecaca; + color: #dc2626; + font-size: 12px; + font-weight: 800; + cursor: pointer; +} + +.snapcad-code-preview-box pre { + background: #0f172a; + color: #38bdf8; + padding: 14px; + border-radius: 10px; + font-size: 12px; + line-height: 1.55; + overflow-x: auto; + margin: 0; +} + +.snapcad-empty-blocks { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 8px; + padding: 48px 20px; + text-align: center; + color: #64748b; +} + +.snapcad-summary-hint { + margin: 0 0 12px; + font-size: 12px; + line-height: 1.45; + color: #475569; +} + +.snapcad-shape-preview-list { + display: flex; + flex-direction: column; + gap: 7px; + max-height: 390px; + overflow-y: auto; +} + +.snapcad-shape-preview-row { + display: flex; + align-items: center; + gap: 9px; + padding: 8px 10px; + border-radius: 9px; + background: #f8fafc; + border: 1px solid #e2e8f0; +} + +.snapcad-shape-dot { + width: 16px; + height: 16px; + border-radius: 4px; + flex-shrink: 0; + border: 1px solid rgba(15, 23, 42, 0.2); +} + +.snapcad-shape-preview-info { + display: flex; + flex-direction: column; + gap: 2px; +} + +.snapcad-shape-preview-info strong { + font-size: 12.5px; + color: #0f172a; +} + +.snapcad-shape-preview-info small { + font-size: 11px; + color: #64748b; +} + +.snapcad-component-list { + display: flex; + flex-direction: column; + gap: 6px; + margin-bottom: 14px; +} + +.snapcad-component-list button { + display: flex; + align-items: center; + gap: 8px; + padding: 8px 10px; + border-radius: 8px; + background: #f8fafc; + border: 1px solid #e2e8f0; + color: #1e293b; + font-size: 12px; + font-weight: 750; + cursor: pointer; + text-align: left; +} + +.snapcad-component-list button:hover { + background: #ecfdf5; + border-color: #10b981; + color: #047857; +} + +.snapcad-comp-inspector { + padding: 12px; + border-radius: 10px; + background: #f8fafc; + border: 1px solid #cbd5e1; + margin-bottom: 12px; + display: flex; + flex-direction: column; + gap: 8px; +} + +.snapcad-comp-inspector-head { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 12.5px; + color: #0f172a; +} + +.snapcad-comp-inspector-head button.danger { + background: #fee2e2; + border: 1px solid #fca5a5; + color: #dc2626; + border-radius: 6px; + padding: 4px 6px; + cursor: pointer; +} + +.snapcad-comp-inspector label { + display: flex; + flex-direction: column; + gap: 4px; + font-size: 11.5px; + font-weight: 700; + color: #334155; +} + +.snapcad-comp-inspector input[type="text"], +.snapcad-comp-inspector input[type="number"], +.snapcad-comp-inspector select { + height: 30px; + padding: 0 8px; + border-radius: 6px; + border: 1px solid #cbd5e1; + background: #ffffff; + font-size: 12px; + font-weight: 700; +} + +.snapcad-canvas-hint { + position: absolute; + top: 10px; + left: 12px; + right: 12px; + z-index: 4; + padding: 6px 12px; + border-radius: 8px; + background: rgba(15, 23, 42, 0.82); + border: 1px solid rgba(148, 163, 184, 0.25); + color: #cbd5e1; + font-size: 11.5px; + font-weight: 600; + pointer-events: none; +} + +.snapcad-canvas-hint .wiring-active { + color: #38bdf8; + font-weight: 800; +} + +.snapcad-circuit-node { + padding: 10px 14px; + min-width: 110px; + cursor: grab; +} + +.snapcad-circuit-node.kind-arduino_uno { + width: 210px; + min-height: 210px; + background: #005c73; + border-color: #0081a1; +} + +.snapcad-circuit-node.kind-breadboard { + width: 250px; + min-height: 145px; + background: #f8fafc; + color: #1e293b; + border-color: #cbd5e1; +} + +.snapcad-node-title { + font-size: 11.5px; + font-weight: 800; + margin-bottom: 6px; +} + +.snapcad-uno-body { + display: flex; + flex-direction: column; + gap: 8px; + padding-top: 18px; +} + +.snapcad-uno-chip { + background: #0f172a; + color: #94a3b8; + font-family: monospace; + font-size: 10px; + padding: 6px 10px; + border-radius: 4px; + text-align: center; +} + +.snapcad-uno-leds { + display: flex; + gap: 6px; +} + +.uno-led { + padding: 2px 6px; + border-radius: 999px; + background: rgba(0, 0, 0, 0.35); + font-size: 9.5px; + font-weight: 800; + color: #94a3b8; +} + +.uno-led.on.lit { + background: #22c55e; + color: #052e16; + box-shadow: 0 0 8px #22c55e; +} + +.uno-led.l.lit, +.uno-led.tx.lit { + background: #f59e0b; + color: #451a03; + box-shadow: 0 0 8px #f59e0b; +} + +.snapcad-bb-body { + display: flex; + flex-direction: column; + gap: 8px; + font-size: 10px; + font-weight: 800; +} + +.bb-rail.plus { + color: #dc2626; + border-bottom: 2px solid #ef4444; + padding-bottom: 2px; +} + +.bb-rail.minus { + color: #2563eb; + border-top: 2px solid #3b82f6; + padding-top: 2px; +} + +.bb-grid-holes { + height: 44px; + background-image: radial-gradient(#94a3b8 1.5px, transparent 1.5px); + background-size: 10px 10px; +} + +.snapcad-led-body, +.snapcad-resistor-body, +.snapcad-btn-body, +.snapcad-pot-body, +.snapcad-ult-body, +.snapcad-servo-body, +.snapcad-buzzer-body, +.snapcad-multimeter-body { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} + +.tactile-cap { + padding: 6px 12px; + border-radius: 6px; + background: #334155; + color: #f8fafc; + border: 1px solid #64748b; + font-size: 10.5px; + font-weight: 800; + cursor: pointer; +} + +.tactile-cap.pressed { + background: #22c55e; + color: #052e16; +} + +.ult-eyes { + display: flex; + gap: 8px; +} + +.ult-eye { + width: 24px; + height: 24px; + border-radius: 50%; + border: 2px solid #94a3b8; + display: grid; + place-items: center; + font-size: 9px; + font-weight: 800; +} + +.servo-disc { + width: 34px; + height: 34px; + border-radius: 50%; + background: #0284c7; + position: relative; + display: grid; + place-items: center; +} + +.servo-arm { + width: 28px; + height: 5px; + background: #f8fafc; + border-radius: 999px; + transition: transform 0.15s ease; +} + +.mm-screen { + background: #022c22; + color: #34d399; + font-family: monospace; + font-size: 15px; + font-weight: 900; + padding: 4px 10px; + border-radius: 6px; + border: 1px solid #059669; +} + +.snapcad-code-header, +.snapcad-serial-header { + display: flex; + align-items: center; + gap: 7px; + margin-bottom: 8px; + font-size: 12.5px; + color: #0f172a; +} + +.snapcad-serial-header { + margin-top: 12px; +} + +.snapcad-serial-header button { + margin-left: auto; + padding: 3px 8px; + border-radius: 6px; + border: 1px solid #cbd5e1; + background: #f8fafc; + font-size: 11px; + font-weight: 700; + cursor: pointer; +} + +/* --- Circuits Studio Professional Enhancements --- */ +.snapcad-circuits-toolbar { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 10px; + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 12px; + padding: 8px 14px; + margin-bottom: 12px; +} + +.snapcad-toolbar-group { + display: flex; + align-items: center; + gap: 6px; +} + +.snapcad-tool-btn { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 6px 10px; + border-radius: 8px; + background: #f8fafc; + border: 1px solid #cbd5e1; + color: #334155; + font-size: 11.5px; + font-weight: 750; + cursor: pointer; + transition: all 0.12s ease; +} + +.snapcad-tool-btn:hover:not(:disabled) { + background: #e2e8f0; + color: #0f172a; +} + +.snapcad-tool-btn:disabled { + opacity: 0.45; + cursor: not-allowed; +} + +.snapcad-tool-btn.active { + background: #0284c7; + color: #ffffff; + border-color: #0284c7; +} + +.snapcad-tool-btn.danger:hover { + background: #fef2f2; + border-color: #ef4444; + color: #b91c1c; +} + +.snapcad-sim-timer { + display: inline-flex; + align-items: center; + gap: 6px; + font-family: monospace; + font-size: 12px; + font-weight: 800; + padding: 5px 9px; + border-radius: 6px; + background: #0f172a; + color: #22c55e; +} + +.snapcad-category-pills { + display: flex; + flex-wrap: wrap; + gap: 5px; + margin-bottom: 10px; +} + +.snapcad-cat-pill { + padding: 4px 9px; + border-radius: 999px; + background: #f1f5f9; + border: 1px solid #e2e8f0; + color: #475569; + font-size: 11px; + font-weight: 700; + cursor: pointer; + transition: all 0.12s ease; +} + +.snapcad-cat-pill.active { + background: #0ea5e9; + color: #ffffff; + border-color: #0ea5e9; +} + +.snapcad-search-input { + width: 100%; + padding: 7px 10px; + border-radius: 8px; + border: 1px solid #cbd5e1; + font-size: 12px; + margin-bottom: 10px; + outline: none; +} + +.snapcad-search-input:focus { + border-color: #0ea5e9; + box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2); +} + +/* Node dimensions & skins */ +.snapcad-circuit-node.kind-arduino_uno { width: 250px; min-height: 180px; background: #005c73; border-color: #0081a1; } +.snapcad-circuit-node.kind-breadboard { width: 290px; min-height: 160px; background: #f8fafc; color: #1e293b; border-color: #cbd5e1; } +.snapcad-circuit-node.kind-breadboard_mini { width: 190px; min-height: 120px; background: #f8fafc; color: #1e293b; } +.snapcad-circuit-node.kind-battery_9v { width: 120px; min-height: 90px; background: #1e293b; } +.snapcad-circuit-node.kind-coin_cell { width: 100px; min-height: 80px; background: #334155; } +.snapcad-circuit-node.kind-rgb_led { width: 120px; min-height: 100px; background: #1e293b; } +.snapcad-circuit-node.kind-seven_segment { width: 110px; min-height: 125px; background: #0f172a; } +.snapcad-circuit-node.kind-dc_motor { width: 110px; min-height: 100px; background: #1e293b; } +.snapcad-circuit-node.kind-keypad4x4 { width: 140px; min-height: 150px; background: #0f172a; } +.snapcad-circuit-node.kind-relay { width: 130px; min-height: 90px; background: #0284c7; } +.snapcad-circuit-node.kind-oled128x64 { width: 130px; min-height: 105px; background: #0f172a; } +.snapcad-circuit-node.kind-neopixel_ring { width: 110px; min-height: 110px; background: #0f172a; } +.snapcad-circuit-node.kind-pir_sensor { width: 110px; min-height: 100px; background: #1e293b; } +.snapcad-circuit-node.kind-ultrasonic { width: 140px; min-height: 95px; background: #0284c7; } +.snapcad-circuit-node.kind-lcd16x2 { width: 180px; min-height: 105px; background: #064e3b; } + +.snapcad-comp-val { + font-size: 9.5px; + font-weight: 800; + color: #94a3b8; + text-align: center; +} + +/* Arduino Uno Header & Details */ +.snapcad-uno-header { + display: flex; + justify-content: space-between; + font-size: 7.5px; + font-weight: 900; + font-family: monospace; + color: #bae6fd; + padding: 0 4px; +} +.snapcad-uno-pcb-content { + display: flex; + justify-content: space-between; + align-items: center; + margin: 6px 0; +} +.uno-jack-usb { + display: flex; + flex-direction: column; + gap: 4px; +} +.uno-usb-port { + width: 32px; + height: 24px; + background: #cbd5e1; + color: #0f172a; + font-size: 8px; + font-weight: 900; + display: grid; + place-items: center; + border-radius: 3px; + border: 1px solid #94a3b8; +} +.uno-barrel-jack { + width: 28px; + height: 22px; + background: #0f172a; + color: #94a3b8; + font-size: 7.5px; + display: grid; + place-items: center; + border-radius: 3px; +} +.uno-center-area { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; + flex: 1; +} +.snapcad-uno-crystal { + font-size: 8px; + color: #cbd5e1; + background: #334155; + padding: 1px 4px; + border-radius: 3px; +} + +/* Breadboards */ +.bb-grid-holes-two-tier { + display: flex; + flex-direction: column; + gap: 2px; + padding: 4px; +} +.bb-tier { + font-size: 8px; + font-weight: 800; + color: #94a3b8; + letter-spacing: 4px; + text-align: center; +} +.bb-center-trench { + height: 6px; + background: #e2e8f0; + border-radius: 2px; +} +.snapcad-bb-mini-body { + display: flex; + flex-direction: column; + gap: 6px; +} +.bb-mini-label { + font-size: 9px; + font-weight: 800; + color: #64748b; + text-align: center; +} + +/* 9V Battery & CR2032 */ +.snapcad-battery-9v-body { + display: flex; + flex-direction: column; + align-items: center; + gap: 6px; + padding: 4px; +} +.battery-terminals { + display: flex; + gap: 20px; +} +.term { + width: 18px; + height: 18px; + border-radius: 50%; + display: grid; + place-items: center; + font-weight: 900; + font-size: 11px; +} +.term.pos { background: #ef4444; color: #ffffff; } +.term.neg { background: #0f172a; color: #ffffff; border: 1px solid #64748b; } +.battery-body-label { + font-size: 10px; + font-weight: 900; + color: #f59e0b; +} +.battery-status { + font-size: 8.5px; + font-family: monospace; + color: #38bdf8; +} +.snapcad-coincell-body { + display: flex; + justify-content: center; +} +.coincell-disc { + width: 50px; + height: 50px; + border-radius: 50%; + background: radial-gradient(#e2e8f0, #94a3b8); + border: 2px solid #cbd5e1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + color: #0f172a; + font-size: 8px; +} + +/* RGB LED */ +.snapcad-rgb-led-body { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} +.snapcad-rgb-lens { + width: 32px; + height: 32px; + border-radius: 50% 50% 25% 25%; + border: 2px solid rgba(255, 255, 255, 0.6); + transition: all 0.15s ease; +} + +/* 7-Segment */ +.snapcad-seven-seg-body { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} +.seven-seg-box { + position: relative; + width: 44px; + height: 64px; + background: #020617; + border: 1px solid #1e293b; + border-radius: 4px; +} +.seg { + position: absolute; + background: rgba(239, 68, 68, 0.15); + border-radius: 2px; + transition: all 0.12s ease; +} +.seg.on { + background: #ef4444; + box-shadow: 0 0 8px #ef4444; +} +.seg-a { top: 6px; left: 10px; width: 24px; height: 4px; } +.seg-b { top: 8px; right: 8px; width: 4px; height: 22px; } +.seg-c { bottom: 8px; right: 8px; width: 4px; height: 22px; } +.seg-d { bottom: 6px; left: 10px; width: 24px; height: 4px; } +.seg-e { bottom: 8px; left: 8px; width: 4px; height: 22px; } +.seg-f { top: 8px; left: 8px; width: 4px; height: 22px; } +.seg-g { top: 29px; left: 10px; width: 24px; height: 4px; } +.seg-dp { bottom: 6px; right: 2px; width: 4px; height: 4px; border-radius: 50%; } + +/* DC Motor & Propeller Animation */ +@keyframes propellerSpin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} +.snapcad-dc-motor-body { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} +.motor-casing { + width: 48px; + height: 48px; + border-radius: 50%; + background: #64748b; + border: 2px solid #94a3b8; + position: relative; + display: grid; + place-items: center; +} +.motor-propeller { + position: absolute; + width: 38px; + height: 38px; +} +.motor-propeller.spinning { + animation: propellerSpin 0.3s linear infinite; +} +.propeller-blade { + position: absolute; + top: 50%; + left: 50%; + width: 16px; + height: 6px; + background: #38bdf8; + border-radius: 999px; + transform-origin: left center; +} +.propeller-blade.b1 { transform: rotate(0deg); } +.propeller-blade.b2 { transform: rotate(120deg); } +.propeller-blade.b3 { transform: rotate(240deg); } + +/* Switch, Relay, PIR, OLED, NeoPixel */ +.switch-slider-track { + width: 44px; + height: 22px; + border-radius: 999px; + background: #334155; + border: 1px solid #475569; + position: relative; + cursor: pointer; + transition: background 0.15s ease; +} +.switch-slider-track.on { background: #22c55e; } +.switch-slider-thumb { + position: absolute; + top: 2px; + left: 2px; + width: 16px; + height: 16px; + border-radius: 50%; + background: #ffffff; + transition: transform 0.15s ease; +} +.switch-slider-track.on .switch-slider-thumb { transform: translateX(22px); } + +.relay-box { + width: 70px; + height: 36px; + background: #0284c7; + color: #ffffff; + font-size: 8.5px; + font-weight: 900; + border-radius: 4px; + display: flex; + align-items: center; + justify-content: space-around; + padding: 4px; +} +.relay-led { + width: 8px; + height: 8px; + border-radius: 50%; + background: #334155; +} +.relay-led.lit { background: #22c55e; box-shadow: 0 0 8px #22c55e; } + +.pir-dome { + width: 40px; + height: 40px; + border-radius: 50%; + background: radial-gradient(#ffffff, #cbd5e1); + border: 2px solid #94a3b8; + display: grid; + place-items: center; +} +.pir-dome.active { + box-shadow: 0 0 16px #38bdf8; +} +.pir-motion-btn { + padding: 3px 8px; + border-radius: 6px; + background: #334155; + color: #f8fafc; + font-size: 10px; + font-weight: 750; + cursor: pointer; +} +.pir-motion-btn.active { background: #0284c7; } + +.keypad-matrix { + display: grid; + gap: 3px; + background: #1e293b; + padding: 6px; + border-radius: 6px; +} +.keypad-row { + display: flex; + gap: 3px; +} +.keypad-btn { + width: 22px; + height: 20px; + background: #334155; + color: #f8fafc; + font-size: 9px; + font-weight: 900; + border-radius: 3px; + border: 1px solid #475569; + cursor: pointer; +} +.keypad-btn:active { background: #0284c7; } + +.oled-screen { + width: 100px; + height: 52px; + background: #000000; + color: #38bdf8; + font-family: monospace; + font-size: 8px; + padding: 4px; + border-radius: 3px; + border: 1px solid #1e293b; + display: flex; + flex-direction: column; + gap: 2px; + overflow: hidden; +} +.oled-screen.lit { color: #67e8f9; text-shadow: 0 0 3px rgba(103, 232, 249, 0.6); } + +.neopixel-ring { + position: relative; + width: 70px; + height: 70px; + border-radius: 50%; + background: #0f172a; + border: 2px solid #334155; +} +.neopixel-dot { + position: absolute; + width: 8px; + height: 8px; + border-radius: 50%; +} + +/* Serial Plotter */ +.snapcad-serial-plotter-wrap { + background: #090d16; + border-radius: 10px; + overflow: hidden; + border: 1px solid #1e293b; + margin-top: 8px; +} +.snapcad-plotter-canvas { + display: block; + width: 100%; + height: auto; +} + +/* Tabs for Code Panel */ +.snapcad-code-tabs { + display: flex; + gap: 4px; + border-bottom: 1px solid #e2e8f0; + padding-bottom: 6px; + margin-bottom: 8px; +} +.snapcad-code-tab { + padding: 5px 11px; + border-radius: 7px; + background: #f1f5f9; + color: #475569; + font-size: 11.5px; + font-weight: 750; + border: none; + cursor: pointer; +} +.snapcad-code-tab.active { + background: #0284c7; + color: #ffffff; +} + +/* Block Editor */ +.snapcad-blocks-editor-list { + display: flex; + flex-direction: column; + gap: 6px; + max-height: 280px; + overflow-y: auto; + padding-right: 4px; + margin-bottom: 8px; +} +.snapcad-block-card { + padding: 8px 10px; + border-radius: 8px; + background: #f8fafc; + border: 1.5px solid #cbd5e1; + font-size: 11px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 6px; +} +.snapcad-block-card.output { background: #f0fdf4; border-color: #86efac; color: #166534; } +.snapcad-block-card.control { background: #fffbeb; border-color: #fde68a; color: #92400e; } +.snapcad-block-card.input { background: #f0f9ff; border-color: #7dd3fc; color: #075985; } + +/* Libraries Modal / List */ +.snapcad-libraries-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + gap: 12px; + margin-top: 10px; +} +.snapcad-lib-card { + background: #f8fafc; + border: 1px solid #e2e8f0; + border-radius: 10px; + padding: 12px; + display: flex; + flex-direction: column; + gap: 6px; +} +.snapcad-lib-card-head { + display: flex; + align-items: center; + justify-content: space-between; +} +.snapcad-lib-card-head strong { font-size: 13px; color: #0f172a; } +.snapcad-lib-card p { font-size: 11.5px; color: #475569; margin: 0; line-height: 1.45; } + +/* --- Unified Project Dashboards & Galleries --- */ +.snapcad-projects-dashboard { + display: flex; + flex-direction: column; + gap: 20px; + width: 100%; +} + +.snapcad-dashboard-hero { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 16px; + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 20px 24px; + box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); +} + +.snapcad-dashboard-hero h2 { + font-size: 20px; + font-weight: 850; + color: #0f172a; + margin: 6px 0 4px; +} + +.snapcad-dashboard-hero p { + font-size: 13px; + color: #475569; + margin: 0; + max-width: 720px; + line-height: 1.5; +} + +.snapcad-dashboard-filter-bar { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 12px; +} + +.snapcad-search-box { + display: flex; + align-items: center; + gap: 8px; + background: #ffffff; + border: 1px solid #cbd5e1; + border-radius: 9px; + padding: 6px 12px; + min-width: 280px; + color: #64748b; +} + +.snapcad-search-box input { + border: none; + background: transparent; + outline: none; + font-size: 12.5px; + color: #0f172a; + width: 100%; +} + +.snapcad-filter-chips { + display: flex; + flex-wrap: wrap; + gap: 6px; +} + +.snapcad-filter-chip { + padding: 6px 12px; + border-radius: 999px; + background: #ffffff; + border: 1px solid #cbd5e1; + color: #475569; + font-size: 11.5px; + font-weight: 750; + cursor: pointer; + transition: all 0.12s ease; +} + +.snapcad-filter-chip:hover { + background: #f1f5f9; + border-color: #94a3b8; +} + +.snapcad-filter-chip.active { + background: #0ea5e9; + color: #ffffff; + border-color: #0ea5e9; +} + +/* Unified Project Card Styling */ +.snapcad-project-card { + display: flex; + flex-direction: column; + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 12px; + overflow: hidden; + box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); + transition: all 0.15s ease; + min-height: 290px; +} + +.snapcad-project-card:hover { + border-color: #0ea5e9; + box-shadow: 0 10px 24px rgba(14, 165, 233, 0.14); + transform: translateY(-2px); +} + +.snapcad-card-banner { + position: relative; + height: 128px; + display: flex; + flex-direction: column; + justify-content: space-between; + padding: 10px 12px; + overflow: hidden; +} + +.snapcad-card-banner.blueprint { + background: linear-gradient(135deg, #02476d 0%, #0369a1 100%); + color: #ffffff; +} + +.snapcad-card-banner.architectural { + background: linear-gradient(135deg, #1e293b 0%, #334155 100%); + color: #ffffff; +} + +.snapcad-card-banner.circuit { + background: linear-gradient(135deg, #062d3e 0%, #005c73 100%); + color: #ffffff; +} + +.snapcad-card-banner.codeblock { + background: linear-gradient(135deg, #311b92 0%, #4338ca 100%); + color: #ffffff; +} + +.snapcad-blueprint-grid { + position: absolute; + inset: 0; + background-image: + linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), + linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px); + background-size: 16px 16px; + pointer-events: none; +} + +.snapcad-circuit-schematic-bg { + position: absolute; + inset: 0; + background-image: + radial-gradient(rgba(56, 189, 248, 0.25) 1.5px, transparent 1.5px), + linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); + background-size: 14px 14px; + pointer-events: none; +} + +.snapcad-codeblock-grid { + position: absolute; + inset: 0; + background-image: + radial-gradient(rgba(192, 132, 252, 0.25) 1.5px, transparent 1.5px); + background-size: 12px 12px; + pointer-events: none; +} + +.snapcad-card-icon-badge { + position: relative; + z-index: 2; + align-self: flex-end; + display: inline-flex; + align-items: center; + gap: 5px; + padding: 3px 8px; + border-radius: 999px; + background: rgba(15, 23, 42, 0.65); + backdrop-filter: blur(4px); + color: #f8fafc; + font-size: 10px; + font-weight: 850; + letter-spacing: 0.03em; +} + +.snapcad-card-source-tag { + position: relative; + z-index: 2; + align-self: flex-start; + font-size: 9.5px; + font-weight: 800; + padding: 2px 7px; + border-radius: 4px; + background: rgba(255, 255, 255, 0.2); + backdrop-filter: blur(4px); + color: #ffffff; +} + +.snapcad-card-content { + padding: 12px 14px; + display: flex; + flex-direction: column; + gap: 4px; + flex: 1; +} + +.snapcad-card-head { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 2px; +} + +.snapcad-card-dept { + font-size: 10px; + font-weight: 850; + text-transform: uppercase; + color: #0284c7; + letter-spacing: 0.03em; +} + +.snapcad-card-std { + font-size: 10px; + font-weight: 800; + color: #64748b; + font-family: monospace; +} + +.snapcad-card-title { + font-size: 14px; + font-weight: 800; + color: #0f172a; + margin: 0; + line-height: 1.35; +} + +.snapcad-card-subtitle { + font-size: 11px; + color: #0ea5e9; + font-weight: 700; + margin: 0; +} + +.snapcad-card-desc { + font-size: 11.5px; + color: #475569; + margin: 4px 0 0; + line-height: 1.45; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; +} + +.snapcad-card-footer { + padding: 10px 14px; + background: #f8fafc; + border-top: 1px solid #e2e8f0; + display: flex; + align-items: center; + gap: 8px; +} + +.snapcad-btn-tinker { + flex: 1; + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + padding: 8px 12px; + border-radius: 8px; + background: #0ea5e9; + color: #ffffff; + border: none; + font-size: 12px; + font-weight: 800; + cursor: pointer; + transition: all 0.12s ease; + box-shadow: 0 2px 4px rgba(14, 165, 233, 0.25); +} + +.snapcad-btn-tinker:hover { + background: #0284c7; + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35); +} + +.snapcad-btn-ghost-icon { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 8px 10px; + border-radius: 8px; + background: #ffffff; + border: 1px solid #cbd5e1; + color: #334155; + font-size: 11.5px; + font-weight: 750; + cursor: pointer; + transition: all 0.12s ease; +} + +.snapcad-btn-ghost-icon:hover { + background: #f1f5f9; + border-color: #94a3b8; + color: #0f172a; +} + +/* ============================================================================ + SnapCAD Global Accessibility (WCAG AAA), Command Palette & Prefab Starters + ============================================================================ */ + +.snapcad-sr-svg-filters { + position: absolute; + width: 0; + height: 0; + pointer-events: none; +} + +/* Global Focus Ring for Keyboard Navigation */ +*:focus-visible { + outline: 3px solid #0ea5e9 !important; + outline-offset: 2px !important; +} + +/* UI Scale Modes */ +html[data-a11y-scale="115"] { + zoom: 1.08; +} + +html[data-a11y-scale="130"] { + zoom: 1.16; +} + +/* Dyslexic / Readable Font Mode */ +html[data-a11y-font="readable"] body, +html[data-a11y-font="readable"] button, +html[data-a11y-font="readable"] input, +html[data-a11y-font="readable"] select { + letter-spacing: 0.035em !important; + word-spacing: 0.08em !important; + line-height: 1.55 !important; +} + +/* Large Click Targets Mode */ +html[data-a11y-targets="large"] button, +html[data-a11y-targets="large"] select, +html[data-a11y-targets="large"] input[type="text"], +html[data-a11y-targets="large"] input[type="number"] { + min-height: 42px; +} + +html[data-a11y-targets="large"] .snapcad-pin-dot { + width: 17px; + height: 17px; +} + +/* Reduced Motion Mode */ +html[data-a11y-motion="reduced"] *, +html[data-a11y-motion="reduced"] *::before, +html[data-a11y-motion="reduced"] *::after { + animation-duration: 0.01ms !important; + transition-duration: 0.01ms !important; +} + +/* Colorblind Compensation Filters */ +html[data-a11y-colorblind="deuteranopia"] body { + filter: url(#snapcad-deuteranopia); +} + +html[data-a11y-colorblind="protanopia"] body { + filter: url(#snapcad-protanopia); +} + +html[data-a11y-colorblind="tritanopia"] body { + filter: url(#snapcad-tritanopia); +} + +/* High Contrast Mode (WCAG AAA) */ +html[data-a11y-contrast="high"] body { + background: #000000 !important; + color: #ffffff !important; +} + +html[data-a11y-contrast="high"] .dashboard-shell, +html[data-a11y-contrast="high"] .dashboard-main { + background: #020617 !important; + color: #ffffff !important; +} + +html[data-a11y-contrast="high"] .dashboard-topbar, +html[data-a11y-contrast="high"] .dashboard-sidebar, +html[data-a11y-contrast="high"] .project-card, +html[data-a11y-contrast="high"] .dashboard-action-tile, +html[data-a11y-contrast="high"] .snapcad-palette-card, +html[data-a11y-contrast="high"] .snapcad-blocks-canvas, +html[data-a11y-contrast="high"] .snapcad-summary-card, +html[data-a11y-contrast="high"] .snapcad-a11y-card, +html[data-a11y-contrast="high"] .snapcad-prefab-card, +html[data-a11y-contrast="high"] .snapcad-code-panel, +html[data-a11y-contrast="high"] .snapcad-templates-bar, +html[data-a11y-contrast="high"] .snapcad-home-starters { + background: #090d16 !important; + color: #ffffff !important; + border: 2px solid #facc15 !important; +} + +html[data-a11y-contrast="high"] h1, +html[data-a11y-contrast="high"] h2, +html[data-a11y-contrast="high"] h3, +html[data-a11y-contrast="high"] h4, +html[data-a11y-contrast="high"] strong, +html[data-a11y-contrast="high"] span, +html[data-a11y-contrast="high"] p, +html[data-a11y-contrast="high"] small { + color: #ffffff !important; +} + +/* Floating Accessibility & Command Dock */ +.snapcad-floating-a11y-dock { + position: fixed; + right: 18px; + bottom: 18px; + z-index: 9990; + display: flex; + align-items: center; + gap: 8px; + background: rgba(15, 23, 42, 0.92); + backdrop-filter: blur(10px); + padding: 6px; + border-radius: 999px; + border: 1px solid rgba(56, 189, 248, 0.35); + box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4); +} + +.snapcad-dock-btn { + display: inline-flex; + align-items: center; + gap: 6px; + height: 36px; + padding: 0 13px; + border-radius: 999px; + border: 1px solid transparent; + background: rgba(30, 41, 59, 0.9); + color: #f8fafc; + font-size: 12px; + font-weight: 800; + cursor: pointer; + transition: all 0.15s ease; +} + +.snapcad-dock-btn:hover { + background: #0284c7; + color: #ffffff; +} + +.snapcad-dock-btn.active { + background: #10b981; + color: #052e16; +} + +.snapcad-a11y-popover { + position: fixed; + right: 18px; + bottom: 70px; + width: 310px; + z-index: 9995; + background: #0f172a; + color: #f8fafc; + border: 1px solid #334155; + border-radius: 16px; + padding: 14px; + box-shadow: 0 20px 45px rgba(2, 6, 23, 0.55); +} + +.snapcad-a11y-popover-head { + display: flex; + align-items: center; + justify-content: space-between; + padding-bottom: 10px; + margin-bottom: 10px; + border-bottom: 1px solid #1e293b; + font-size: 13.5px; +} + +.snapcad-a11y-popover-head strong { + display: inline-flex; + align-items: center; + gap: 7px; +} + +.snapcad-a11y-popover-head button { + background: transparent; + border: none; + color: #94a3b8; + cursor: pointer; +} + +.snapcad-a11y-popover-body { + display: flex; + flex-direction: column; + gap: 8px; +} + +.snapcad-a11y-quick-btn { + display: flex; + align-items: center; + gap: 8px; + padding: 9px 12px; + border-radius: 10px; + background: #1e293b; + border: 1px solid #334155; + color: #e2e8f0; + font-size: 12px; + font-weight: 750; + cursor: pointer; + text-align: left; +} + +.snapcad-a11y-quick-btn.on { + background: rgba(14, 165, 233, 0.22); + border-color: #38bdf8; + color: #38bdf8; +} + +.snapcad-a11y-popover-scale { + display: flex; + align-items: center; + gap: 6px; + font-size: 12px; + font-weight: 700; + padding: 4px 0; +} + +.snapcad-a11y-popover-scale button { + flex: 1; + padding: 6px 0; + border-radius: 8px; + border: 1px solid #334155; + background: #1e293b; + color: #e2e8f0; + font-size: 11.5px; + font-weight: 800; + cursor: pointer; +} + +.snapcad-a11y-popover-scale button.active { + background: #0ea5e9; + border-color: #38bdf8; + color: #ffffff; +} + +.snapcad-a11y-popover-select { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 12px; + font-weight: 700; +} + +.snapcad-a11y-popover-select select { + background: #1e293b; + color: #f8fafc; + border: 1px solid #334155; + border-radius: 8px; + padding: 5px 8px; + font-size: 12px; +} + +/* Command Palette Modal */ +.snapcad-command-overlay { + position: fixed; + inset: 0; + z-index: 9998; + background: rgba(2, 6, 23, 0.65); + backdrop-filter: blur(4px); + display: grid; + place-items: start center; + padding-top: 90px; +} + +.snapcad-command-modal { + width: min(620px, 92vw); + background: #0f172a; + color: #f8fafc; + border: 1px solid #334155; + border-radius: 16px; + overflow: hidden; + box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); +} + +.snapcad-command-search { + display: flex; + align-items: center; + gap: 10px; + padding: 14px 16px; + border-bottom: 1px solid #1e293b; +} + +.snapcad-command-search input { + flex: 1; + background: transparent; + border: none; + color: #ffffff; + font-size: 14.5px; + font-weight: 600; + outline: none; +} + +.snapcad-command-search button { + background: transparent; + border: none; + color: #94a3b8; + cursor: pointer; +} + +.snapcad-command-list { + max-height: 360px; + overflow-y: auto; + padding: 8px; + display: flex; + flex-direction: column; + gap: 4px; +} + +.snapcad-command-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 10px 14px; + border-radius: 10px; + background: transparent; + border: none; + color: #e2e8f0; + font-size: 13px; + font-weight: 700; + cursor: pointer; + text-align: left; +} + +.snapcad-command-item:hover { + background: #1e293b; + color: #38bdf8; +} + +.snapcad-command-item small { + font-size: 11px; + color: #94a3b8; + background: #020617; + padding: 3px 8px; + border-radius: 999px; +} + +/* Dashboard Home Starter Shelf */ +.snapcad-home-starters { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 14px 18px; + margin-bottom: 22px; + box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); +} + +.snapcad-home-starters-head { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-bottom: 10px; +} + +.snapcad-home-starters-head strong { + font-size: 14px; + font-weight: 800; + color: #0f172a; +} + +.snapcad-home-starters-head button { + background: transparent; + border: none; + color: #0284c7; + font-size: 12.5px; + font-weight: 800; + cursor: pointer; +} + +.snapcad-home-starters-chips { + display: flex; + flex-wrap: wrap; + gap: 8px; +} + +.snapcad-starter-pill { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 7px 12px; + border-radius: 999px; + background: #f8fafc; + border: 1px solid #cbd5e1; + color: #1e293b; + font-size: 12.5px; + cursor: pointer; + transition: all 0.14s ease; +} + +.snapcad-starter-pill:hover { + background: #f0f9ff; + border-color: #38bdf8; + transform: translateY(-1px); +} + +.snapcad-starter-pill .dot { + width: 10px; + height: 10px; + border-radius: 50%; +} + +.snapcad-starter-pill small { + font-size: 10.5px; + font-weight: 700; + color: #64748b; +} + +/* Customization & Accessibility Studio Grid */ +.snapcad-a11y-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); + gap: 16px; +} + +.snapcad-a11y-card { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 18px; + display: flex; + flex-direction: column; + gap: 14px; +} + +.snapcad-a11y-card-head { + display: flex; + align-items: flex-start; + gap: 10px; + color: #0284c7; +} + +.snapcad-a11y-card-head h3 { + margin: 0 0 2px; + font-size: 15px; + font-weight: 800; + color: #0f172a; +} + +.snapcad-a11y-card-head span { + font-size: 12px; + color: #64748b; +} + +.snapcad-a11y-toggle { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + padding: 10px 12px; + border-radius: 10px; + background: #f8fafc; + border: 1px solid #e2e8f0; + cursor: pointer; +} + +.snapcad-a11y-toggle strong { + display: block; + font-size: 13px; + color: #0f172a; +} + +.snapcad-a11y-toggle small { + font-size: 11.5px; + color: #64748b; +} + +.snapcad-a11y-toggle input[type="checkbox"] { + width: 20px; + height: 20px; + accent-color: #0284c7; +} + +.snapcad-a11y-select-row { + display: flex; + flex-direction: column; + gap: 6px; + font-size: 12.5px; + font-weight: 800; + color: #334155; +} + +.snapcad-a11y-select-row select { + height: 38px; + padding: 0 10px; + border-radius: 9px; + border: 1px solid #cbd5e1; + background: #f8fafc; + font-size: 13px; + font-weight: 700; +} + +.snapcad-a11y-scale-group { + display: flex; + flex-direction: column; + gap: 6px; + font-size: 12.5px; + font-weight: 800; + color: #334155; +} + +.snapcad-a11y-scale-buttons { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 6px; +} + +.snapcad-a11y-scale-buttons button { + padding: 8px 6px; + border-radius: 8px; + border: 1px solid #cbd5e1; + background: #f8fafc; + font-size: 12px; + font-weight: 800; + cursor: pointer; +} + +.snapcad-a11y-scale-buttons button.active { + background: #0284c7; + border-color: #0284c7; + color: #ffffff; +} + +.snapcad-prefab-section, +.snapcad-shortcuts-section { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 18px; +} + +.snapcad-section-title-row h3, +.snapcad-shortcuts-section h3 { + display: inline-flex; + align-items: center; + gap: 8px; + margin: 0 0 4px; + font-size: 16px; + font-weight: 800; + color: #0f172a; +} + +.snapcad-section-title-row span { + display: block; + font-size: 12.5px; + color: #64748b; + margin-bottom: 14px; +} + +.snapcad-prefab-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); + gap: 12px; +} + +.snapcad-prefab-card { + border: 1px solid #e2e8f0; + border-radius: 12px; + padding: 14px; + background: #f8fafc; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +.snapcad-prefab-top { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 11px; + font-weight: 800; + margin-bottom: 6px; +} + +.snapcad-prefab-badge { + background: #e2e8f0; + color: #334155; + padding: 2px 7px; + border-radius: 999px; +} + +.snapcad-prefab-card h4 { + margin: 0 0 6px; + font-size: 14.5px; + font-weight: 800; + color: #0f172a; +} + +.snapcad-prefab-card p { + margin: 0 0 10px; + font-size: 12px; + color: #475569; + line-height: 1.45; +} + +.snapcad-shortcuts-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); + gap: 10px; + margin-top: 12px; +} + +.snapcad-shortcut-item { + display: flex; + align-items: center; + gap: 10px; + padding: 9px 12px; + border-radius: 10px; + background: #f8fafc; + border: 1px solid #e2e8f0; +} + +.snapcad-shortcut-item kbd { + background: #0f172a; + color: #38bdf8; + padding: 4px 8px; + border-radius: 6px; + font-family: monospace; + font-size: 11.5px; + font-weight: 800; + white-space: nowrap; +} + +.snapcad-shortcut-item strong { + display: block; + font-size: 12.5px; + color: #0f172a; +} + +.snapcad-shortcut-item small { + font-size: 11px; + color: #64748b; +} + +/* Codeblocks Isometric 3D Preview & Step Slider */ +.snapcad-iso-preview-header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 8px; +} + +.snapcad-iso-preview-header h3 { + margin: 0; +} + +.snapcad-iso-angle-btns { + display: flex; + gap: 4px; +} + +.snapcad-iso-angle-btns button { + padding: 3px 7px; + border-radius: 6px; + border: 1px solid #cbd5e1; + background: #f8fafc; + font-size: 11px; + font-weight: 800; + cursor: pointer; +} + +.snapcad-iso-angle-btns button.active { + background: #0284c7; + border-color: #0284c7; + color: #ffffff; +} + +.snapcad-iso-viewport { + background: #0f172a; + border-radius: 10px; + border: 1px solid #1e293b; + height: 195px; + margin-bottom: 10px; + overflow: hidden; + display: grid; + place-items: center; +} + +.snapcad-iso-svg { + width: 100%; + height: 100%; +} + +.snapcad-step-slider-row { + display: flex; + flex-direction: column; + gap: 4px; + padding: 8px 10px; + border-radius: 8px; + background: #f0f9ff; + border: 1px solid #bae6fd; + margin-bottom: 10px; + font-size: 12px; + color: #0369a1; +} + +/* Circuits LCD 16x2 & BOM Table */ +.snapcad-lcd-body { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; +} + +.snapcad-lcd-screen { + background: #14532d; + color: #86efac; + font-family: monospace; + font-size: 11px; + font-weight: 800; + padding: 6px 8px; + border-radius: 4px; + border: 2px solid #052e16; + min-width: 135px; + line-height: 1.35; +} + +.snapcad-lcd-screen.lit { + background: #22c55e; + color: #052e16; + box-shadow: 0 0 12px rgba(34, 197, 94, 0.55); +} + +.snapcad-bom-card { + background: #ffffff; + border: 1px solid #dbe4ee; + border-radius: 14px; + padding: 16px; +} + +.snapcad-bom-grid { + display: grid; + grid-template-columns: 1.2fr 1fr; + gap: 18px; +} + +@media (max-width: 1100px) { + .snapcad-bom-grid { + grid-template-columns: 1fr; + } +} + +.snapcad-bom-table { + width: 100%; + border-collapse: collapse; + font-size: 12.5px; +} + +.snapcad-bom-table th, +.snapcad-bom-table td { + padding: 7px 10px; + border-bottom: 1px solid #e2e8f0; + text-align: left; +} + +.snapcad-bom-table th { + background: #f8fafc; + font-weight: 800; + color: #334155; +} + +.snapcad-accessible-wire-form { + display: flex; + flex-direction: column; + gap: 10px; +} + +.snapcad-accessible-wire-form label { + display: flex; + flex-direction: column; + gap: 4px; + font-size: 12px; + font-weight: 800; + color: #334155; +} + +.snapcad-accessible-wire-form select { + height: 36px; + padding: 0 10px; + border-radius: 8px; + border: 1px solid #cbd5e1; + background: #f8fafc; + font-size: 12.5px; + font-weight: 700; +} + + + +/* ========================================================================== + SnapCAD Technical Drawing & Professional Blueprint Studio (TS EN ISO 128) + ========================================================================== */ +.dashboard-action-tile.snapcad-tile-drawing { + border-color: rgba(14, 165, 233, 0.42); + background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(15, 23, 42, 0.04)); +} + +.dashboard-action-tile.snapcad-tile-drawing .dashboard-action-icon { + background: linear-gradient(135deg, #0284c7, #0369a1); + color: #ffffff; +} + +.snapcad-drawing-dept-bar { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); + gap: 10px; + margin-bottom: 16px; +} + +.snapcad-dept-chip { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 4px; + padding: 11px 14px; + border-radius: 12px; + border: 1px solid #cbd5e1; + background: #ffffff; + color: #0f172a; + text-align: left; + cursor: pointer; + transition: all 150ms ease; +} + +.snapcad-dept-chip strong { + font-size: 12.5px; + font-weight: 800; + color: #0284c7; +} + +.snapcad-dept-chip span { + font-size: 12px; + font-weight: 600; + color: #475569; +} + +.snapcad-dept-chip:hover { + border-color: #38bdf8; + transform: translateY(-1px); + box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1); +} + +.snapcad-dept-chip.active { + border-color: #0284c7; + background: linear-gradient(135deg, #f0f9ff, #e0f2fe); + box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2); +} + +html[data-theme="dark"] .snapcad-dept-chip { + background: #17232d; + border-color: #304351; + color: #e2e8f0; +} + +html[data-theme="dark"] .snapcad-dept-chip span { + color: #94a3b8; +} + +html[data-theme="dark"] .snapcad-dept-chip.active { + background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(15, 23, 42, 0.9)); + border-color: #38bdf8; +} + +.snapcad-drawing-grid { + display: grid; + grid-template-columns: 310px minmax(0, 1fr) 330px; + gap: 16px; + align-items: start; +} + +@media (max-width: 1380px) { + .snapcad-drawing-grid { + grid-template-columns: 1fr; + } +} + +.snapcad-checkbox-row { + display: flex; + align-items: flex-start; + gap: 8px; + padding: 9px 10px; + border-radius: 9px; + background: rgba(2, 132, 199, 0.08); + border: 1px solid rgba(2, 132, 199, 0.24); + font-size: 12px; + line-height: 1.4; + cursor: pointer; +} + +.snapcad-layer-list { + display: flex; + flex-direction: column; + gap: 7px; +} + +.snapcad-layer-item { + display: flex; + align-items: center; + gap: 9px; + padding: 7px 10px; + border-radius: 9px; + border: 1px solid rgba(148, 163, 184, 0.26); + background: rgba(248, 250, 252, 0.6); + cursor: pointer; +} + +html[data-theme="dark"] .snapcad-layer-item { + background: rgba(15, 23, 42, 0.45); + border-color: #304351; +} + +.snapcad-layer-dot { + width: 12px; + height: 12px; + border-radius: 50%; + flex-shrink: 0; +} + +.snapcad-layer-item div { + display: flex; + flex-direction: column; + line-height: 1.25; +} + +.snapcad-layer-item strong { + font-size: 12px; + font-weight: 800; +} + +.snapcad-layer-item small { + font-size: 11px; + opacity: 0.78; +} + +.snapcad-cad-tools { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 6px; +} + +.snapcad-cad-tools button { + font-size: 11.5px; + padding: 7px 8px; + justify-content: flex-start; +} + +.snapcad-learning-box { + margin-top: 14px; + padding: 12px; + border-radius: 10px; + background: rgba(16, 185, 129, 0.08); + border: 1px solid rgba(16, 185, 129, 0.28); + font-size: 12px; + line-height: 1.45; +} + +.snapcad-learning-box strong { + display: block; + margin-bottom: 5px; + color: #059669; +} + +html[data-theme="dark"] .snapcad-learning-box strong { + color: #34d399; +} + +.snapcad-learning-box p { + margin: 0 0 8px; + opacity: 0.9; +} + +.snapcad-learning-box ul { + margin: 0; + padding-left: 17px; +} + +.snapcad-learning-box li { + margin-bottom: 4px; +} + +.snapcad-blueprint-center { + min-width: 0; +} + +.snapcad-status-pill { + display: inline-block; + padding: 4px 10px; + border-radius: 999px; + background: rgba(2, 132, 199, 0.14); + color: #0284c7; + font-size: 11.5px; + font-weight: 700; +} + +html[data-theme="dark"] .snapcad-status-pill { + color: #38bdf8; +} + +.snapcad-blueprint-sheet-wrap { + width: 100%; + border-radius: 12px; + overflow: hidden; + border: 2px solid #1e293b; + box-shadow: 0 12px 32px rgba(2, 12, 27, 0.24); +} + +.snapcad-blueprint-svg { + display: block; + width: 100%; + height: auto; + cursor: crosshair; + user-select: none; +} + +.snapcad-antet-form { + display: flex; + flex-direction: column; + gap: 8px; +} + +.snapcad-form-row-2 { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; +} + +.snapcad-calc-card { + padding: 11px 12px; + border-radius: 10px; + border: 1px solid rgba(148, 163, 184, 0.28); + background: rgba(248, 250, 252, 0.65); + font-size: 12px; +} + +html[data-theme="dark"] .snapcad-calc-card { + background: rgba(15, 23, 42, 0.5); + border-color: #304351; +} + +.snapcad-calc-metrics { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); + gap: 8px; + margin-top: 9px; + padding-top: 8px; + border-top: 1px dashed rgba(148, 163, 184, 0.35); +} + +.snapcad-calc-metrics div { + display: flex; + flex-direction: column; + gap: 2px; +} + +.snapcad-calc-metrics span { + font-size: 10.5px; + opacity: 0.78; +} + +.snapcad-calc-metrics strong { + font-size: 13px; + font-weight: 800; + color: #0284c7; +} + +html[data-theme="dark"] .snapcad-calc-metrics strong { + color: #38bdf8; +} + +.snapcad-calc-note { + margin: 6px 0 0; + font-size: 11px; + opacity: 0.85; + line-height: 1.35; +} + +/* ========================================================================== + SNAPCAD ENTERPRISE & SKETCHUP DIRECT MODELING (PRECISION BAR & TOPBAR) + ========================================================================== */ + +.enterprise-topbar { + display: flex; + align-items: center; + justify-content: space-between; + height: 52px; + padding: 0 12px; + background: #090c15; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); + color: #f1f5f9; + z-index: 45; + user-select: none; + flex-shrink: 0; + gap: 8px; + overflow-x: auto; + overflow-y: hidden; + scrollbar-width: none; +} + +.enterprise-topbar::-webkit-scrollbar { + display: none; +} + +html[data-theme="light"] .enterprise-topbar { + background: #ffffff; + border-bottom: 1px solid #e2e8f0; + color: #0f172a; +} + +.topbar-section { + display: flex; + align-items: center; + gap: 10px; +} + +.enterprise-brand { + display: flex; + align-items: center; + gap: 10px; + text-decoration: none; + color: inherit; + transition: opacity 0.15s ease; +} + +.enterprise-brand:hover { + opacity: 0.92; +} + +.brand-logo-gem { + width: 30px; + height: 30px; + border-radius: 9px; + background: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #6366f1 100%); + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35); + flex-shrink: 0; +} + +.brand-text-col { + display: flex; + flex-direction: column; +} + +.brand-title { + font-size: 14px; + font-weight: 800; + letter-spacing: -0.01em; + line-height: 1.1; +} + +.brand-subtitle { + font-size: 9px; + letter-spacing: 0.06em; + color: #94a3b8; + line-height: 1.1; + margin-top: 2px; +} + +.project-title-cluster { + display: flex; + align-items: center; + gap: 10px; +} + +.project-title-display-btn { + display: flex; + align-items: center; + gap: 6px; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + padding: 4px 10px; + border-radius: 8px; + color: #e2e8f0; + font-size: 13px; + font-weight: 600; + cursor: pointer; + transition: all 0.15s ease; +} + +html[data-theme="light"] .project-title-display-btn { + background: #f8fafc; + border-color: #e2e8f0; + color: #1e293b; +} + +.project-title-display-btn:hover { + background: rgba(255, 255, 255, 0.08); + border-color: rgba(56, 189, 248, 0.4); +} + +.project-title-input { + background: #0f172a; + border: 1px solid #38bdf8; + color: #ffffff; + padding: 3px 8px; + border-radius: 6px; + font-size: 13px; + outline: none; + box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); +} + +.cloud-sync-badge { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 3px 8px; + border-radius: 9999px; + font-size: 11px; + font-weight: 500; + background: rgba(16, 185, 129, 0.12); + color: #34d399; + border: 1px solid rgba(16, 185, 129, 0.25); +} + +.sync-pulse { + width: 6px; + height: 6px; + border-radius: 50%; + background: #10b981; + box-shadow: 0 0 8px #10b981; + animation: pulse-slow 2s infinite ease-in-out; +} + +@keyframes pulse-slow { + 0%, 100% { opacity: 1; transform: scale(1); } + 50% { opacity: 0.4; transform: scale(0.85); } +} + +/* Studio Switcher Pills */ +.studio-switcher-pills { + display: flex; + align-items: center; + gap: 4px; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + padding: 3px; + border-radius: 12px; +} + +html[data-theme="light"] .studio-switcher-pills { + background: #f1f5f9; + border-color: #cbd5e1; +} + +.studio-pill { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 5px 11px; + border-radius: 9px; + font-size: 12px; + font-weight: 600; + color: #94a3b8; + background: transparent; + cursor: pointer; + transition: all 0.15s ease; + border: 1px solid transparent; + white-space: nowrap; +} + +.studio-pill:hover { + color: #f8fafc; + background: rgba(255, 255, 255, 0.05); +} + +.studio-pill.active { + color: #ffffff; + background: #0284c7; + border-color: rgba(56, 189, 248, 0.4); + box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35); +} + +.studio-pill.highlight-sketchup.active { + background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%); + border-color: rgba(45, 212, 191, 0.4); +} + +/* Topbar Buttons */ +.topbar-icon-btn { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 8px; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + color: #cbd5e1; + cursor: pointer; + transition: all 0.15s ease; +} + +.topbar-icon-btn:hover:not(:disabled) { + background: rgba(255, 255, 255, 0.1); + color: #ffffff; +} + +.topbar-icon-btn:disabled { + opacity: 0.35; + cursor: not-allowed; +} + +.history-btn-group { + display: flex; + align-items: center; + gap: 2px; +} + +.topbar-action-btn { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 6px 12px; + border-radius: 8px; + font-size: 12px; + font-weight: 600; + cursor: pointer; + transition: all 0.15s ease; + border: 1px solid transparent; +} + +.topbar-action-btn.import-btn { + background: rgba(255, 255, 255, 0.05); + border-color: rgba(255, 255, 255, 0.1); + color: #e2e8f0; +} + +.topbar-action-btn.import-btn:hover { + background: rgba(255, 255, 255, 0.1); +} + +.topbar-action-btn.export-btn { + background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); + color: #ffffff; + box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3); +} + +.topbar-action-btn.export-btn:hover { + filter: brightness(1.1); +} + +.divider-vert { + width: 1px; + height: 20px; + background: rgba(255, 255, 255, 0.1); + margin: 0 4px; +} + +/* ========================================================================== + ENTERPRISE PRECISION BAR & VCB HUD + ========================================================================== */ + +.enterprise-precision-bar { + display: flex; + align-items: center; + justify-content: space-between; + height: 38px; + padding: 0 14px; + background: #06080e; + border-top: 1px solid rgba(255, 255, 255, 0.08); + color: #94a3b8; + font-size: 12px; + z-index: 30; + user-select: none; + gap: 12px; + box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25); + flex-shrink: 0; +} + +html[data-theme="light"] .enterprise-precision-bar { + background: #f8fafc; + border-top: 1px solid #e2e8f0; + color: #475569; +} + +.precision-group { + display: flex; + align-items: center; + gap: 10px; +} + +.precision-pill-btn { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 3px 9px; + border-radius: 6px; + font-size: 11px; + font-weight: 600; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + color: #cbd5e1; + cursor: pointer; + transition: all 0.12s ease; +} + +.precision-pill-btn:hover { + background: rgba(255, 255, 255, 0.08); + color: #ffffff; +} + +.precision-pill-btn.active { + background: #0284c7; + border-color: #38bdf8; + color: #ffffff; +} + +.precision-pill-btn.highlight-push-pull.active { + background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%); + border-color: #2dd4bf; + color: #ffffff; +} + +.face-indicator-badge { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 2px 7px; + border-radius: 5px; + background: rgba(56, 189, 248, 0.1); + border: 1px solid rgba(56, 189, 248, 0.25); + color: #38bdf8; + font-size: 11px; +} + +.face-indicator-badge .dot { + width: 5px; + height: 5px; + border-radius: 50%; + background: #38bdf8; +} + +/* Canlı Koordinatlar HUD */ +.live-coords-hud { + display: flex; + align-items: center; + gap: 8px; + padding: 2px 10px; + background: rgba(255, 255, 255, 0.03); + border: 1px solid rgba(255, 255, 255, 0.06); + border-radius: 6px; + font-size: 11px; + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; +} + +.coord-item { + display: inline-flex; + gap: 2px; +} + +/* VCB (Value Control Box) */ +.vcb-input-box { + display: flex; + align-items: center; + gap: 6px; +} + +.vcb-label { + display: flex; + align-items: center; + gap: 4px; + font-size: 11px; + font-weight: 600; + color: #cbd5e1; +} + +.vcb-input-wrap { + position: relative; + display: flex; + align-items: center; +} + +.vcb-field { + width: 82px; + height: 24px; + padding: 0 24px 0 6px; + background: #0b0f19; + border: 1px solid rgba(56, 189, 248, 0.4); + border-radius: 5px; + color: #38bdf8; + font-size: 12px; + font-weight: bold; + outline: none; + transition: all 0.15s ease; +} + +.vcb-field:focus { + border-color: #38bdf8; + box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); + background: #020617; +} + +.unit-suffix { + position: absolute; + right: 6px; + font-size: 10px; + color: #64748b; + pointer-events: none; +} + +/* Grid & Camera Controls */ +.grid-selector-wrap { + display: flex; + align-items: center; + gap: 5px; +} + +.grid-select { + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: 5px; + color: #cbd5e1; + font-size: 11px; + padding: 2px 4px; + cursor: pointer; + outline: none; +} + +.grid-select:focus { + border-color: #38bdf8; +} + +.camera-mode-btn { + display: inline-flex; + align-items: center; + gap: 4px; + padding: 3px 8px; + border-radius: 5px; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + color: #94a3b8; + font-size: 11px; + cursor: pointer; + transition: all 0.12s ease; +} + +.camera-mode-btn:hover { + background: rgba(255, 255, 255, 0.08); + color: #ffffff; +} + +.quick-views-group { + display: flex; + align-items: center; + gap: 2px; +} + +.view-btn { + display: inline-flex; + align-items: center; + gap: 3px; + padding: 2px 6px; + border-radius: 4px; + background: rgba(255, 255, 255, 0.03); + border: 1px solid rgba(255, 255, 255, 0.06); + color: #cbd5e1; + font-size: 10px; + font-weight: 500; + cursor: pointer; + transition: all 0.1s ease; +} + +.view-btn:hover { + background: rgba(56, 189, 248, 0.15); + border-color: rgba(56, 189, 248, 0.4); + color: #38bdf8; +} + +/* ========================================================================== + ENTERPRISE CAD DOCKED LAYOUT OVERRIDES + ========================================================================== */ + +.enterprise-topbar { + position: fixed; + top: 0; + left: 0; + right: 0; + height: 52px; + z-index: 45; +} + +.enterprise-precision-bar { + position: fixed; + bottom: 0; + left: 0; + right: 0; + height: 38px; + z-index: 45; +} + +.sketchforge-editor .secondary-toolbar { + top: 52px; + height: 76px; + overflow-x: auto; + overflow-y: hidden; + scrollbar-width: thin; + scrollbar-color: rgba(148, 163, 184, 0.35) transparent; +} + +.sketchforge-editor .secondary-toolbar::-webkit-scrollbar { + height: 5px; +} + +.sketchforge-editor .secondary-toolbar::-webkit-scrollbar-thumb { + background: rgba(148, 163, 184, 0.45); + border-radius: 4px; +} + +.sketchforge-editor .secondary-toolbar .toolbar-mode-content { + top: 0; + border-top: none; + min-width: max-content; + padding-right: 16px; +} + +.sketchforge-editor .secondary-toolbar .toolbar-spacer.toolbar-project-name, +.sketchforge-editor .secondary-toolbar .toolbar-workspace-tabs, +.sketchforge-editor .secondary-toolbar .editor-nav-group { + display: none; +} + +.sketchforge-editor .editor-body { + inset: 128px 0 38px 0 !important; + height: calc(100vh - 128px - 38px) !important; +} + +.sketchforge-editor .edge-modifier-panel { + top: 138px !important; +} + +/* ========================================================================== + SNAPCAD PLATFORM FOOTER & CORPORATE PAGES (ABOUT & CONTACT) + ========================================================================== */ + +/* --- Platform Footer --- */ +.snapcad-platform-footer { + width: 100%; + background: #070911; + border-top: 1px solid rgba(255, 255, 255, 0.08); + color: #94a3b8; + font-size: 13px; + margin-top: auto; +} + +html[data-theme="light"] .snapcad-platform-footer { + background: #ffffff; + border-top: 1px solid #e2e8f0; + color: #64748b; +} + +.footer-inner-container { + max-width: 1280px; + margin: 0 auto; + padding: 48px 24px 36px 24px; + display: grid; + grid-template-columns: 2fr 1.2fr 1.3fr 1.3fr; + gap: 36px; +} + +@media (max-width: 960px) { + .footer-inner-container { + grid-template-columns: 1fr 1fr; + gap: 32px; + } +} + +@media (max-width: 600px) { + .footer-inner-container { + grid-template-columns: 1fr; + gap: 28px; + } +} + +.footer-col { + display: flex; + flex-direction: column; +} + +.footer-brand { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 14px; +} + +.footer-brand-gem { + width: 36px; + height: 36px; + border-radius: 10px; + background: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #6366f1 100%); + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35); + flex-shrink: 0; +} + +.footer-brand-title { + display: block; + font-size: 16px; + font-weight: 800; + color: #f8fafc; + line-height: 1.2; +} + +html[data-theme="light"] .footer-brand-title { + color: #0f172a; +} + +.footer-brand-subtitle { + display: block; + font-size: 11px; + color: #64748b; + margin-top: 2px; +} + +.footer-brand-desc { + line-height: 1.6; + font-size: 13px; + color: #94a3b8; + margin-bottom: 18px; + max-width: 380px; +} + +html[data-theme="light"] .footer-brand-desc { + color: #64748b; +} + +.footer-badges-cluster { + display: flex; + flex-wrap: wrap; + gap: 8px; +} + +.footer-pill-badge { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 4px 10px; + border-radius: 9999px; + font-size: 11px; + font-weight: 600; + border: 1px solid rgba(255, 255, 255, 0.1); + background: rgba(255, 255, 255, 0.04); + color: #cbd5e1; +} + +html[data-theme="light"] .footer-pill-badge { + border-color: #e2e8f0; + background: #f1f5f9; + color: #475569; +} + +.footer-pill-badge.wcag-badge { + border-color: rgba(56, 189, 248, 0.3); + color: #38bdf8; + background: rgba(56, 189, 248, 0.08); +} + +.footer-pill-badge.yaknet-badge { + border-color: rgba(56, 189, 248, 0.35); + color: #38bdf8; + background: rgba(56, 189, 248, 0.12); +} + +.footer-col-title { + font-size: 14px; + font-weight: 700; + color: #f1f5f9; + margin-bottom: 16px; + letter-spacing: -0.01em; +} + +html[data-theme="light"] .footer-col-title { + color: #0f172a; +} + +.footer-links-list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: 10px; +} + +.footer-link-btn { + background: none; + border: none; + padding: 0; + color: #94a3b8; + font-size: 13px; + cursor: pointer; + text-align: left; + text-decoration: none; + transition: all 0.15s ease; +} + +html[data-theme="light"] .footer-link-btn { + color: #64748b; +} + +.footer-link-btn:hover { + color: #38bdf8; + transform: translateX(2px); +} + +.footer-link-btn.highlight-link { + color: #38bdf8; + font-weight: 600; +} + +.footer-bottom-bar { + border-top: 1px solid rgba(255, 255, 255, 0.06); + padding: 20px 24px; + background: rgba(0, 0, 0, 0.2); +} + +html[data-theme="light"] .footer-bottom-bar { + border-top: 1px solid #e2e8f0; + background: #f8fafc; +} + +.footer-bottom-inner { + max-width: 1280px; + margin: 0 auto; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; + gap: 12px; + font-size: 12px; +} + +.footer-bottom-meta { + display: flex; + align-items: center; + gap: 8px; + color: #64748b; +} + +.footer-meta-link-btn { + background: none; + border: none; + padding: 0; + color: #94a3b8; + font-size: 12px; + cursor: pointer; + text-decoration: none; + transition: color 0.15s ease; +} + +html[data-theme="light"] .footer-meta-link-btn { + color: #64748b; +} + +.footer-meta-link-btn:hover { + color: #38bdf8; + text-decoration: underline; +} + +/* --- Content Pages (About & Contact) --- */ +.snapcad-content-page { + max-width: 1080px; + margin: 0 auto; + padding: 36px 20px 64px 20px; +} + +.content-hero { + text-align: center; + margin-bottom: 48px; +} + +.hero-badge { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 5px 14px; + border-radius: 9999px; + background: rgba(56, 189, 248, 0.12); + border: 1px solid rgba(56, 189, 248, 0.3); + color: #38bdf8; + font-size: 12px; + font-weight: 600; + margin-bottom: 18px; +} + +.hero-title { + font-size: clamp(26px, 3.8vw, 42px); + font-weight: 800; + letter-spacing: -0.025em; + color: #f8fafc; + line-height: 1.22; + margin-bottom: 18px; +} + +html[data-theme="light"] .hero-title { + color: #0f172a; +} + +.hero-lead { + font-size: clamp(15px, 1.6vw, 18px); + line-height: 1.65; + color: #94a3b8; + max-width: 780px; + margin: 0 auto; +} + +html[data-theme="light"] .hero-lead { + color: #475569; +} + +.section-header-pill { + display: inline-flex; + align-items: center; + gap: 8px; + color: #38bdf8; + font-weight: 700; + font-size: 16px; + margin-bottom: 8px; +} + +.section-description { + color: #94a3b8; + font-size: 14px; + margin-bottom: 24px; +} + +html[data-theme="light"] .section-description { + color: #64748b; +} + +/* --- Architect Spotlight Cards --- */ +.architect-cards-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); + gap: 24px; + margin-bottom: 48px; +} + +.architect-card { + border-radius: 16px; + padding: 28px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.08); + display: flex; + flex-direction: column; + gap: 16px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); + transition: transform 0.2s ease, border-color 0.2s ease; +} + +.architect-card:hover { + transform: translateY(-2px); + border-color: rgba(56, 189, 248, 0.4); +} + +html[data-theme="light"] .architect-card { + background: #ffffff; + border-color: #e2e8f0; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); +} + +.architect-card-header { + display: flex; + align-items: center; + gap: 14px; +} + +.architect-avatar-badge { + width: 44px; + height: 44px; + border-radius: 12px; + background: linear-gradient(135deg, #0284c7, #3b82f6); + color: #ffffff; + font-weight: 800; + font-size: 16px; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; +} + +.architect-name { + font-size: 18px; + font-weight: 800; + color: #f1f5f9; + margin: 0; +} + +html[data-theme="light"] .architect-name { + color: #0f172a; +} + +.architect-title { + font-size: 12px; + color: #94a3b8; + display: block; + margin-top: 2px; +} + +.architect-bio { + font-size: 14px; + line-height: 1.6; + color: #cbd5e1; + margin: 0; +} + +html[data-theme="light"] .architect-bio { + color: #475569; +} + +.architect-quote { + border-left: 3px solid #38bdf8; + padding-left: 14px; + margin: 4px 0; + font-style: italic; + color: #94a3b8; + font-size: 13px; + line-height: 1.55; + background: rgba(56, 189, 248, 0.04); + padding: 10px 14px; + border-radius: 0 8px 8px 0; +} + +html[data-theme="light"] .architect-quote { + color: #475569; + background: #f1f5f9; +} + +.architect-tools { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: auto; +} + +.tool-tag { + font-size: 11px; + font-weight: 600; + padding: 3px 9px; + border-radius: 6px; + background: rgba(255, 255, 255, 0.06); + color: #cbd5e1; +} + +html[data-theme="light"] .tool-tag { + background: #f1f5f9; + color: #475569; +} + +/* --- Mission & Vision Grid --- */ +.mission-vision-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); + gap: 24px; + margin-bottom: 48px; +} + +.mission-card, +.vision-card { + padding: 32px; + border-radius: 16px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.08); +} + +html[data-theme="light"] .mission-card, +html[data-theme="light"] .vision-card { + background: #ffffff; + border-color: #e2e8f0; +} + +.card-icon-container { + width: 52px; + height: 52px; + border-radius: 14px; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 20px; +} + +.mission-icon { + background: rgba(14, 165, 233, 0.15); + color: #38bdf8; +} + +.vision-icon { + background: rgba(168, 85, 247, 0.15); + color: #c084fc; +} + +.card-title { + font-size: 22px; + font-weight: 800; + color: #f8fafc; + margin-bottom: 12px; +} + +html[data-theme="light"] .card-title { + color: #0f172a; +} + +.card-text { + font-size: 14px; + line-height: 1.65; + color: #94a3b8; + margin-bottom: 12px; +} + +html[data-theme="light"] .card-text { + color: #475569; +} + +.highlight-text { + background: rgba(56, 189, 248, 0.06); + padding: 12px; + border-radius: 8px; + border-left: 3px solid #38bdf8; +} + +/* --- Pillars Grid --- */ +.pillars-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); + gap: 20px; + margin-bottom: 48px; +} + +.pillar-item { + padding: 24px; + border-radius: 14px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.06); +} + +html[data-theme="light"] .pillar-item { + background: #ffffff; + border-color: #e2e8f0; +} + +.pillar-icon { + color: #38bdf8; + margin-bottom: 14px; +} + +.pillar-item h3 { + font-size: 15px; + font-weight: 700; + color: #f1f5f9; + margin-bottom: 8px; +} + +html[data-theme="light"] .pillar-item h3 { + color: #0f172a; +} + +.pillar-item p { + font-size: 13px; + line-height: 1.55; + color: #94a3b8; + margin: 0; +} + +html[data-theme="light"] .pillar-item p { + color: #64748b; +} + +/* --- About CTA Card --- */ +.about-cta-card { + padding: 36px; + border-radius: 16px; + background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(59, 130, 246, 0.15)); + border: 1px solid rgba(56, 189, 248, 0.3); + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 24px; +} + +.cta-content h2 { + font-size: 20px; + font-weight: 800; + color: #f8fafc; + margin-bottom: 8px; +} + +html[data-theme="light"] .cta-content h2 { + color: #0f172a; +} + +.cta-content p { + font-size: 14px; + color: #cbd5e1; + max-width: 580px; + margin: 0; +} + +html[data-theme="light"] .cta-content p { + color: #475569; +} + +.cta-actions { + display: flex; + gap: 12px; +} + +.cta-btn { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 11px 20px; + border-radius: 9px; + font-size: 14px; + font-weight: 600; + text-decoration: none; + border: none; + cursor: pointer; + transition: all 0.15s ease; +} + +.cta-btn.primary-btn { + background: linear-gradient(135deg, #0284c7, #2563eb); + color: #ffffff; + box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35); +} + +.cta-btn.primary-btn:hover { + opacity: 0.94; + transform: translateY(-1px); +} + +.cta-btn.secondary-btn { + background: rgba(255, 255, 255, 0.08); + border: 1px solid rgba(255, 255, 255, 0.15); + color: #f8fafc; +} + +html[data-theme="light"] .cta-btn.secondary-btn { + background: #ffffff; + border-color: #cbd5e1; + color: #0f172a; +} + +/* --- Contact Page Styles --- */ +.contact-main-grid { + display: grid; + grid-template-columns: 1.4fr 1fr; + gap: 32px; + margin-bottom: 48px; +} + +@media (max-width: 840px) { + .contact-main-grid { + grid-template-columns: 1fr; + } +} + +.contact-form-card { + padding: 32px; + border-radius: 16px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.08); +} + +html[data-theme="light"] .contact-form-card { + background: #ffffff; + border-color: #e2e8f0; +} + +.form-card-title { + font-size: 20px; + font-weight: 800; + color: #f8fafc; + margin-bottom: 6px; +} + +html[data-theme="light"] .form-card-title { + color: #0f172a; +} + +.form-card-subtitle { + font-size: 13px; + color: #94a3b8; + margin-bottom: 24px; +} + +html[data-theme="light"] .form-card-subtitle { + color: #64748b; +} + +.form-group { + display: flex; + flex-direction: column; + gap: 7px; + margin-bottom: 18px; +} + +.form-label { + font-size: 13px; + font-weight: 600; + color: #cbd5e1; +} + +html[data-theme="light"] .form-label { + color: #334155; +} + +.required-star { + color: #ef4444; +} + +.form-input, +.form-select, +.form-textarea { + padding: 10px 14px; + border-radius: 8px; + border: 1px solid rgba(255, 255, 255, 0.12); + background: #090d16; + color: #f8fafc; + font-size: 14px; + font-family: inherit; + outline: none; + transition: border-color 0.15s ease; +} + +html[data-theme="light"] .form-input, +html[data-theme="light"] .form-select, +html[data-theme="light"] .form-textarea { + background: #ffffff; + border-color: #cbd5e1; + color: #0f172a; +} + +.form-input:focus, +.form-select:focus, +.form-textarea:focus { + border-color: #38bdf8; +} + +.form-submit-btn { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 12px 24px; + border-radius: 8px; + background: linear-gradient(135deg, #0284c7, #2563eb); + color: #ffffff; + font-weight: 600; + font-size: 14px; + border: none; + cursor: pointer; + transition: all 0.15s ease; + margin-top: 8px; +} + +.form-submit-btn:hover:not(:disabled) { + opacity: 0.94; + transform: translateY(-1px); +} + +.form-submit-btn:disabled { + opacity: 0.6; + cursor: not-allowed; +} + +.form-feedback-banner { + display: flex; + align-items: center; + gap: 8px; + padding: 10px 14px; + border-radius: 8px; + font-size: 13px; + margin-bottom: 16px; +} + +.form-feedback-banner.success { + background: rgba(16, 185, 129, 0.15); + border: 1px solid rgba(16, 185, 129, 0.3); + color: #34d399; +} + +.form-feedback-banner.error { + background: rgba(239, 68, 68, 0.15); + border: 1px solid rgba(239, 68, 68, 0.3); + color: #f87171; +} + +.contact-info-column { + display: flex; + flex-direction: column; + gap: 16px; +} + +.contact-info-card { + display: flex; + gap: 16px; + padding: 20px; + border-radius: 14px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.08); +} + +html[data-theme="light"] .contact-info-card { + background: #ffffff; + border-color: #e2e8f0; +} + +.info-icon-badge { + width: 44px; + height: 44px; + border-radius: 12px; + background: rgba(56, 189, 248, 0.12); + color: #38bdf8; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; +} + +.info-text h3 { + font-size: 15px; + font-weight: 700; + color: #f1f5f9; + margin-bottom: 4px; +} + +html[data-theme="light"] .info-text h3 { + color: #0f172a; +} + +.info-text p { + font-size: 13px; + color: #94a3b8; + margin-bottom: 6px; + line-height: 1.45; +} + +html[data-theme="light"] .info-text p { + color: #64748b; +} + +.info-link { + font-size: 13px; + color: #38bdf8; + text-decoration: none; + font-weight: 600; + display: block; +} + +.info-link:hover { + text-decoration: underline; +} + +.info-meta { + display: block; + font-size: 11px; + color: #64748b; + margin-top: 4px; +} + +/* --- FAQ Section --- */ +.faq-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 20px; + margin-top: 20px; +} + +.faq-item { + padding: 22px; + border-radius: 12px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.06); +} + +html[data-theme="light"] .faq-item { + background: #ffffff; + border-color: #e2e8f0; +} + +.faq-item h3 { + font-size: 14px; + font-weight: 700; + color: #f1f5f9; + margin-bottom: 8px; + line-height: 1.4; +} + +html[data-theme="light"] .faq-item h3 { + color: #0f172a; +} + +.faq-item p { + font-size: 13px; + line-height: 1.6; + color: #94a3b8; + margin: 0; +} + +html[data-theme="light"] .faq-item p { + color: #64748b; +} + +/* --- Legal & Corporate Compliance Pages (KVKK, Terms, Security) --- */ +.legal-page { + max-width: 980px; +} + +.legal-meta-tag-bar { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 12px; + margin-top: 18px; +} + +.legal-tag { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 4px 12px; + border-radius: 8px; + font-size: 12px; + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.08); + color: #94a3b8; +} + +html[data-theme="light"] .legal-tag { + background: #f1f5f9; + border-color: #e2e8f0; + color: #475569; +} + +.legal-tag strong { + color: #cbd5e1; +} + +html[data-theme="light"] .legal-tag strong { + color: #1e293b; +} + +.yaknet-affiliation-card { + display: flex; + align-items: flex-start; + gap: 20px; + padding: 24px; + border-radius: 14px; + background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(59, 130, 246, 0.08)); + border: 1px solid rgba(56, 189, 248, 0.35); + margin-bottom: 36px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); +} + +html[data-theme="light"] .yaknet-affiliation-card { + background: linear-gradient(135deg, #f0f9ff, #eff6ff); + border-color: #7dd3fc; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); +} + +.yaknet-affiliation-icon { + width: 48px; + height: 48px; + border-radius: 12px; + background: rgba(56, 189, 248, 0.15); + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; +} + +.yaknet-affiliation-title { + font-size: 17px; + font-weight: 800; + color: #f1f5f9; + margin: 0 0 6px 0; +} + +html[data-theme="light"] .yaknet-affiliation-title { + color: #0f172a; +} + +.yaknet-affiliation-text { + font-size: 14px; + line-height: 1.6; + color: #cbd5e1; + margin: 0; +} + +html[data-theme="light"] .yaknet-affiliation-text { + color: #334155; +} + +.legal-sections-container { + display: flex; + flex-direction: column; + gap: 24px; + margin-bottom: 48px; +} + +.legal-article-card { + padding: 28px; + border-radius: 14px; + background: #0d111d; + border: 1px solid rgba(255, 255, 255, 0.07); + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); + transition: border-color 0.15s ease; +} + +.legal-article-card:hover { + border-color: rgba(56, 189, 248, 0.25); +} + +html[data-theme="light"] .legal-article-card { + background: #ffffff; + border-color: #e2e8f0; + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); +} + +.legal-article-header { + display: flex; + align-items: baseline; + gap: 12px; + margin-bottom: 16px; + border-bottom: 1px solid rgba(255, 255, 255, 0.06); + padding-bottom: 12px; +} + +html[data-theme="light"] .legal-article-header { + border-bottom-color: #f1f5f9; +} + +.article-number { + font-size: 13px; + font-weight: 800; + color: #38bdf8; + font-family: monospace; + background: rgba(56, 189, 248, 0.1); + padding: 2px 8px; + border-radius: 6px; +} + +.article-title { + font-size: 18px; + font-weight: 700; + color: #f8fafc; + margin: 0; + letter-spacing: -0.01em; +} + +html[data-theme="light"] .article-title { + color: #0f172a; +} + +.article-body { + font-size: 14px; + line-height: 1.7; + color: #cbd5e1; +} + +html[data-theme="light"] .article-body { + color: #334155; +} + +.article-body p { + margin: 0 0 14px 0; +} + +.article-body p:last-child { + margin-bottom: 0; +} + +.legal-bullet-list { + list-style: disc; + padding-left: 22px; + margin: 10px 0 16px 0; + display: flex; + flex-direction: column; + gap: 8px; +} + +.legal-bullet-list li { + line-height: 1.6; +} + +.highlight-callout { + display: flex; + align-items: flex-start; + gap: 12px; + padding: 14px 18px; + border-radius: 10px; + background: rgba(56, 189, 248, 0.08); + border: 1px solid rgba(56, 189, 248, 0.25); + color: #e0f2fe; + font-size: 14px; + line-height: 1.6; + margin-bottom: 16px; +} + +html[data-theme="light"] .highlight-callout { + background: #f0f9ff; + border-color: #bae6fd; + color: #0369a1; +} + +.highlight-callout.success-callout { + background: rgba(16, 185, 129, 0.08); + border-color: rgba(16, 185, 129, 0.3); + color: #d1fae5; +} + +html[data-theme="light"] .highlight-callout.success-callout { + background: #ecfdf5; + border-color: #a7f3d0; + color: #047857; +} + +.highlight-callout.warning-callout { + background: rgba(245, 158, 11, 0.08); + border-color: rgba(245, 158, 11, 0.3); + color: #fef3c7; +} + +html[data-theme="light"] .highlight-callout.warning-callout { + background: #fffbeb; + border-color: #fde68a; + color: #b45309; +} + +.legal-subgrid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); + gap: 16px; + margin-top: 16px; + margin-bottom: 8px; +} + +.legal-subbox { + padding: 18px; + border-radius: 10px; + background: rgba(255, 255, 255, 0.03); + border: 1px solid rgba(255, 255, 255, 0.07); +} + +html[data-theme="light"] .legal-subbox { + background: #f8fafc; + border-color: #e2e8f0; +} + +.legal-subbox h4 { + font-size: 14px; + font-weight: 700; + color: #f1f5f9; + margin: 10px 0 6px 0; +} + +html[data-theme="light"] .legal-subbox h4 { + color: #0f172a; +} + +.legal-subbox p { + font-size: 13px; + line-height: 1.55; + color: #94a3b8; + margin: 0; +} + +html[data-theme="light"] .legal-subbox p { + color: #64748b; +} + +.legal-contact-box { + padding: 16px 20px; + border-radius: 10px; + background: rgba(56, 189, 248, 0.04); + border: 1px solid rgba(56, 189, 248, 0.15); + display: flex; + flex-direction: column; + gap: 6px; + font-size: 14px; +} + +html[data-theme="light"] .legal-contact-box { + background: #f0f9ff; + border-color: #bae6fd; +} + +.legal-page-actions { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; + gap: 16px; + padding-top: 24px; + border-top: 1px solid rgba(255, 255, 255, 0.08); +} + +html[data-theme="light"] .legal-page-actions { + border-top-color: #e2e8f0; +} + +.legal-action-links { + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.btn-action-primary { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 10px 20px; + border-radius: 8px; + font-size: 14px; + font-weight: 700; + background: linear-gradient(135deg, #0284c7, #2563eb); + color: #ffffff; + border: none; + cursor: pointer; + box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3); + transition: all 0.15s ease; +} + +.btn-action-primary:hover { + transform: translateY(-1px); + box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45); +} + +.btn-action-secondary { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 10px 16px; + border-radius: 8px; + font-size: 13px; + font-weight: 600; + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.12); + color: #cbd5e1; + cursor: pointer; + transition: all 0.15s ease; +} + +html[data-theme="light"] .btn-action-secondary { + background: #f1f5f9; + border-color: #cbd5e1; + color: #334155; +} + +.btn-action-secondary:hover { + background: rgba(255, 255, 255, 0.1); + border-color: rgba(56, 189, 248, 0.5); + color: #38bdf8; +} + +/* --- Content Page Shell (Standalone /hakkimizda & /iletisim) --- */ +.content-page-shell { + min-height: 100vh; + display: flex; + flex-direction: column; + background: #060810; + color: #f1f5f9; +} + +html[data-theme="light"] .content-page-shell { + background: #f8fafc; + color: #0f172a; +} + +.content-page-navbar { + height: 64px; + background: #090c15; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); + position: sticky; + top: 0; + z-index: 50; +} + +html[data-theme="light"] .content-page-navbar { + background: #ffffff; + border-bottom: 1px solid #e2e8f0; +} + +.navbar-container { + max-width: 1280px; + margin: 0 auto; + height: 100%; + padding: 0 24px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.navbar-brand { + display: flex; + align-items: center; + gap: 12px; + text-decoration: none; + color: inherit; +} + +.navbar-nav { + display: flex; + align-items: center; + gap: 16px; +} + +.nav-link-btn { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 6px 14px; + border-radius: 8px; + font-size: 13px; + font-weight: 600; + color: #cbd5e1; + text-decoration: none; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); + transition: all 0.15s ease; +} + +html[data-theme="light"] .nav-link-btn { + background: #f1f5f9; + border-color: #e2e8f0; + color: #334155; +} + +.nav-link-btn:hover { + color: #38bdf8; + border-color: rgba(56, 189, 248, 0.4); +} + +.content-page-main { + flex: 1; + width: 100%; + animation: snapcad-smooth-page-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; +} + +/* Direct Email Action Styles */ +.email-direct-card { + display: flex; + flex-direction: column; +} + +.direct-email-actions { + display: flex; + flex-direction: column; + gap: 12px; + margin-top: 8px; + margin-bottom: 24px; +} + +.direct-email-launch-btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 10px; + padding: 14px 20px; + border-radius: 10px; + background: linear-gradient(135deg, #0284c7, #2563eb); + color: #ffffff; + font-weight: 700; + font-size: 15px; + text-decoration: none; + box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35); + transition: all 0.15s ease; + border: none; +} + +.direct-email-launch-btn:hover { + transform: translateY(-2px); + box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45); + color: #ffffff; +} + +.copy-email-action-btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + padding: 12px 18px; + border-radius: 10px; + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.12); + color: #e2e8f0; + font-size: 14px; + font-weight: 600; + cursor: pointer; + transition: all 0.15s ease; +} + +.copy-email-action-btn:hover { + background: rgba(255, 255, 255, 0.1); + border-color: rgba(56, 189, 248, 0.5); + color: #38bdf8; +} + +html[data-theme="light"] .copy-email-action-btn { + background: #f1f5f9; + border-color: #cbd5e1; + color: #1e293b; +} + +html[data-theme="light"] .copy-email-action-btn:hover { + background: #e2e8f0; + border-color: #0284c7; + color: #0284c7; +} + +.email-meta-box { + margin-top: auto; + padding: 16px; + border-radius: 10px; + background: rgba(56, 189, 248, 0.04); + border: 1px solid rgba(56, 189, 248, 0.15); + display: flex; + flex-direction: column; + gap: 4px; +} + +html[data-theme="light"] .email-meta-box { + background: #f0f9ff; + border-color: #bae6fd; +} + +.email-meta-label { + font-size: 12px; + font-weight: 600; + color: #94a3b8; +} + +html[data-theme="light"] .email-meta-label { + color: #64748b; +} + +/* ========================================================================== + SnapCAD FX & Simulation Animations (Confetti, Explosion, Earthquake) + ========================================================================== */ + +@keyframes circuit-zap-shake { + 0% { transform: translate(0, 0) rotate(0deg); } + 20% { transform: translate(-6px, 4px) rotate(-1.5deg); filter: brightness(1.6) contrast(1.2); } + 40% { transform: translate(6px, -4px) rotate(1.5deg); filter: brightness(1.9) hue-rotate(30deg); } + 60% { transform: translate(-4px, -3px) rotate(-1deg); filter: brightness(1.3); } + 80% { transform: translate(4px, 3px) rotate(1deg); filter: brightness(1.1); } + 100% { transform: translate(0, 0) rotate(0deg); filter: none; } +} + +.circuit-zap-shake { + animation: circuit-zap-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; +} + +@keyframes earthquake-shake { + 0% { transform: translate(0, 0) rotate(0deg); } + 10% { transform: translate(-8px, -5px) rotate(-0.8deg); } + 20% { transform: translate(9px, 6px) rotate(1deg); } + 30% { transform: translate(-10px, 4px) rotate(-1.2deg); } + 40% { transform: translate(8px, -6px) rotate(0.9deg); } + 50% { transform: translate(-7px, 5px) rotate(-0.6deg); } + 60% { transform: translate(6px, -4px) rotate(0.8deg); } + 70% { transform: translate(-4px, 3px) rotate(-0.4deg); } + 80% { transform: translate(3px, -2px) rotate(0.4deg); } + 90% { transform: translate(-2px, 1px) rotate(-0.2deg); } + 100% { transform: translate(0, 0) rotate(0deg); } +} + +.earthquake-shake { + animation: earthquake-shake 1.25s cubic-bezier(0.25, 0.1, 0.25, 1) both; +} + +.circuit-short-circuit-banner { + animation: pulse-danger-glow 1.5s infinite; +} + +@keyframes pulse-danger-glow { + 0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.8); } + 50% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.85); border-color: #ef4444; } +} + +/* ========================================================================== + SNAPCAD PRELOADER, ERROR RECOVERY & PAGE TRANSITION ANIMATIONS + ========================================================================== */ + +/* 1. Silky Page Transitions */ +@keyframes snapcad-smooth-page-enter { + 0% { + opacity: 0; + transform: translateY(6px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} + +.snapcad-page-transition { + animation: snapcad-smooth-page-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; +} + +/* 2. Full-Screen Preloader */ +.snapcad-preloader-overlay { + position: fixed; + inset: 0; + z-index: 99999; + display: flex; + align-items: center; + justify-content: center; + background: #060810; + color: #f8fafc; + padding: 24px; + overflow: hidden; + transition: opacity 0.3s ease, visibility 0.3s ease; +} + +html[data-theme="light"] .snapcad-preloader-overlay { + background: #f8fafc; + color: #0f172a; +} + +.preloader-content-card { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + max-width: 440px; + width: 100%; +} + +.preloader-gem-glow-wrapper { + position: relative; + width: 72px; + height: 72px; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 24px; +} + +@keyframes preloader-halo-pulse { + 0%, 100% { + transform: scale(0.9); + opacity: 0.35; + } + 50% { + transform: scale(1.35); + opacity: 0.75; + } +} + +.preloader-gem-halo { + position: absolute; + inset: -6px; + border-radius: 22px; + background: radial-gradient(circle, rgba(56, 189, 248, 0.6) 0%, rgba(37, 99, 235, 0.1) 70%, transparent 100%); + animation: preloader-halo-pulse 2.2s infinite ease-in-out; + pointer-events: none; +} + +.preloader-gem-box { + position: relative; + width: 58px; + height: 58px; + border-radius: 16px; + background: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #6366f1 100%); + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 4px 20px rgba(2, 132, 199, 0.45); +} + +.preloader-brand-area { + margin-bottom: 24px; +} + +.preloader-title { + font-size: 24px; + font-weight: 800; + letter-spacing: -0.025em; + color: #f8fafc; + margin: 0 0 6px 0; +} + +html[data-theme="light"] .preloader-title { + color: #0f172a; +} + +.preloader-subtitle { + display: inline-block; + font-size: 12px; + font-weight: 600; + color: #38bdf8; + letter-spacing: 0.02em; +} + +.preloader-fading-out { + opacity: 0; + visibility: hidden; + pointer-events: none; + transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.26s ease; +} + +.preloader-progress-track { + width: 260px; + height: 6px; + background: rgba(255, 255, 255, 0.08); + border-radius: 9999px; + overflow: hidden; + position: relative; + margin-bottom: 14px; +} + +html[data-theme="light"] .preloader-progress-track { + background: #e2e8f0; +} + +.preloader-progress-bar { + height: 100%; + background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #60a5fa 100%); + border-radius: 9999px; + box-shadow: 0 0 12px rgba(56, 189, 248, 0.85); + transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1); +} + +.preloader-status-container { + display: flex; + align-items: center; + gap: 10px; + justify-content: center; + margin-top: 4px; +} + +.preloader-percent-badge { + font-size: 11px; + font-weight: 800; + color: #38bdf8; + background: rgba(56, 189, 248, 0.12); + border: 1px solid rgba(56, 189, 248, 0.35); + padding: 2px 7px; + border-radius: 9999px; + letter-spacing: 0.04em; +} + +html[data-theme="light"] .preloader-percent-badge { + background: #e0f2fe; + border-color: #bae6fd; + color: #0284c7; +} + +.preloader-status-text { + font-size: 13px; + color: #94a3b8; + margin: 0; +} + +html[data-theme="light"] .preloader-status-text { + color: #64748b; +} + +/* --- Google Cloud Console Top-to-Bottom Cascade Waterfall --- */ +@keyframes gcp-cascade-down { + 0% { + opacity: 0; + transform: translateY(-16px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} + +.gcp-cascade-topbar { + animation: gcp-cascade-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0ms both; +} + +.gcp-cascade-sidebar { + animation: gcp-cascade-down 0.42s cubic-bezier(0.16, 1, 0.3, 1) 70ms both; +} + +.gcp-cascade-actions { + animation: gcp-cascade-down 0.44s cubic-bezier(0.16, 1, 0.3, 1) 130ms both; +} + +.gcp-cascade-starters { + animation: gcp-cascade-down 0.44s cubic-bezier(0.16, 1, 0.3, 1) 190ms both; +} + +.gcp-cascade-header { + animation: gcp-cascade-down 0.44s cubic-bezier(0.16, 1, 0.3, 1) 250ms both; +} + +.gcp-cascade-card { + animation: gcp-cascade-down 0.48s cubic-bezier(0.16, 1, 0.3, 1) both; +} + +.gcp-cascade-footer { + animation: gcp-cascade-down 0.48s cubic-bezier(0.16, 1, 0.3, 1) 400ms both; +} + +/* --- Google Cloud Console Linear Progress Bar --- */ +.gcp-linear-progress { + position: absolute; + bottom: 0; + left: 0; + right: 0; + height: 3px; + background: rgba(56, 189, 248, 0.15); + overflow: hidden; + z-index: 20; +} + +html[data-theme="light"] .gcp-linear-progress { + background: rgba(2, 132, 199, 0.12); +} + +@keyframes gcp-linear-primary { + 0% { + left: -100%; + width: 100%; + } + 100% { + left: 100%; + width: 10%; + } +} + +@keyframes gcp-linear-secondary { + 0% { + left: -150%; + width: 100%; + } + 100% { + left: 100%; + width: 100%; + } +} + +.gcp-linear-bar { + position: absolute; + top: 0; + bottom: 0; + background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #60a5fa 100%); + border-radius: 9999px; + box-shadow: 0 0 10px rgba(56, 189, 248, 0.85); +} + +.gcp-linear-bar.primary { + animation: gcp-linear-primary 1.8s infinite cubic-bezier(0.65, 0.815, 0.735, 0.395); +} + +.gcp-linear-bar.secondary { + animation: gcp-linear-secondary 1.8s infinite 0.75s cubic-bezier(0.165, 0.84, 0.44, 1); +} + +/* --- Google Cloud Console Cascading Skeleton Grid --- */ +.gcp-skeleton-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); + gap: 20px; + margin-top: 16px; +} + +.project-card-skeleton { + border-radius: 14px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.08); + padding: 16px; + display: flex; + flex-direction: column; + gap: 12px; + position: relative; + overflow: hidden; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); +} + +html[data-theme="light"] .project-card-skeleton { + background: #ffffff; + border-color: #e2e8f0; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); +} + +@keyframes gcp-shimmer-sweep { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(100%); + } +} + +.project-card-skeleton::after { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient( + 90deg, + transparent 0%, + rgba(56, 189, 248, 0.12) 50%, + transparent 100% + ); + animation: gcp-shimmer-sweep 1.8s infinite ease-in-out; + pointer-events: none; +} + +html[data-theme="light"] .project-card-skeleton::after { + background: linear-gradient( + 90deg, + transparent 0%, + rgba(2, 132, 199, 0.08) 50%, + transparent 100% + ); +} + +.skeleton-preview-box { + width: 100%; + height: 140px; + border-radius: 10px; + background: rgba(255, 255, 255, 0.04); +} + +html[data-theme="light"] .skeleton-preview-box { + background: #f1f5f9; +} + +.skeleton-line-title { + width: 70%; + height: 16px; + border-radius: 4px; + background: rgba(255, 255, 255, 0.06); +} + +html[data-theme="light"] .skeleton-line-title { + background: #e2e8f0; +} + +.skeleton-line-meta { + width: 45%; + height: 12px; + border-radius: 4px; + background: rgba(255, 255, 255, 0.04); +} + +html[data-theme="light"] .skeleton-line-meta { + background: #f1f5f9; +} + +.preloader-recovery-cluster { + margin-top: 28px; + padding: 16px 20px; + border-radius: 12px; + background: rgba(255, 255, 255, 0.04); + border: 1px solid rgba(255, 255, 255, 0.08); +} + +html[data-theme="light"] .preloader-recovery-cluster { + background: #ffffff; + border-color: #e2e8f0; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); +} + +.recovery-notice-text { + font-size: 12px; + color: #94a3b8; + margin: 0 0 12px 0; +} + +html[data-theme="light"] .recovery-notice-text { + color: #64748b; +} + +.recovery-buttons-row { + display: flex; + gap: 10px; + justify-content: center; + flex-wrap: wrap; +} + +.recovery-action-btn { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 8px 14px; + border-radius: 8px; + font-size: 12px; + font-weight: 600; + cursor: pointer; + transition: all 0.15s ease; +} + +.recovery-action-btn.primary { + background: #0284c7; + color: #ffffff; + border: none; +} + +.recovery-action-btn.primary:hover { + background: #0369a1; +} + +.recovery-action-btn.secondary { + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.12); + color: #cbd5e1; +} + +html[data-theme="light"] .recovery-action-btn.secondary { + background: #f1f5f9; + border-color: #cbd5e1; + color: #334155; +} + +.recovery-action-btn.secondary:hover { + border-color: #38bdf8; + color: #38bdf8; +} + +/* 3. Error Boundary Recovery Screen */ +.snapcad-error-boundary-screen { + position: fixed; + inset: 0; + z-index: 99999; + display: flex; + align-items: center; + justify-content: center; + background: #060810; + color: #f8fafc; + padding: 24px; +} + +html[data-theme="light"] .snapcad-error-boundary-screen { + background: #f8fafc; + color: #0f172a; +} + +.error-card { + max-width: 480px; + width: 100%; + padding: 32px 28px; + border-radius: 16px; + background: #0f172a; + border: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); + text-align: center; +} + +html[data-theme="light"] .error-card { + background: #ffffff; + border-color: #e2e8f0; + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); +} + +.error-icon-box { + width: 56px; + height: 56px; + border-radius: 14px; + background: rgba(245, 158, 11, 0.12); + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto 20px auto; +} + +.error-card-title { + font-size: 20px; + font-weight: 800; + color: #f8fafc; + margin: 0 0 10px 0; +} + +html[data-theme="light"] .error-card-title { + color: #0f172a; +} + +.error-card-desc { + font-size: 13px; + line-height: 1.6; + color: #94a3b8; + margin: 0 0 18px 0; +} + +html[data-theme="light"] .error-card-desc { + color: #64748b; +} + +.error-diagnostic-preview { + background: rgba(0, 0, 0, 0.3); + border: 1px solid rgba(255, 255, 255, 0.06); + border-radius: 8px; + padding: 10px 14px; + font-size: 12px; + color: #ef4444; + font-family: monospace; + overflow-x: auto; + text-align: left; + margin: 0 0 20px 0; + max-height: 80px; +} + +html[data-theme="light"] .error-diagnostic-preview { + background: #fef2f2; + border-color: #fecaca; + color: #b91c1c; +} + +.error-actions-row { + display: flex; + gap: 12px; + justify-content: center; + flex-wrap: wrap; +} + +.error-action-btn { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 10px 18px; + border-radius: 8px; + font-size: 13px; + font-weight: 700; + cursor: pointer; + transition: all 0.15s ease; +} + +.error-action-btn.primary { + background: linear-gradient(135deg, #0284c7, #2563eb); + color: #ffffff; + border: none; +} + +.error-action-btn.primary:hover { + transform: translateY(-1px); + box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4); +} + +.error-action-btn.secondary { + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.12); + color: #cbd5e1; +} + +html[data-theme="light"] .error-action-btn.secondary { + background: #f1f5f9; + border-color: #cbd5e1; + color: #334155; +} + +.error-action-btn.secondary:hover { + border-color: #38bdf8; + color: #38bdf8; +} + + diff --git a/apps/web/src/app/guvenlik/page.tsx b/apps/web/src/app/guvenlik/page.tsx new file mode 100644 index 0000000..4881804 --- /dev/null +++ b/apps/web/src/app/guvenlik/page.tsx @@ -0,0 +1,7 @@ +"use client"; + +import KurumsalGuvenlikPage from "../kurumsal-guvenlik/page"; + +export default function GuvenlikPage() { + return ; +} diff --git a/apps/web/src/app/hakkimizda/page.tsx b/apps/web/src/app/hakkimizda/page.tsx new file mode 100644 index 0000000..a32e5e2 --- /dev/null +++ b/apps/web/src/app/hakkimizda/page.tsx @@ -0,0 +1,60 @@ +"use client"; + +import { ArrowLeft, Box, Sparkles } from "lucide-react"; +import { AboutPageContent } from "@/components/snapcad/AboutPageContent"; +import { PlatformFooter } from "@/components/snapcad/PlatformFooter"; + +export default function HakkimizdaPage() { + return ( +
+ {/* Basit ve Zarif Gezinme Üst Çubuğu */} +
+ +
+ + {/* Ana İçerik */} +
+ { + window.location.href = "/"; + }} + onGoToContact={() => { + window.location.href = "/iletisim"; + }} + /> +
+ + {/* Kurumsal Altbilgi */} + { + window.location.href = "/"; + }} + /> +
+ ); +} diff --git a/apps/web/src/app/iletisim/page.tsx b/apps/web/src/app/iletisim/page.tsx new file mode 100644 index 0000000..7d5cede --- /dev/null +++ b/apps/web/src/app/iletisim/page.tsx @@ -0,0 +1,57 @@ +"use client"; + +import { ArrowLeft, Box } from "lucide-react"; +import { ContactPageContent } from "@/components/snapcad/ContactPageContent"; +import { PlatformFooter } from "@/components/snapcad/PlatformFooter"; + +export default function IletisimPage() { + return ( +
+ {/* Basit ve Zarif Gezinme Üst Çubuğu */} +
+ +
+ + {/* Ana İçerik */} +
+ { + window.location.href = "/"; + }} + /> +
+ + {/* Kurumsal Altbilgi */} + { + window.location.href = "/"; + }} + /> +
+ ); +} diff --git a/apps/web/src/app/kullanim-kosullari/page.tsx b/apps/web/src/app/kullanim-kosullari/page.tsx new file mode 100644 index 0000000..8791a56 --- /dev/null +++ b/apps/web/src/app/kullanim-kosullari/page.tsx @@ -0,0 +1,63 @@ +"use client"; + +import { ArrowLeft, Box } from "lucide-react"; +import { TermsPageContent } from "@/components/snapcad/TermsPageContent"; +import { PlatformFooter } from "@/components/snapcad/PlatformFooter"; + +export default function KullanimKosullariPage() { + return ( +
+ {/* Gezinme Üst Çubuğu */} +
+ +
+ + {/* Ana İçerik */} +
+ { + window.location.href = "/"; + }} + onGoToKVKK={() => { + window.location.href = "/kvkk"; + }} + onGoToSecurity={() => { + window.location.href = "/kurumsal-guvenlik"; + }} + /> +
+ + {/* Kurumsal Altbilgi */} + { + window.location.href = "/"; + }} + /> +
+ ); +} diff --git a/apps/web/src/app/kurumsal-guvenlik/page.tsx b/apps/web/src/app/kurumsal-guvenlik/page.tsx new file mode 100644 index 0000000..8a250be --- /dev/null +++ b/apps/web/src/app/kurumsal-guvenlik/page.tsx @@ -0,0 +1,63 @@ +"use client"; + +import { ArrowLeft, Box } from "lucide-react"; +import { SecurityPageContent } from "@/components/snapcad/SecurityPageContent"; +import { PlatformFooter } from "@/components/snapcad/PlatformFooter"; + +export default function KurumsalGuvenlikPage() { + return ( +
+ {/* Gezinme Üst Çubuğu */} +
+ +
+ + {/* Ana İçerik */} +
+ { + window.location.href = "/"; + }} + onGoToKVKK={() => { + window.location.href = "/kvkk"; + }} + onGoToTerms={() => { + window.location.href = "/kullanim-kosullari"; + }} + /> +
+ + {/* Kurumsal Altbilgi */} + { + window.location.href = "/"; + }} + /> +
+ ); +} diff --git a/apps/web/src/app/kvkk/page.tsx b/apps/web/src/app/kvkk/page.tsx new file mode 100644 index 0000000..989b394 --- /dev/null +++ b/apps/web/src/app/kvkk/page.tsx @@ -0,0 +1,63 @@ +"use client"; + +import { ArrowLeft, Box } from "lucide-react"; +import { KVKKPageContent } from "@/components/snapcad/KVKKPageContent"; +import { PlatformFooter } from "@/components/snapcad/PlatformFooter"; + +export default function KVKKPage() { + return ( +
+ {/* Gezinme Üst Çubuğu */} +
+ +
+ + {/* Ana İçerik */} +
+ { + window.location.href = "/"; + }} + onGoToTerms={() => { + window.location.href = "/kullanim-kosullari"; + }} + onGoToSecurity={() => { + window.location.href = "/kurumsal-guvenlik"; + }} + /> +
+ + {/* Kurumsal Altbilgi */} + { + window.location.href = "/"; + }} + /> +
+ ); +} diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 6328b61..80bbdee 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -1,12 +1,38 @@ import type { Metadata } from "next"; +import NextTopLoader from "nextjs-toploader"; +import { AppErrorBoundary } from "@/components/snapcad/AppErrorBoundary"; +import { PwaManager } from "@/components/snapcad/PwaManager"; import "./globals.css"; export const metadata: Metadata = { - title: "SketchForge 3D editor", - description: "Browser-based SketchForge editor workspace", + title: "SnapCAD Studio", + description: "YakHub ekosisteminde tarayıcı tabanlı 3B CAD modelleme, Arduino devre simülasyonu, blok kodlama, sınıflar ve teknik çizim stüdyosu", + keywords: [ + "SnapCAD", + "SnapCAD Studio", + "YakHub", + "3B CAD", + "3D Tasarım", + "Arduino Simülatörü", + "Devre Simülasyonu", + "Blok Kodlama", + "Sınıf Yönetimi", + "Teknik Çizim", + ], + openGraph: { + title: "SnapCAD Studio", + description: "YakHub ekosisteminde tarayıcı tabanlı 3B CAD modelleme, Arduino devre simülasyonu, blok kodlama, sınıflar ve teknik çizim stüdyosu", + siteName: "SnapCAD Studio", + locale: "tr_TR", + type: "website", + }, + manifest: "/manifest.json", icons: { - icon: "assets/sketchforge/sketchforge-logo.png", - apple: "assets/sketchforge/sketchforge-logo.png", + icon: [ + { url: "/icons/favicon-32.png", sizes: "32x32", type: "image/png" }, + { url: "/icons/icon-192.png", sizes: "192x192", type: "image/png" }, + ], + apple: "/icons/apple-touch-icon.png", }, }; @@ -16,8 +42,41 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - {children} + + + + + + + +