@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap'); :root { --brand-orange: #fd6216; --brand-navy: #050026; --brand-orange-50: #fff1e8; --brand-orange-100: #ffe2d2; --brand-orange-200: #ffc9ac; --ink: #0f172a; } * { box-sizing: border-box; } body { margin: 0; font-family: 'Exo 2', sans-serif; background: #f8fafc; color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ---- Auth / Login ---- */ .auth-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 20px; overflow: hidden; } .auth-bg { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(253, 98, 22, 0.24), transparent 42%), radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.16), transparent 34%), linear-gradient(180deg, #100b2f 0%, #0c0828 52%, #07051d 100%); } .auth-layout { position: relative; z-index: 1; width: min(1120px, 100%); display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 24px; align-items: stretch; } .auth-visual { border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); padding: 28px; box-shadow: 0 24px 72px -34px rgba(0, 0, 0, 0.72); } .auth-visual-kicker { margin: 0; display: inline-flex; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #ffd7c2; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; } .auth-visual h1 { margin: 16px 0 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; color: #fff; } .auth-visual p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.82); } .auth-visual img { margin-top: 18px; width: 100%; height: 280px; border-radius: 16px; object-fit: cover; } .auth-card { position: relative; z-index: 1; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 72px -34px rgba(0, 0, 0, 0.72); padding: 30px; color: #0f172a; } .auth-form-card { display: flex; flex-direction: column; } .auth-logo { height: 52px; width: auto; object-fit: contain; margin: 0 auto; } .auth-title { margin: 18px 0 0; text-align: center; font-size: 32px; font-weight: 800; color: #0f172a; } .auth-copy { margin: 12px 0 0; text-align: center; color: #475569; } .auth-form-grid { margin-top: 24px; } .auth-switch { display: flex; justify-content: flex-end; margin-top: -2px; } .auth-switch.split { justify-content: space-between; } .auth-link-btn { border: 0; padding: 0; background: transparent; color: var(--brand-orange); font-size: 13px; font-weight: 600; cursor: pointer; } .auth-link-btn:hover { color: #ea580c; text-decoration: underline; } .auth-inline-msg { margin-top: 12px; } .hint { margin: 6px 0 0; color: #64748b; font-size: 12px; } /* ---- Admin Shell ---- */ .admin-root { min-height: 100vh; background: #f8fafc; } .admin-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid #e2e8f0; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); } .admin-header-inner { width: min(1440px, calc(100% - 36px)); margin: 0 auto; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; } .admin-brand { display: flex; align-items: center; gap: 12px; } .admin-brand img { height: 44px; width: auto; } .admin-brand-kicker { margin: 0; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; } .admin-brand h1 { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: var(--brand-navy); } .admin-header-actions { display: flex; align-items: center; gap: 10px; } .admin-role-chip { margin: 0; border: 1px solid #fdba74; background: #fff7ed; color: #9a3412; border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; } .shell { display: grid; grid-template-columns: 264px 1fr; height: calc(100vh - 64px); overflow: hidden; transition: grid-template-columns 300ms ease; } .shell.sidebar-collapsed { grid-template-columns: 72px 1fr; } .sidebar { border-right: 1px solid #e2e8f0; background: #fcfcfd; padding: 20px 12px 12px; display: flex; flex-direction: column; height: 100%; overflow: hidden; } .sidebar-toggle-row { margin-bottom: 12px; display: flex; justify-content: flex-end; padding: 0 6px; } .sidebar-toggle-btn { border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: 22px; line-height: 1; padding: 3px 8px; cursor: pointer; } .sidebar-toggle-btn:hover { background: #f1f5f9; color: #334155; } .sidebar-chevron { display: inline-block; transition: transform 300ms ease; } .sidebar-chevron.collapsed { transform: rotate(180deg); } /* Collapsed sidebar */ .sidebar.sidebar-collapsed { padding: 20px 6px 12px; align-items: center; } .sidebar.sidebar-collapsed .sidebar-toggle-row { padding: 0; justify-content: center; } .sidebar.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; gap: 0; } .collapsed-dot { position: absolute; right: -2px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 999px; background: var(--brand-orange); } .sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; } .nav-item { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; color: #475569; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; margin-bottom: 2px; font-size: 13.5px; line-height: 1.35; font-weight: 500; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease; /* Prevent layout shift: active state changes font-weight which could reflow text */ min-height: 40px; } .nav-dot { width: 8px; height: 8px; border-radius: 999px; background: #cbd5e1; transition: background-color 180ms ease; } .nav-icon { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; } .nav-item:hover { border-color: #e2e8f0; background: #fff; color: #0f172a; } .nav-item:hover .nav-dot { background: #94a3b8; } .nav-item.active { border-color: var(--brand-orange-200); background: linear-gradient(to right, var(--brand-orange-50), color-mix(in srgb, var(--brand-orange-100) 70%, white 30%)); color: #111827; font-weight: 700; box-shadow: inset 3px 0 0 0 var(--brand-orange); } .nav-title { flex: 1; /* Reserve space for bold state so text reflow doesn't shift layout */ display: grid; } .nav-title::after { content: attr(data-text); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; pointer-events: none; user-select: none; } .active-badge { border: 1px solid var(--brand-orange-200); border-radius: 999px; background: var(--brand-orange-100); color: #b45309; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; } .main { min-width: 0; overflow-y: auto; height: 100%; } .main-inner { max-width: 1200px; padding: 20px 24px 32px; } .admin-tab-wrap { border-bottom: 1px solid #e2e8f0; background: #fff; margin: -20px -24px 20px; padding: 0 24px; } .admin-tabs { display: flex; flex-wrap: wrap; gap: 20px; } .admin-tab { text-decoration: none; border: none; border-bottom: 2px solid transparent; background: transparent; padding: 12px 0; font-size: 14px; font-weight: 600; color: #475569; margin-bottom: -1px; cursor: pointer; font-family: 'Exo 2', sans-serif; transition: color 140ms ease, border-color 140ms ease; } .admin-tab:hover { color: #0f172a; border-bottom-color: #fd6216; } .admin-tab.active { border-bottom-color: #fd6216; color: #050026; } /* ---- Shared Content ---- */ .page-title { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; } .page-subtitle { margin: 4px 0 0; font-size: 13px; color: #64748b; } .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; } .card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; box-shadow: 0 12px 32px -28px rgba(15, 23, 42, 0.35); } .card h2 { margin: 0 0 12px; font-size: 19px; color: #111827; } .field { margin-bottom: 14px; } .field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #334155; } .field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; } .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(253, 98, 22, 0.14); } .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; } .btn { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; padding: 9px 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all 160ms ease; } .btn:hover { border-color: #94a3b8; color: #0f172a; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } .btn.primary { border-color: var(--brand-orange); background: var(--brand-orange); color: #fff; } .btn.primary:hover { border-color: #ea580c; background: #ea580c; } .block-btn { width: 100%; justify-content: center; text-align: center; } .json { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 12px; overflow: auto; max-height: 560px; } .notice { margin-top: 10px; font-size: 12px; color: #64748b; } .inline-note { margin-top: 10px; font-size: 12px; color: #0f766e; font-weight: 700; } .list-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .table-wrap { overflow-x: auto; } .list-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; } .list-table thead th { background: #050026; color: #fff; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px; } .list-table tbody td { border-bottom: 1px solid #e2e8f0; padding: 12px; color: #334155; vertical-align: middle; } .list-table tbody tr:hover td { background: #fff7ed; } .align-right { text-align: right !important; } .table-actions { display: flex; justify-content: flex-end; gap: 8px; } .status-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; background: #f1f5f9; color: #475569; } .status-chip.active { background: #ecfdf5; color: #047857; } .list-item { border: 1px solid #dbe1ec; border-radius: 12px; padding: 12px; background: #fff; } .list-item h3 { margin: 0 0 8px; font-size: 16px; } .list-item p { margin: 4px 0; font-size: 13px; color: #475569; } .json-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; background: #f8fafc; } .error-note { margin-top: 8px; font-size: 12px; color: #b91c1c; font-weight: 700; } @media (max-width: 1180px) { .auth-layout { grid-template-columns: 1fr; } .auth-visual { display: none; } } @media (max-width: 1000px) { .shell { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid #dbe1ec; } .grid, .list-grid { grid-template-columns: 1fr; } .admin-header-inner { min-height: 62px; } .admin-brand img { height: 36px; } } /* ---- Builder Components ---- */ .builder-header { background: #fff1e8; border: 1px solid #ffc9ac; border-radius: 16px; padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; } .builder-header h2 { margin: 0; font-size: 18px; font-weight: 700; color: #111827; } .builder-header p { margin: 4px 0 0; font-size: 13px; color: #475569; } .builder-header-actions { display: flex; gap: 8px; flex-shrink: 0; } .builder-tab-bar { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px; margin-bottom: 16px; } .builder-tab-btn { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: #475569; cursor: pointer; transition: all 150ms ease; font-family: 'Exo 2', sans-serif; } .builder-tab-btn:hover { background: #f8fafc; } .builder-tab-btn.active { border-color: #ffc9ac; background: #fff1e8; color: #c2410c; } .builder-section { border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; margin-bottom: 12px; } .builder-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .builder-section-header input { flex: 1; border: 1px solid #cbd5e1; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; outline: none; font-family: 'Exo 2', sans-serif; } .builder-section-header input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(253, 98, 22, 0.14); } .builder-item { display: grid; gap: 8px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; margin-bottom: 8px; background: #fff; } .builder-item input, .builder-item textarea, .builder-item select { border: 1px solid #cbd5e1; border-radius: 12px; padding: 8px 12px; font-size: 14px; outline: none; background: #fff; font-family: 'Exo 2', sans-serif; } .builder-item input:focus, .builder-item textarea:focus, .builder-item select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(253, 98, 22, 0.14); } .builder-item-row-4 { grid-template-columns: 1fr 90px 90px 110px; } .btn.danger { border-color: #fca5a5; background: #fff; color: #b91c1c; } .btn.danger:hover { border-color: #ef4444; background: #fef2f2; } .btn.orange { border-color: #ffc9ac; background: #fff1e8; color: #c2410c; font-size: 12px; padding: 6px 12px; } .btn.orange:hover { background: #ffe2d2; } .btn.navy { border-color: #050026; background: #050026; color: #fff; } .btn.navy:hover { background: #0a0040; } .field-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .sub-card { border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; padding: 16px; margin-top: 12px; } .sub-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .sub-card-header h4 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; } .nested-card { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 16px; margin-bottom: 8px; } .nested-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .nested-card-header input { flex: 1; border: 1px solid #cbd5e1; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; outline: none; font-family: 'Exo 2', sans-serif; } .nested-card-header input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(253, 98, 22, 0.14); } .widget-item { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 12px; margin-bottom: 8px; } .widget-item input, .widget-item textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; margin-bottom: 6px; font-family: 'Exo 2', sans-serif; } .widget-item input:focus, .widget-item textarea:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(253, 98, 22, 0.14); } /* Permission table for internal role management */ .perm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; overflow: hidden; border-radius: 12px; border: 1px solid #e2e8f0; } .perm-table thead th { background: #0B0720; color: #fff; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; } .perm-table thead th:not(:first-child) { text-align: center; } .perm-table tbody td { border-bottom: 1px solid #e2e8f0; padding: 12px 16px; color: #334155; background: #fff; } .perm-table tbody td:not(:first-child) { text-align: center; } .perm-table tbody tr:hover td { background: #fff7ed; } .module-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; } .module-chip { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; background: #fff; transition: all 150ms ease; font-family: 'Exo 2', sans-serif; text-align: left; } .module-chip:hover { border-color: #ffc9ac; background: #fff1e8; } .module-chip.selected { border-color: #ffc9ac; background: #fff1e8; color: #c2410c; font-weight: 600; } /* Builder preview */ .preview-shell { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; background: #f1f5f9; } .preview-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e8f0; background: #fff; padding: 16px 20px; } .preview-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 500px; } .preview-sidebar { border-right: 1px solid #e2e8f0; background: #fcfcfd; padding: 12px; } .preview-sidebar-item { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; cursor: pointer; font-size: 14px; color: #475569; text-align: left; border: 1px solid transparent; background: transparent; width: 100%; transition: all 150ms ease; font-family: 'Exo 2', sans-serif; } .preview-sidebar-item:hover { background: #fff; color: #0f172a; } .preview-sidebar-item.active { background: #fff1e8; color: #111827; font-weight: 600; box-shadow: inset 3px 0 0 0 #fd6216; } .preview-content { padding: 24px; overflow-y: auto; } .preview-section { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; padding: 20px; margin-bottom: 16px; } .preview-tabs { display: flex; gap: 8px; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; margin-top: 16px; flex-wrap: wrap; } .preview-tab-btn { border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; background: transparent; color: #475569; font-family: 'Exo 2', sans-serif; } .preview-tab-btn.active { border-color: #ffc9ac; background: #fff1e8; color: #c2410c; } .preview-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; } .preview-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; } .preview-field input, .preview-field select { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; font-size: 13px; background: #fff; outline: none; } .preview-widget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; } .preview-widget { border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; padding: 16px; } .preview-widget .w-label { font-size: 12px; color: #64748b; } .preview-widget .w-metric { font-size: 22px; font-weight: 700; color: #050026; margin-top: 8px; } .preview-widget .w-desc { font-size: 11px; color: #64748b; margin-top: 4px; } /* Onboarding step builder */ .step-builder { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; padding: 16px; margin-bottom: 12px; } .step-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .step-num { background: #050026; color: #fff; border-radius: 999px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; } .step-title-input { flex: 1; border: 1px solid #cbd5e1; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; outline: none; font-family: 'Exo 2', sans-serif; } .step-title-input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(253, 98, 22, 0.14); } .field-type-select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; font-size: 12px; background: #fff; outline: none; font-family: 'Exo 2', sans-serif; } .field-row { display: grid; grid-template-columns: 1fr 130px 100px auto; gap: 8px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; background: #fff; } .field-row input, .field-row select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; font-size: 13px; outline: none; font-family: 'Exo 2', sans-serif; } .field-row input:focus, .field-row select:focus { border-color: var(--brand-orange); } .error-box { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 12px; padding: 12px 16px; color: #b91c1c; font-size: 13px; margin-bottom: 12px; } .success-note { margin-top: 8px; font-size: 12px; color: #047857; font-weight: 700; } .info-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #475569; } .role-detail-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 16px; } .role-field-readonly { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #f8fafc; color: #64748b; cursor: not-allowed; } .page-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; } .page-actions-right { display: flex; gap: 8px; } .role-form-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin-bottom: 16px; } .role-form-section h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; } .role-form-section p { margin: 0 0 16px; font-size: 13px; color: #64748b; } .external-role-form .field select { width: 100%; } .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; } .checkbox-label input[type="checkbox"] { width: 16px; height: 16px; } .onboarding-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } .onboarding-stat { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 14px 16px; } .onboarding-stat .stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; } .onboarding-stat .stat-value { font-size: 18px; font-weight: 700; color: #050026; margin-top: 4px; }