Spaces:
Paused

miracle / frontend /apps /customer /src /index.css
dushyantsingh0
fix customer analytics summary formatting and font sizes
48209bc
Raw History Blame Contribute Delete
5.32 kB
:root {
/* Inherit from shared theme */
--text: var(--text-muted);
--text-h: var(--text-main);
--bg: var(--bg-dark);
--border: var(--border-subtle);
--code-bg: var(--bg-panel);
--accent: var(--primary);
--sans: var(--font-sans);
--heading: var(--font-heading);
--mono: var(--font-mono);
/* Modern Hierarchy */
font: 14px/1.6 var(--sans);
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 13px;
}
}
* {
box-sizing: border-box;
}
#root {
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
}
body {
margin: 0;
background: var(--bg);
overflow-x: hidden;
}
/* Typography Hierarchy */
h1, h2, h3, h4 {
font-family: var(--heading);
color: var(--text-h);
letter-spacing: -0.025em;
margin: 0;
}
h1 {
font-size: clamp(28px, 5vw, 42px);
font-weight: 800;
line-height: 1.1;
}
h2 {
font-size: clamp(20px, 3vw, 26px);
font-weight: 800;
line-height: 1.2;
}
h3 {
font-size: 16px;
font-weight: 700;
}
p {
font-size: clamp(14px, 2vw, 16px);
line-height: 1.7;
color: var(--text-muted);
}
.metadata {
font-family: var(--heading);
font-size: 11px;
font-weight: 800;
color: var(--text-muted);
letter-spacing: 0.12em;
text-transform: uppercase;
}
.numeric {
font-family: var(--mono);
font-variant-numeric: tabular-nums;
font-weight: 500;
}
/* Premium Component Foundations */
.glass-card {
background: var(--bg-card);
backdrop-filter: blur(12px) saturate(180%);
border: 1.5px solid var(--border-subtle);
box-shadow: var(--shadow-lg);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift {
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-xl);
}
.input-focus {
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.input-focus:focus-within {
border-color: var(--primary) !important;
box-shadow: 0 0 0 4px var(--primary-glow) !important;
}
/* Tactical Responsive Utils */
@media (max-width: 768px) {
.mobile-hide {
display: none !important;
}
.mobile-stack {
flex-direction: column !important;
}
.mobile-full {
width: 100% !important;
max-width: 100% !important;
}
.mobile-padding {
padding: 24px !important;
}
}
/* Global Dropdown Normalization */
select {
appearance: none;
padding-right: 40px !important;
cursor: pointer;
}
.theme-dark select {
background-color: var(--bg-card);
}
.theme-light select {
background-color: var(--bg-card);
}
option {
background-color: var(--bg-card);
color: var(--text-main);
padding: 12px;
}
select:focus {
border-color: var(--primary) !important;
box-shadow: 0 0 0 4px var(--primary-glow) !important;
}
/* Intelligent Scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-subtle);
border-radius: 10px;
transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.spin {
animation: spin 1s linear infinite;
}
/* Refined Organic Typography & Transitions */
h1, h2, h3, .metadata {
font-family: 'Manrope', var(--font-sans);
letter-spacing: -0.02em;
}
.organic-card {
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.organic-card:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}
.mesh-bg {
pointer-events: none;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-organic {
animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Operational Narrative Summary Styling */
.customer-narrative-box {
background: var(--bg-dark);
padding: 32px;
border-radius: 20px;
border: 1px solid var(--border-subtle);
margin-top: 16px;
box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.04);
}
.customer-narrative-box p {
font-size: 14.5px !important;
font-weight: 500 !important;
line-height: 1.75 !important;
color: var(--text-main) !important;
margin-bottom: 20px !important;
}
.customer-narrative-box strong {
font-weight: 700 !important;
color: var(--primary) !important;
}
.customer-narrative-box ul, .customer-narrative-box ol {
margin: 16px 0 !important;
padding-left: 24px !important;
}
.customer-narrative-box li {
font-size: 14px !important;
font-weight: 500 !important;
margin-bottom: 10px !important;
color: var(--text-main) !important;
}
.customer-narrative-box h1, .customer-narrative-box h2, .customer-narrative-box h3 {
font-size: 16px !important;
font-weight: 800 !important;
margin: 24px 0 12px 0 !important;
color: var(--text-main) !important;
font-family: var(--font-heading) !important;
}