FE/src/index.css

135 lines
2.5 KiB
CSS

:root {
--primary: #0066FF;
--primary-hover: #0052CC;
--bg-main: #F4F7FB;
--bg-surface: #FFFFFF;
--text-main: #1D2129;
--text-secondary: #4E5969;
--border-color: #E5E6EB;
--p0-color: #F53F3F;
--p1-color: #FF7D00;
--p2-color: #F7BA1E;
--p3-color: #165DFF;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
--transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--bg-main);
color: var(--text-main);
overflow: hidden;
}
#root {
height: 100vh;
display: flex;
flex-direction: column;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #C9CDD4;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #86909C;
}
/* Glassmorphism Classes */
.glass {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.card {
background: var(--bg-surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-color);
}
/* Global Button & Interactive Feedback */
button,
[role="button"],
.clickable,
.interactive-item,
.dir-item,
.global-nav-list li,
.plan-list li,
.table-row,
.tool-btn,
.toggle-btn,
.action-btn {
transition: var(--transition-base);
cursor: pointer;
user-select: none;
}
button:active,
[role="button"]:active,
.clickable:active,
.interactive-item:active,
.dir-item:active,
.global-nav-list li:active,
.plan-list li:active,
.tool-btn:active,
.toggle-btn:active,
.action-btn:active {
transform: scale(0.97);
opacity: 0.9;
}
.table-row:active {
background-color: #F0F7FF !important;
}
/* Base button styles to ensure consistency */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 16px;
border-radius: var(--radius-md);
font-weight: 500;
font-size: 14px;
border: 1px solid transparent;
transition: var(--transition-base);
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}
.btn-primary:active {
transform: scale(0.96);
}