Spaces:
Running
Running
| :root { | |
| --bg: #fbbf24; /* Banana Yellow */ | |
| --card: #ffffff; | |
| --card-border: #000000; | |
| --accent: #f472b6; /* Bubblegum Pink */ | |
| --accent2: #38bdf8; /* Sky Blue */ | |
| --accent3: #4ade80; /* Jungle Green */ | |
| --danger: #fb7185; | |
| --warning: #fbcfe8; | |
| --text: #000000; | |
| --text-muted: #3f3f46; | |
| --font-family: 'Fredoka', sans-serif; | |
| } | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| background-color: var(--bg); | |
| color: var(--text); | |
| font-family: var(--font-family); | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| #root { | |
| height: 100vh; | |
| padding: 12px 16px; | |
| box-sizing: border-box; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .dashboard-header { | |
| display: flex; | |
| flex-direction: column; | |
| margin-bottom: 12px; | |
| border-bottom: 4px solid var(--card-border); | |
| padding-bottom: 8px; | |
| flex-shrink: 0; | |
| background-color: var(--card); | |
| border-radius: 12px; | |
| padding: 8px 16px; | |
| box-shadow: 4px 4px 0px #000000; | |
| border: 3px solid #000000; | |
| } | |
| .header-title-container { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .header-dot { | |
| width: 12px; | |
| height: 12px; | |
| border-radius: 50%; | |
| background-color: var(--accent3); | |
| box-shadow: 0 0 8px var(--accent3); | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 8px var(--accent3); } | |
| 50% { box-shadow: 0 0 16px var(--accent3); } | |
| 100% { box-shadow: 0 0 8px var(--accent3); } | |
| } | |
| .header-title { | |
| margin: 0; | |
| font-size: 26px; | |
| font-weight: 700; | |
| color: var(--text); | |
| letter-spacing: 1px; | |
| } | |
| .gorilla-logo { | |
| height: 48px; | |
| width: auto; | |
| border-radius: 8px; | |
| object-fit: contain; | |
| cursor: pointer; | |
| transform-origin: center bottom; | |
| transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); | |
| } | |
| .gorilla-logo:hover { | |
| transform: scale(1.15); | |
| } | |
| @keyframes fadeInOverlay { | |
| 0% { opacity: 0; } | |
| 100% { opacity: 1; } | |
| } | |
| @keyframes fadeInScale { | |
| 0% { opacity: 0; transform: scale(0.5); } | |
| 100% { opacity: 1; transform: scale(1); } | |
| } | |
| .thump-video-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| background: rgba(0, 0, 0, 0.5); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 9999; | |
| animation: fadeInOverlay 0.4s ease-out forwards; | |
| } | |
| .thump-video { | |
| width: 250px; | |
| height: auto; | |
| border-radius: 20px; | |
| border: 6px solid #000000; | |
| box-shadow: 8px 8px 0px #000000; | |
| animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; | |
| } | |
| .header-subtitle { | |
| color: var(--text-muted); | |
| margin-top: 4px; | |
| font-size: 13px; | |
| } | |
| /* Tabs */ | |
| .tabs-container { | |
| display: flex; | |
| gap: 12px; | |
| margin-bottom: 16px; | |
| flex-shrink: 0; | |
| } | |
| .tab-btn { | |
| background-color: var(--card); | |
| color: var(--text); | |
| border: 3px solid var(--card-border); | |
| border-bottom: none; | |
| border-radius: 16px 16px 0 0; | |
| padding: 12px 24px; | |
| font-weight: 600; | |
| font-size: 16px; | |
| cursor: pointer; | |
| transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); | |
| outline: none; | |
| font-family: var(--font-family); | |
| box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1); | |
| } | |
| .tab-btn:hover { | |
| background-color: var(--accent); | |
| transform: translateY(-2px); | |
| } | |
| .tab-btn.active { | |
| background-color: var(--accent2); | |
| color: #000000; | |
| border-color: #000000; | |
| } | |
| /* KPI Container */ | |
| .kpi-container { | |
| display: flex; | |
| gap: 8px; | |
| flex-wrap: nowrap; | |
| margin-bottom: 16px; | |
| flex-shrink: 0; | |
| } | |
| /* KPI Card */ | |
| .kpi-card { | |
| background: var(--card); | |
| border: 3px solid var(--card-border); | |
| border-radius: 16px; | |
| padding: 10px; | |
| text-align: center; | |
| flex: 1; | |
| min-width: 0; | |
| transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); | |
| box-shadow: 4px 4px 0px #000000; | |
| } | |
| .kpi-card:hover { | |
| transform: scale(1.05) rotate(-2deg); | |
| box-shadow: 8px 8px 0px #000000; | |
| background-color: var(--warning); | |
| } | |
| .kpi-title { | |
| color: var(--text-muted); | |
| font-size: 11px; | |
| margin-bottom: 2px; | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| .kpi-value { | |
| font-size: 20px; | |
| font-weight: 700; | |
| margin: 4px 0; | |
| } | |
| .kpi-subtitle { | |
| color: var(--text-muted); | |
| font-size: 10px; | |
| margin-top: 2px; | |
| } | |
| /* Base Card */ | |
| .glass-card { | |
| background: var(--card); | |
| border: 3px solid var(--card-border); | |
| border-radius: 16px; | |
| padding: 12px; | |
| margin-bottom: 0; | |
| box-shadow: 6px 6px 0px #000000; | |
| transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); | |
| } | |
| .glass-card h3 { | |
| font-weight: 700; | |
| letter-spacing: 0.5px; | |
| } | |
| /* Charts Grid */ | |
| .charts-master-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); | |
| gap: 12px; | |
| flex: 1; | |
| min-height: 0; | |
| } | |
| .chart-card { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .canvas-container { | |
| flex: 1; | |
| min-height: 0; | |
| position: relative; | |
| } | |
| @media (max-width: 900px) { | |
| .charts-master-grid { | |
| grid-template-columns: 1fr; | |
| grid-template-rows: auto; | |
| overflow-y: auto; | |
| } | |
| #root { | |
| height: auto; | |
| overflow: visible; | |
| } | |
| } | |
| /* Material Predictor */ | |
| .predictor-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .predictor-title { | |
| margin: 0 0 4px 0; | |
| font-size: 18px; | |
| } | |
| .predictor-form { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 24px; | |
| margin-bottom: 20px; | |
| } | |
| .slider-container label { | |
| display: block; | |
| color: var(--text-muted); | |
| font-size: 13px; | |
| margin-bottom: 8px; | |
| } | |
| .slider-container input[type="range"] { | |
| width: 100%; | |
| accent-color: var(--accent2); | |
| } | |
| .btn-primary { | |
| background-color: var(--accent); | |
| color: #000000; | |
| border: 3px solid #000000; | |
| border-radius: 16px; | |
| padding: 12px 32px; | |
| font-size: 18px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| width: 100%; | |
| transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); | |
| box-shadow: 4px 4px 0px #000000; | |
| font-family: var(--font-family); | |
| } | |
| .btn-primary:hover { | |
| background-color: var(--accent2); | |
| transform: translate(-2px, -2px); | |
| box-shadow: 6px 6px 0px #000000; | |
| } | |
| .btn-primary:active { | |
| transform: translate(2px, 2px); | |
| box-shadow: 0px 0px 0px #000000; | |
| } | |
| .prediction-result { | |
| background: var(--accent3); | |
| } | |
| /* ChatBot Styles */ | |
| .chat-modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| background: rgba(0, 0, 0, 0.4); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 10000; | |
| animation: fadeInOverlay 0.2s ease-out forwards; | |
| } | |
| .chat-widget-container { | |
| position: fixed; | |
| width: 360px; | |
| height: 600px; | |
| min-width: 250px; | |
| min-height: 300px; | |
| background: var(--card); | |
| border: 4px solid #000000; | |
| border-radius: 16px; | |
| box-shadow: 12px 12px 0px #000000; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| z-index: 10000; | |
| resize: both; | |
| } | |
| .chat-header { | |
| background: var(--accent2); | |
| padding: 16px; | |
| border-bottom: 4px solid #000000; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| cursor: move; | |
| user-select: none; | |
| } | |
| .chat-header h3 { | |
| margin: 0; | |
| font-size: 20px; | |
| font-weight: 800; | |
| } | |
| .chat-close-btn { | |
| background: var(--card); | |
| border: 3px solid #000000; | |
| border-radius: 50%; | |
| width: 32px; | |
| height: 32px; | |
| font-size: 20px; | |
| font-weight: bold; | |
| cursor: pointer; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| transition: transform 0.2s; | |
| } | |
| .chat-close-btn:hover { | |
| background: var(--danger); | |
| transform: scale(1.1) rotate(90deg); | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| padding: 16px; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| background: #e0f2fe; | |
| } | |
| .chat-message { | |
| display: flex; | |
| width: 100%; | |
| } | |
| .chat-message.user { | |
| justify-content: flex-end; | |
| } | |
| .chat-message.model { | |
| justify-content: flex-start; | |
| } | |
| .chat-bubble { | |
| max-width: 80%; | |
| padding: 12px 16px; | |
| border: 3px solid #000000; | |
| border-radius: 12px; | |
| font-size: 15px; | |
| line-height: 1.4; | |
| box-shadow: 4px 4px 0px #000000; | |
| white-space: pre-wrap; | |
| } | |
| .chat-message.user .chat-bubble { | |
| background: var(--accent); | |
| border-bottom-right-radius: 0; | |
| } | |
| .chat-message.model .chat-bubble { | |
| background: var(--card); | |
| border-bottom-left-radius: 0; | |
| } | |
| .chat-bubble.loading { | |
| font-style: italic; | |
| color: var(--text-muted); | |
| } | |
| .chat-input-area { | |
| display: flex; | |
| padding: 12px; | |
| background: var(--card); | |
| border-top: 4px solid #000000; | |
| gap: 8px; | |
| } | |
| .chat-input { | |
| flex: 1; | |
| padding: 12px; | |
| border: 3px solid #000000; | |
| border-radius: 8px; | |
| font-size: 16px; | |
| font-family: var(--font-family); | |
| outline: none; | |
| } | |
| .chat-input:focus { | |
| border-color: var(--accent2); | |
| } | |
| .chat-send-btn { | |
| background: var(--accent3); | |
| color: #000000; | |
| border: 3px solid #000000; | |
| border-radius: 8px; | |
| padding: 0 24px; | |
| font-weight: 700; | |
| font-size: 16px; | |
| cursor: pointer; | |
| font-family: var(--font-family); | |
| box-shadow: 4px 4px 0px #000000; | |
| transition: transform 0.1s, box-shadow 0.1s; | |
| } | |
| .chat-send-btn:hover:not(:disabled) { | |
| transform: translate(-2px, -2px); | |
| box-shadow: 6px 6px 0px #000000; | |
| } | |
| .chat-send-btn:active:not(:disabled) { | |
| transform: translate(2px, 2px); | |
| box-shadow: 0px 0px 0px #000000; | |
| } | |
| .chat-send-btn:disabled { | |
| background: #ccc; | |
| cursor: not-allowed; | |
| } | |