/* ==========================================
   AI Cockpit — Simatai Brand
   Navy #1C2E7A + Black + White
   ========================================== */

@import url('canvas-style.css');
:root {
    /* Simatai palette — from logo */
    --brand-navy: #1C2E7A;
    --brand-navy-dark: #141F56;
    --brand-navy-light: #2A3F9E;
    --brand-black: #0A0A0A;

    --primary-50:  #eef1fa;
    --primary-100: #d5daf2;
    --primary-200: #a8b3e3;
    --primary-300: #7688d0;
    --primary-400: #4a5fbe;
    --primary-500: #2A3F9E;
    --primary-600: #1C2E7A;
    --primary-700: #141F56;
    --primary-800: #0E1740;
    --primary-900: #080D28;

    --gray-50:#f9fafb; --gray-100:#f3f4f6; --gray-200:#e5e7eb;
    --gray-300:#d1d5db; --gray-400:#9ca3af; --gray-500:#6b7280;
    --gray-600:#4b5563; --gray-700:#374151; --gray-800:#1f2937; --gray-900:#111827;

    --amber-dot: #f59e0b;
    --blue-dot: #3b82f6;

    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 10px 25px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.04);
    --shadow-xl:  0 20px 50px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.04);

    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);

    --radius-sm:6px; --radius-md:10px; --radius-lg:14px; --radius-xl:20px;

    --red-dot:#ef4444; --red-bg:#fef2f2; --red-border:#fecaca;
    --green-dot:#10b981; --amber-dot:#f59e0b; --blue-dot:#3b82f6;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-family);color:#e2e8f0;background:#000000;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.container{max-width:var(--max-width);margin:0 auto;padding:0 24px}
a{color:var(--primary-600);text-decoration:none;transition:color .2s}
a:hover{color:var(--primary-500)}

/* ══════════════════════════════════════════
   HERO — Simatai Brand
   ══════════════════════════════════════════ */
.hero {
    position:relative; padding:72px 24px 64px; text-align:center;
    overflow:hidden; color:white;
    background: linear-gradient(180deg, var(--brand-navy-light) 0%, var(--brand-navy) 50%, var(--brand-navy-dark) 80%, #000000 100%);
}

/* Mondrian-style deco (squares + line from logo) */
.hero-deco{position:absolute;inset:0;pointer-events:none;overflow:hidden}

.deco-square{position:absolute;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:2px}
.deco-square.sq1{width:180px;height:180px;top:40px;left:5%;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);animation:floatA 10s ease-in-out infinite}
.deco-square.sq2{width:120px;height:120px;bottom:30px;right:15%;background:rgba(29,38,141,.7);border-color:rgba(255,255,255,.15);animation:floatB 12s ease-in-out infinite}
.deco-square.sq3{width:60px;height:60px;top:35%;right:8%;background:rgba(1,1,1,.6);border-color:rgba(255,255,255,.15);animation:floatA 8s ease-in-out infinite reverse}

.deco-line{position:absolute;background:rgba(255,255,255,.35);border:none}
.deco-line.ln1{width:4px;height:200px;top:10%;right:20%;border-radius:2px;animation:floatB 14s ease-in-out infinite}

.deco-grid{
    position:absolute;inset:0;
    background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
    background-size:28px 28px;
    mask-image:radial-gradient(ellipse 60% 55% at 50% 45%,black 20%,transparent 100%);
    -webkit-mask-image:radial-gradient(ellipse 60% 55% at 50% 45%,black 20%,transparent 100%);
}

@keyframes floatA{0%,100%{transform:translate(0,0) rotate(0deg)}50%{transform:translate(35px,-25px) rotate(8deg)}}
@keyframes floatB{0%,100%{transform:translate(0,0) rotate(0deg)}50%{transform:translate(-30px,30px) rotate(-5deg)}}

.hero-content{position:relative;max-width:660px;margin:0 auto}

