diff --git a/app/Filament/Admin/Resources/Proposals/Schemas/ProposalForm.php b/app/Filament/Admin/Resources/Proposals/Schemas/ProposalForm.php index aba1fc7..3614eaf 100644 --- a/app/Filament/Admin/Resources/Proposals/Schemas/ProposalForm.php +++ b/app/Filament/Admin/Resources/Proposals/Schemas/ProposalForm.php @@ -138,7 +138,7 @@ class ProposalForm 'coral' => 'Coral Corporate (Mercan Kırmızı)', 'amber' => 'Amber Executive (Kehribar/Altın)', ]) - ->default('indigo') + ->default('coral') ->live() ->columnSpan(4), diff --git a/resources/views/proposals/show.blade.php b/resources/views/proposals/show.blade.php index cb11b52..f5e1189 100644 --- a/resources/views/proposals/show.blade.php +++ b/resources/views/proposals/show.blade.php @@ -296,7 +296,68 @@ display: block; } .mermaid-container.mermaid-active { - box-shadow: 0 0 0 2px var(--accent-color, #4f46e5); + box-shadow: 0 0 0 2px var(--accent-color, #ea580c); + } + + /* Mermaid Orange/Red Brand Theme Styling Overrides */ + .mermaid svg .task { + fill: #ea580c !important; + stroke: #c2410c !important; + rx: 6px !important; + ry: 6px !important; + } + .mermaid svg .task0, .mermaid svg .task2 { + fill: #ea580c !important; + stroke: #c2410c !important; + } + .mermaid svg .task1, .mermaid svg .task3 { + fill: #ef4444 !important; + stroke: #b91c1c !important; + } + .mermaid svg .taskText, + .mermaid svg .taskTextOutsideRight, + .mermaid svg .taskTextOutsideLeft { + font-family: 'Inter', sans-serif !important; + font-weight: 600 !important; + } + .mermaid svg .taskText { + fill: #ffffff !important; + } + .mermaid svg .taskTextOutsideRight, + .mermaid svg .taskTextOutsideLeft { + fill: #1e293b !important; + } + .dark .mermaid svg .taskTextOutsideRight, + .dark .mermaid svg .taskTextOutsideLeft { + fill: #f1f5f9 !important; + } + .mermaid svg .section0, + .mermaid svg .section2 { + fill: rgba(234, 88, 12, 0.08) !important; + } + .dark .mermaid svg .section0, + .dark .mermaid svg .section2 { + fill: rgba(234, 88, 12, 0.18) !important; + } + .mermaid svg .section1, + .mermaid svg .section3 { + fill: rgba(239, 68, 68, 0.08) !important; + } + .dark .mermaid svg .section1, + .dark .mermaid svg .section3 { + fill: rgba(239, 68, 68, 0.18) !important; + } + .mermaid svg .today { + stroke: #ef4444 !important; + stroke-width: 2px !important; + } + .mermaid svg .titleText { + fill: #0f172a !important; + font-weight: 700 !important; + font-family: 'Outfit', sans-serif !important; + } + .dark .mermaid svg .titleText { + fill: #f8fafc !important; } /* Fullscreen overlay */ @@ -411,27 +472,27 @@ @php - $accent = $proposal->meta['accent_color'] ?? 'indigo'; + $accent = $proposal->meta['accent_color'] ?? 'coral'; $accentColor = match($accent) { 'emerald' => '#059669', 'cyberpunk' => '#ec4899', 'coral' => '#ea580c', 'amber' => '#d97706', - default => '#4f46e5', + default => '#ea580c', }; $accentColorGlow = match($accent) { 'emerald' => 'rgba(5, 150, 105, 0.2)', 'cyberpunk' => 'rgba(236, 72, 153, 0.2)', 'coral' => 'rgba(234, 88, 12, 0.2)', 'amber' => 'rgba(217, 119, 6, 0.2)', - default => 'rgba(79, 70, 229, 0.2)', + default => 'rgba(234, 88, 12, 0.2)', }; $themeClass = match($accent) { 'emerald' => 'theme-emerald bg-emerald-600 hover:bg-emerald-700 focus:ring-emerald-500 text-emerald-600 dark:text-emerald-400 border-emerald-500/20', 'cyberpunk' => 'theme-rose bg-rose-500 hover:bg-rose-600 focus:ring-rose-400 text-rose-500 dark:text-rose-400 border-rose-500/20', 'coral' => 'theme-orange bg-orange-600 hover:bg-orange-700 focus:ring-orange-500 text-orange-600 dark:text-orange-400 border-orange-500/20', 'amber' => 'theme-amber bg-amber-600 hover:bg-amber-700 focus:ring-amber-500 text-amber-600 dark:text-amber-400 border-amber-500/20', - default => 'theme-indigo bg-indigo-600 hover:bg-indigo-700 focus:ring-indigo-500 text-indigo-600 dark:text-indigo-400 border-indigo-500/20', + default => 'theme-orange bg-orange-600 hover:bg-orange-700 focus:ring-orange-500 text-orange-600 dark:text-orange-400 border-orange-500/20', }; $gradient = match($accent) { 'emerald' => 'from-emerald-600 to-teal-600 dark:from-emerald-500 dark:to-teal-500', @@ -966,10 +1027,39 @@ const isDark = document.documentElement.classList.contains('dark'); mermaid.initialize({ startOnLoad: false, - theme: isDark ? 'dark' : 'default', + theme: 'base', securityLevel: 'loose', themeVariables: { - fontFamily: 'Inter, sans-serif' + fontFamily: 'Inter, sans-serif', + darkMode: isDark, + background: isDark ? '#0f172a' : '#ffffff', + primaryColor: '#ea580c', + primaryTextColor: '#ffffff', + primaryBorderColor: '#c2410c', + lineColor: '#ea580c', + secondaryColor: '#ef4444', + secondaryTextColor: '#ffffff', + tertiaryColor: isDark ? '#1e293b' : '#fff7ed', + tertiaryTextColor: isDark ? '#f8fafc' : '#9a3412', + activeTaskBkgColor: '#ea580c', + activeTaskBorderColor: '#c2410c', + doneTaskBkgColor: '#f97316', + doneTaskBorderColor: '#ea580c', + critBkgColor: '#ef4444', + critBorderColor: '#b91c1c', + taskTextLightColor: '#ffffff', + taskTextColor: '#ffffff', + taskTextDarkColor: '#ffffff', + taskTextOutsideColor: isDark ? '#e2e8f0' : '#1e293b', + sectionBkgColor: isDark ? 'rgba(234, 88, 12, 0.15)' : 'rgba(234, 88, 12, 0.07)', + sectionBkgColor2: isDark ? 'rgba(239, 68, 68, 0.15)' : 'rgba(239, 68, 68, 0.07)', + altSectionBkgColor: isDark ? 'rgba(234, 88, 12, 0.10)' : 'rgba(234, 88, 12, 0.04)', + gridColor: isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.08)', + todayLineColor: '#ef4444', + nodeBorder: '#ea580c', + clusterBkg: isDark ? '#1e293b' : '#fff7ed', + clusterBorder: '#f97316', + titleColor: isDark ? '#f8fafc' : '#0f172a' } }); @@ -986,20 +1076,18 @@ const wrapper = document.getElementById('mermaid-wrapper-' + index); const canvas = document.getElementById('mermaid-canvas-' + index); const pz = mermaidZoomInstances[index]; - if (!wrapper || !canvas || !pz) return; + if (!wrapper || !canvas) return; wrapper.classList.add('mermaid-active'); canvas.classList.add('mermaid-active'); - pz.enablePan(); + if (pz) pz.enablePan(); } function deactivateMermaid(index) { const wrapper = document.getElementById('mermaid-wrapper-' + index); const canvas = document.getElementById('mermaid-canvas-' + index); - const pz = mermaidZoomInstances[index]; if (wrapper) wrapper.classList.remove('mermaid-active'); if (canvas) canvas.classList.remove('mermaid-active'); - if (pz) pz.disablePan(); if (mermaidActiveIndex === index) mermaidActiveIndex = null; } @@ -1041,25 +1129,19 @@ wrapper.id = 'mermaid-wrapper-' + index; wrapper.dataset.mermaidSource = rawMermaid; - // Zoom Toolbar + // Zoom Toolbar (Uzaklaştır [-] | 100% | Yakınlaştır [+] | Sıfırla/Sığdır | Tam Ekran) const toolbar = document.createElement('div'); toolbar.className = 'mermaid-toolbar'; toolbar.innerHTML = ` - - + +
`; @@ -1070,7 +1152,7 @@ canvas.id = 'mermaid-canvas-' + index; const graphDiv = document.createElement('div'); - graphDiv.className = 'mermaid w-full'; + graphDiv.className = 'mermaid w-full h-full'; graphDiv.id = 'mermaid-graph-' + index; graphDiv.textContent = rawMermaid; @@ -1088,19 +1170,21 @@