.hero-logo{margin-bottom:20px;animation:fadeInUp .5s var(--ease-out) both}
.hero-logo-img{
    width:96px;height:96px;object-fit:contain;
    background:white;border-radius:18px;padding:8px;
    box-shadow:0 4px 20px rgba(0,0,0,.2);
}

.hero-badge{
    display:inline-block;padding:5px 14px;font-size:11px;font-weight:600;
    background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);
    border-radius:100px;margin-bottom:22px;letter-spacing:.04em;
    animation:fadeInUp .5s var(--ease-out) .05s both;
}
.hero-title{
    font-size:clamp(34px,6vw,54px);font-weight:800;letter-spacing:-.03em;
    line-height:1.1;margin-bottom:12px;
    animation:fadeInUp .6s var(--ease-out) .1s both;
}
.hero-accent{color:rgba(255,255,255,.55)}
.hero-subtitle{font-size:clamp(16px,2vw,18px);font-weight:400;color:rgba(255,255,255,.75);margin-bottom:8px;animation:fadeInUp .6s var(--ease-out) .15s both}
.hero-description{font-size:14px;color:rgba(255,255,255,.45);max-width:480px;margin:0 auto 32px;line-height:1.7;animation:fadeInUp .6s var(--ease-out) .2s both}

.hero-bottom-row{
    display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;
    animation:fadeInUp .6s var(--ease-out) .25s both;
}

.hero-stats{
    display:inline-flex;align-items:center;gap:28px;padding:14px 32px;
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
    border-radius:var(--radius-lg);backdrop-filter:blur(8px);
}
.stat{display:flex;flex-direction:column;align-items:center;gap:1px}
.stat-number{font-size:26px;font-weight:800;letter-spacing:-.03em;line-height:1.2}
.stat-label{font-size:10px;font-weight:500;color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:.06em}
.stat-divider{width:1px;height:30px;background:rgba(255,255,255,.12)}

/* ── WORLD CLOCK ────────────────────────── */
.world-clock{
    display:inline-flex;align-items:center;gap:16px;padding:12px 24px;
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
    border-radius:var(--radius-lg);backdrop-filter:blur(8px);
}
.clock-item{display:flex;align-items:center;gap:8px}
.clock-flag{font-size:22px;line-height:1}
.clock-time{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.clock-divider{width:1px;height:24px;background:rgba(255,255,255,.12)}

/* ── DYNAMIC ISLAND ─────────────────────── */
.dynamic-island{
    position:fixed;top:24px;left:50%;transform:translateX(-50%) translateY(-100px) scale(0.9);
    background:linear-gradient(135deg, rgba(28,46,122,0.35) 0%, rgba(10,10,10,0.45) 100%);
    color:white;padding:12px 24px;border-radius:100px;
    display:flex;align-items:center;gap:16px;
    box-shadow:0 12px 40px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.4), inset 0 -4px 10px rgba(0,0,0,0.2);
    z-index:2000;opacity:0;visibility:hidden;
    transition:transform 0.5s var(--ease-spring), opacity 0.4s var(--ease-out), visibility 0.4s;
    backdrop-filter:blur(24px) saturate(180%);
    -webkit-backdrop-filter:blur(24px) saturate(180%);
    border:1px solid rgba(255,255,255,0.25);
}
.dynamic-island.visible{transform:translateX(-50%) translateY(0) scale(1);opacity:1;visibility:visible}
.dynamic-island .clock-item{gap:6px}
.dynamic-island .clock-time{font-size:14px;font-weight:700}
.dynamic-island .clock-flag{font-size:16px}
.dynamic-island .clock-divider{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.2)}
.di-nav-btn{display:flex;align-items:center;font-size:12px;font-weight:600;color:white;text-decoration:none;opacity:0.8;transition:opacity 0.2s}
.di-nav-btn:hover{opacity:1}

/* ══════════════════════════════════════════
   CATEGORIES
   ══════════════════════════════════════════ */
.categories{
    padding:56px 0 44px;
    background:#000000;
    border-bottom:1px solid rgba(255, 255, 255, 0.15);
}

.section-header{text-align:center;margin-bottom:32px}
.section-tag{
    display:inline-block;padding:4px 12px;font-size:10.5px;font-weight:700;
    text-transform:uppercase;letter-spacing:.08em;color:#38bdf8;
    background:#121212;border:1px solid rgba(255, 255, 255, 0.15);border-radius:100px;margin-bottom:10px;
}
.section-title{font-size:clamp(22px,3vw,28px);font-weight:700;color:#f8fafc;letter-spacing:-.02em}

.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}

.category-card{
    display:flex;align-items:center;gap:12px;padding:14px 16px;
    background:#0A0A0B;border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-lg);
    cursor:pointer;transition:all .3s var(--ease-out);text-align:left;
    font-family:var(--font-family);position:relative;overflow:hidden;
}
.category-card:hover{border-color:rgba(255,255,255,0.2);transform:translateY(-2px)}
.category-card.active{border-color:#38bdf8;background:#18181B;box-shadow:0 0 0 1px rgba(56,189,248,0.5)}

.category-icon-wrap{
    display:flex;align-items:center;justify-content:center;
    width:40px;height:40px;border-radius:var(--radius-md);flex-shrink:0;
    color:#a1a1aa;background:#121212;transition:all .3s;
    border:1px solid rgba(255, 255, 255, 0.15);
}
.category-card.active .category-icon-wrap,.category-card:hover .category-icon-wrap{background:#18181B;color:#f8fafc;border-color:rgba(255,255,255,0.2)}

.category-info{flex:1;min-width:0}
.category-info h3{font-size:13px;font-weight:600;color:#f8fafc}

.category-count{
    display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;
    padding:0 7px;font-size:11px;font-weight:700;color:#38bdf8;
    background:#121212;border:1px solid rgba(255, 255, 255, 0.15);border-radius:100px;transition:all .3s;
}
.category-card.active .category-count{background:#18181B;color:#f8fafc;border-color:#38bdf8}

/* ══════════════════════════════════════════
   DATABASE TOOLBAR
   ══════════════════════════════════════════ */
.database{padding:44px 0 72px}

.database-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.toolbar-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}

.toolbar-search{position:relative;display:flex;align-items:center;flex:1;max-width:300px}
.toolbar-search svg{position:absolute;left:11px;color:var(--gray-400);pointer-events:none}
.toolbar-search input{
    width:100%;padding:8px 12px 8px 34px;font-size:13px;font-family:var(--font-family);
    color:#f8fafc;background:#18181B;border:1px solid rgba(255, 255, 255, 0.15);
    border-radius:var(--radius-sm);outline:none;transition:all .25s;
}
.toolbar-search input::placeholder{color:var(--gray-400)}
.toolbar-search input:focus{background:#121212;border-color:#38bdf8;box-shadow:none}

.filter-wrapper{position:relative}
.btn-filter{
    display:inline-flex;align-items:center;gap:6px;padding:8px 14px;
    font-size:12.5px;font-weight:600;font-family:var(--font-family);
    color:#a1a1aa;background:#121212;border:1px solid rgba(255, 255, 255, 0.15);
    border-radius:var(--radius-sm);cursor:pointer;transition:all .2s;white-space:nowrap;
}
.btn-filter:hover{border-color:rgba(255,255,255,0.2);color:#f8fafc}
.btn-filter.active{border-color:#38bdf8;color:#f8fafc;background:#18181B}

.filter-badge{
    display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
    padding:0 5px;font-size:10px;font-weight:700;color:white;background:var(--primary-600);border-radius:100px;
}

.filter-panel{
    position:absolute;top:calc(100% + 8px);left:0;width:310px;background:#0A0A0B;
    border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-lg);padding:18px;
    box-shadow:0 10px 25px rgba(0,0,0,0.5);z-index:100;opacity:0;visibility:hidden;
    transform:translateY(-8px);transition:all .25s var(--ease-out);
}
.filter-panel.open{opacity:1;visibility:visible;transform:translateY(0)}

.filter-section{margin-bottom:16px}
.filter-section:last-of-type{margin-bottom:14px}
.filter-label{font-size:10.5px;font-weight:700;color:var(--gray-400);text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px}
.filter-options{display:flex;flex-wrap:wrap;gap:5px}
.filter-chip{
    display:inline-flex;align-items:center;gap:5px;padding:4px 11px;font-size:11.5px;
    font-weight:600;font-family:var(--font-family);color:#a1a1aa;background:#121212;
    border:1px solid rgba(255, 255, 255, 0.15);border-radius:100px;cursor:pointer;transition:all .2s;
}
.filter-chip:hover{border-color:rgba(255,255,255,0.2);color:#f8fafc}
.filter-chip.active{background:#18181B;border-color:#38bdf8;color:#f8fafc}
.chip-dot{width:6px;height:6px;border-radius:50%}
.chip-dot.green{background:var(--green-dot)}
.chip-dot.amber{background:var(--amber-dot)}
.chip-dot.blue{background:var(--blue-dot)}

.filter-reset{
    display:block;width:100%;padding:7px;font-size:11.5px;font-weight:600;font-family:var(--font-family);
    color:#a1a1aa;background:none;border:1px dashed rgba(255, 255, 255, 0.15);border-radius:var(--radius-sm);
    cursor:pointer;transition:all .2s;
}
.filter-reset:hover{color:#f8fafc;border-color:rgba(255,255,255,0.3)}

.filter-status{font-size:12.5px;color:var(--gray-400);margin-bottom:18px}

.btn-add-tool{
    display:inline-flex;align-items:center;gap:8px;padding:8px 18px;font-size:13px;
    font-weight:600;font-family:var(--font-family);color:white;background:#2563eb;
    border:none;border-radius:var(--radius-sm);cursor:pointer;transition:all .25s;
    white-space:nowrap;
}
.btn-add-tool:hover{background:#3b82f6;transform:translateY(-1px);}

/* ══════════════════════════════════════════
   TOOL CARDS
   ══════════════════════════════════════════ */
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}

.tool-card{
    background:#0A0A0B;border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-lg);
    padding:20px;transition:all .4s var(--ease-out);cursor:pointer;position:relative;
    border-left:3px solid transparent;
    opacity:0; transform:translateY(20px) scale(0.96);
}
.tool-card.visible{
    opacity:1; transform:translateY(0) scale(1);
}
.tool-card.visible:hover{
    border-color:rgba(255,255,255,0.2);border-left-color:#38bdf8;
    box-shadow:none;transform:translateY(-4px) scale(1);
}

.tool-card-header{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}
.tool-logo{
    width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;
    justify-content:center;font-size:19px;color:white;flex-shrink:0;position:relative;overflow:visible;
}
.tool-logo::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.2),transparent);border-radius:inherit}

.tool-status-dot{
    position:absolute;bottom:-2px;right:-2px;width:11px;height:11px;
    border-radius:50%;border:2px solid white;z-index:1;
}
.tool-status-dot.deployed{background:var(--green-dot)}
.tool-status-dot.dev{background:var(--amber-dot)}
.tool-status-dot.beta{background:var(--blue-dot)}
.tool-status-dot.lg{width:15px;height:15px;border-width:2.5px;bottom:-3px;right:-3px}

.tool-title-area{flex:1;min-width:0;padding-right:85px}
.tool-name{font-size:14.5px;font-weight:700;color:#f8fafc;letter-spacing:-.01em;line-height:1.3;margin-bottom:2px}
.tool-category-label{font-size:10.5px;font-weight:600;color:#a1a1aa;text-transform:uppercase;letter-spacing:.05em}

.tool-description{
    font-size:12.5px;color:var(--gray-500);line-height:1.5;margin-bottom:12px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

.tool-meta{display:flex;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid rgba(255, 255, 255, 0.15);gap:12px;flex-wrap:wrap}
.tool-meta-left{display:flex;align-items:center;gap:8px;flex:1;min-width:160px;flex-wrap:wrap}
.tool-owner{display:flex;align-items:center;gap:4px;font-size:11.5px;color:#a1a1aa;white-space:nowrap}
.tool-owner-avatar{
    width:19px;height:19px;border-radius:50%;background:#18181B;display:flex;
    align-items:center;justify-content:center;font-size:8px;font-weight:700;color:#cbd5e1;flex-shrink:0;border:1px solid rgba(255, 255, 255, 0.15);
}

.platform-tag{
    display:inline-flex;align-items:center;gap:3px;padding:2px 7px;font-size:9.5px;font-weight:600;
    color:#38bdf8;background:#18181B;border:1px solid rgba(255, 255, 255, 0.15);
    border-radius:100px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;flex-shrink:0;
}
.pricing-tag{
    display:inline-flex;align-items:center;padding:2px 7px;font-size:9.5px;font-weight:600;
    color:#a1a1aa;background:#121212;border:1px solid rgba(255, 255, 255, 0.15);
    border-radius:100px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;flex-shrink:0;
}
.info-tag{
    display:inline-flex;align-items:center;gap:4px;padding:2px 7px;font-size:9.5px;font-weight:600;
    color:#a1a1aa;background:#121212;border:1px solid rgba(255, 255, 255, 0.15);
    border-radius:100px;white-space:nowrap;flex-shrink:0;
}

.status-badge{
    display:inline-flex;align-items:center;gap:4px;padding:3px 8px;font-size:10px;
    font-weight:600;border-radius:100px;white-space:nowrap;
}
.status-badge .s-dot{width:6px;height:6px;border-radius:50%}
.status-badge.deployed{color:#10b981;background:rgba(16, 185, 129, 0.1);border:1px solid rgba(16,185,129,0.3)}
.status-badge.deployed .s-dot{background:var(--green-dot)}
.status-badge.dev{color:#f59e0b;background:rgba(245, 158, 11, 0.1);border:1px solid rgba(245,158,11,0.3)}
.status-badge.dev .s-dot{background:var(--amber-dot)}
.status-badge.beta{color:#3b82f6;background:rgba(59, 130, 246, 0.1);border:1px solid rgba(59,130,246,0.3)}
.status-badge.beta .s-dot{background:var(--blue-dot)}

.tool-access-btn{
    display:inline-flex;align-items:center;gap:4px;padding:4px 10px;font-size:11px;
    font-weight:600;color:#38bdf8;background:#18181B;
    border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-sm);cursor:pointer;
    transition:all .2s;text-decoration:none;white-space:nowrap;flex-shrink:0;
}
.tool-access-btn:hover{background:rgba(255, 255, 255, 0.15);color:#f8fafc;border-color:rgba(255,255,255,0.2)}

.nav-btn{
    display:inline-flex;align-items:center;padding:8px 16px;font-size:13px;font-weight:600;
    color:white;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);
    border-radius:100px;text-decoration:none;transition:all .3s;backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);box-shadow:0 4px 15px rgba(0,0,0,0.1);
}
.nav-btn:hover{background:rgba(255,255,255,0.2);transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,0.15)}

/* ── DECORATIVE DIVIDER ─────────────────── */
.deco-divider{height:4px;background:linear-gradient(90deg,var(--primary-600),var(--primary-300),var(--primary-600));opacity:.12}

.no-results{text-align:center;padding:60px 20px;color:var(--gray-400)}
.no-results p{margin-top:16px;font-size:14px}

/* ══════════════════════════════════════════
   DETAIL PANEL
   ══════════════════════════════════════════ */
.panel-overlay{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:1500;opacity:0;visibility:hidden;transition:all .3s}
.panel-overlay.open{opacity:1;visibility:visible}

.detail-panel{
    position:fixed;top:0;right:0;width:460px;max-width:92vw;height:100vh;background:#0A0A0B;
    z-index:1600;box-shadow:-5px 0 30px rgba(0,0,0,0.5);transform:translateX(100%);transition:transform .4s var(--ease-out);
    display:flex;flex-direction:column;overflow-y:auto;border-left:1px solid rgba(255, 255, 255, 0.15);
}
.detail-panel.open{transform:translateX(0)}

.panel-header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid rgba(255, 255, 255, 0.15);flex-shrink:0}
.panel-close{
    width:32px;height:32px;display:flex;align-items:center;justify-content:center;
    background:#121212;border:1px solid rgba(255, 255, 255, 0.15);border-radius:50%;color:#a1a1aa;cursor:pointer;transition:all .2s;
}
.panel-close:hover{background:#18181B;color:#f8fafc}
.panel-actions{display:flex;gap:6px}
.panel-btn{
    display:inline-flex;align-items:center;gap:5px;padding:5px 11px;font-size:11.5px;font-weight:600;
    font-family:var(--font-family);border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-sm);
    background:#121212;color:#a1a1aa;cursor:pointer;transition:all .2s;
}
.panel-btn.edit{color:#38bdf8}
.panel-btn.edit:hover{background:rgba(56, 189, 248, 0.1);border-color:#38bdf8;color:#f8fafc}
.panel-btn.delete{color:#ef4444}
.panel-btn.delete:hover{background:rgba(239, 68, 68, 0.1);border-color:#ef4444;color:#f8fafc}

.panel-body{padding:22px;flex:1}

.panel-tool-logo{
    width:56px;height:56px;border-radius:var(--radius-lg);display:flex;align-items:center;
    justify-content:center;font-size:24px;color:white;margin-bottom:16px;position:relative;overflow:visible;
}
.panel-tool-logo::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.2),transparent);border-radius:inherit}

.panel-tool-name{font-size:19px;font-weight:700;color:#f8fafc;letter-spacing:-.02em;margin-bottom:4px}
.panel-tool-category{display:inline-block;font-size:10.5px;font-weight:600;color:#38bdf8;text-transform:uppercase;letter-spacing:.05em;margin-bottom:18px}

.panel-section{margin-bottom:20px}
.panel-label{font-size:10px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}
.panel-text{font-size:13.5px;color:#a1a1aa;line-height:1.7}

.panel-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}
.panel-info-item{display:flex;flex-direction:column;gap:3px}
.panel-info-value{font-size:13px;font-weight:600;color:#e2e8f0}

.panel-access-btn{
    display:inline-flex;align-items:center;gap:8px;padding:10px 18px;font-size:13px;font-weight:600;
    color:white;background:#2563eb;border-radius:var(--radius-sm);text-decoration:none;
    transition:all .2s;
}
.panel-access-btn:hover{background:#3b82f6;color:white;transform:translateY(-1px)}

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.modal-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);
    display:flex;align-items:center;justify-content:center;z-index:2000;
    opacity:0;visibility:hidden;transition:all .3s;
}
.modal-overlay.open{opacity:1;visibility:visible}

.modal{
    background:#0A0A0B;border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-xl);width:90%;max-width:560px;padding:26px;
    box-shadow:0 20px 50px rgba(0,0,0,0.5);transform:translateY(20px) scale(.97);
    transition:transform .35s var(--ease-spring);max-height:90vh;overflow-y:auto;
}
.modal-overlay.open .modal{transform:translateY(0) scale(1)}
.modal.modal-sm{max-width:420px}

.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.modal-header h3{font-size:16px;font-weight:700;color:#f8fafc}
.modal-close{
    width:28px;height:28px;display:flex;align-items:center;justify-content:center;
    background:#121212;border:1px solid rgba(255, 255, 255, 0.15);border-radius:50%;color:#a1a1aa;cursor:pointer;transition:all .2s;
}
.modal-close:hover{background:#18181B;color:#f8fafc}

.modal-form{display:flex;flex-direction:column;gap:16px}
.form-group{display:flex;flex-direction:column;gap:4px}
.form-group label{font-size:12px;font-weight:600;color:#a1a1aa}
.form-group input,.form-group textarea,.form-group select{
    padding:8px 11px;font-size:13px;font-family:var(--font-family);color:#f8fafc;
    background:#18181B;border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-sm);
    outline:none;transition:all .2s;resize:vertical;
}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{background:#121212;border-color:#38bdf8;box-shadow:none}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.color-picker-row{display:flex;align-items:center;gap:10px}
.color-picker-row input[type="color"]{width:38px;height:32px;padding:2px;border:1px solid rgba(255, 255, 255, 0.15);border-radius:var(--radius-sm);cursor:pointer;background:none}
.color-preview{font-size:11px;font-weight:500;color:#6b7280;font-family:monospace}

.status-toggle{display:flex;gap:7px;flex-wrap:wrap}
.status-option{cursor:pointer}
.status-option input{display:none}
.status-pill{
    display:inline-flex;align-items:center;gap:5px;padding:5px 13px;font-size:11.5px;font-weight:600;
    border-radius:100px;border:1px solid rgba(255, 255, 255, 0.15);background:#121212;color:#a1a1aa;transition:all .2s;
}
.status-pill .status-dot{width:7px;height:7px;border-radius:50%;background:var(--gray-700);transition:background .2s}
.status-option input:checked+.status-pill.deployed{color:#10b981;background:rgba(16, 185, 129, 0.1);border-color:rgba(16,185,129,0.3)}
.status-option input:checked+.status-pill.deployed .status-dot{background:var(--green-dot)}
.status-option input:checked+.status-pill.dev{color:#f59e0b;background:rgba(245, 158, 11, 0.1);border-color:rgba(245,158,11,0.3)}
.status-option input:checked+.status-pill.dev .status-dot{background:var(--amber-dot)}
.status-option input:checked+.status-pill.beta{color:#3b82f6;background:rgba(59, 130, 246, 0.1);border-color:rgba(59,130,246,0.3)}
.status-option input:checked+.status-pill.beta .status-dot{background:var(--blue-dot)}

.btn-primary{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;
    font-size:13.5px;font-weight:600;font-family:var(--font-family);color:white;
    background:#2563eb;border:none;border-radius:var(--radius-sm);cursor:pointer;
    transition:all .25s;
}
.btn-primary:hover{background:#3b82f6;transform:translateY(-1px)}

.delete-msg{font-size:13.5px;color:#a1a1aa;line-height:1.6;margin-bottom:18px}
.delete-actions{display:flex;gap:10px;justify-content:flex-end}
.btn-cancel{
    padding:8px 16px;font-size:12.5px;font-weight:600;font-family:var(--font-family);
    color:#a1a1aa;background:#121212;border:1px solid rgba(255, 255, 255, 0.15);
    border-radius:var(--radius-sm);cursor:pointer;transition:all .2s;
}
.btn-cancel:hover{background:#18181B;color:#f8fafc}
.btn-danger{
    display:inline-flex;align-items:center;gap:6px;padding:8px 16px;font-size:12.5px;font-weight:600;
    font-family:var(--font-family);color:white;background:var(--red-dot);border:none;
    border-radius:var(--radius-sm);cursor:pointer;transition:all .2s;
}
.btn-danger:hover{background:#dc2626}

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeInUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}

/* ── TOAST ──────────────────────────────── */
.toast{
    position:fixed;bottom:32px;left:50%;transform:translateX(-50%) translateY(20px);
    padding:11px 20px;background:var(--gray-900);color:white;font-size:13px;font-weight:500;
    border-radius:var(--radius-md);box-shadow:var(--shadow-xl);opacity:0;visibility:hidden;
    transition:all .35s var(--ease-out);z-index:3000;display:flex;align-items:center;gap:8px;
}
.toast.show{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.toast-icon{color:var(--green-dot)}

/* ── RESPONSIVE ─────────────────────────── */
@media(max-width:1024px){.category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){
    .hero{padding:48px 20px 44px}.hero-bottom-row{flex-direction:column;gap:16px}
    .hero-stats{gap:20px;padding:12px 24px}.world-clock{gap:12px;padding:10px 18px}
    .categories{padding:36px 0 30px}.category-grid{grid-template-columns:1fr 1fr}
    .database{padding:32px 0 56px}
    .database-toolbar{flex-direction:column;align-items:stretch}.toolbar-left{flex-direction:column}
    .toolbar-search{max-width:none}.tools-grid{grid-template-columns:1fr}
    .detail-panel{width:100%}.form-row{grid-template-columns:1fr}
    .panel-info-grid{grid-template-columns:1fr}.filter-panel{width:calc(100vw - 48px);left:-10px}
}

/* ══════════════════════════════════════════
   PROCESS DIAGRAM TOOL (CANVAS UI)
   ══════════════════════════════════════════ */
.diagram-workspace {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 20;
    height: calc(100vh - 120px);
}
.diagram-layout {
    display: flex;
    height: 100%;
    min-height: 400px;
    background: #000000;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.diagram-sidebar {
    width: 320px;
    background: #0A0A0B;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: none;
}
.sidebar-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.sidebar-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}
.sidebar-actions {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: #121212;
}
.btn-template {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #0A0A0B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.btn-template:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
    color: #f8fafc;
    transform: translateY(-1px);
}
.t-icon { font-size: 14px; }

.editor-container {
    flex: 1;
    position: relative;
}
#mermaid-input {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    padding: 20px;
    border: none;
    resize: none;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--gray-800);
    background: transparent;
    outline: none;
}
.diagram-canvas-container {
    flex: 1;
    position: relative;
    background-color: #000000;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
.preview-pane {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
#mermaid-output {
    background: #0A0A0B;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
}
#mermaid-output svg {
    max-width: 100%;
    height: auto;
}
.mermaid-error {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--red-bg);
    color: var(--red-dot);
    border: 1px solid var(--red-border);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 11px;
    z-index: 10;
}

/* ══════════════════════════════════════════
   EXPANDABLE WIDGET (ASSISTANT)
   ══════════════════════════════════════════ */
.expand-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 220px;
    height: 48px;
    background: #0A0A0B;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    overflow: hidden;
    transition: height 0.4s var(--ease-spring), width 0.4s var(--ease-spring);
    display: flex;
    flex-direction: column;
}
.expand-widget.expanded {
    width: 320px;
    height: 400px;
}
.widget-header {
    height: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--primary-600);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    transition: background 0.2s;
}
.widget-header:hover {
    background: var(--primary-500);
}
.widget-icon {
    transition: transform 0.4s var(--ease-spring);
}
.expand-widget.expanded .widget-icon {
    transform: rotate(180deg);
}
.widget-body {
    flex: 1;
    background: white;
    color: var(--gray-800);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.expand-widget.expanded .widget-body {
    opacity: 1;
    pointer-events: auto;
}

/* Chatbot Styles */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-message {
    display: flex;
    max-width: 85%;
}
.chat-message.bot {
    align-self: flex-start;
}
.chat-message.user {
    align-self: flex-end;
}
.msg-bubble {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 12px;
}
.chat-message.bot .msg-bubble {
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}
.chat-message.user .msg-bubble {
    background: var(--primary-600);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--gray-200);
    background: white;
}
.chat-input-area input {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.2s;
}
.chat-input-area input:focus {
    border-color: var(--primary-400);
}
/* Typing indicator */
.typing-dots { display: inline-flex; gap: 4px; padding: 4px; }
.typing-dots span { width: 6px; height: 6px; background: var(--gray-400); border-radius: 50%; animation: typing 1.4s infinite ease-in-out both; }
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
