monacousa-portal/assets/scss/components/_dashboards.scss

472 lines
9.4 KiB
SCSS
Raw Normal View History

// ============================================
// Dashboard Component Styles
// Professional enhancements for all dashboards
// ============================================
// Dashboard Container
.admin-dashboard,
.board-dashboard,
.member-dashboard {
padding: 2rem;
min-height: 100vh;
background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
@media (max-width: 768px) {
padding: 1rem;
}
}
// Enhanced Dashboard Header
.dashboard-header {
text-align: center;
padding: 3rem 2rem;
margin-bottom: 2rem;
position: relative;
overflow: hidden;
&.glass-header {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 24px;
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255, 255, 255, 0.5);
&::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(
circle,
rgba(220, 38, 38, 0.03) 0%,
transparent 70%
);
animation: float 20s ease-in-out infinite;
}
}
.dashboard-title {
font-size: 3rem;
font-weight: 800;
margin-bottom: 0.5rem;
letter-spacing: -0.02em;
&.text-gradient {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
@media (max-width: 768px) {
font-size: 2rem;
}
}
.dashboard-subtitle {
font-size: 1.125rem;
color: #64748b;
font-weight: 500;
}
}
// Enhanced Stat Cards
.stat-card {
height: 100%;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
.stat-value {
font-size: 2.5rem;
font-weight: 700;
color: #1f2937;
line-height: 1.2;
margin: 0.5rem 0;
@media (max-width: 768px) {
font-size: 2rem;
}
}
&:hover {
transform: translateY(-6px) scale(1.02);
box-shadow:
0 25px 50px rgba(0, 0, 0, 0.15),
0 10px 30px rgba(220, 38, 38, 0.1);
}
.v-avatar {
background: linear-gradient(135deg,
rgba(var(--v-theme-on-surface), 0.05) 0%,
rgba(var(--v-theme-on-surface), 0.02) 100%);
}
}
// Enhanced Glass Cards
.glass-card {
background: rgba(255, 255, 255, 0.88) !important;
backdrop-filter: blur(16px) saturate(180%) !important;
-webkit-backdrop-filter: blur(16px) saturate(180%) !important;
border: 1px solid rgba(255, 255, 255, 0.3) !important;
box-shadow:
0 10px 40px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
&:hover {
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
}
// Enhanced Bento Grid
.bento-grid {
display: grid !important;
grid-template-columns: repeat(12, 1fr) !important;
gap: 1.5rem !important;
margin-bottom: 2rem;
.bento-item {
position: relative;
&--small {
grid-column: span 3 !important;
@media (max-width: 1280px) {
grid-column: span 6 !important;
}
@media (max-width: 768px) {
grid-column: span 12 !important;
}
}
&--medium {
grid-column: span 4 !important;
@media (max-width: 1280px) {
grid-column: span 6 !important;
}
@media (max-width: 768px) {
grid-column: span 12 !important;
}
}
&--large {
grid-column: span 6 !important;
@media (max-width: 768px) {
grid-column: span 12 !important;
}
}
&--xlarge {
grid-column: span 8 !important;
@media (max-width: 1280px) {
grid-column: span 12 !important;
}
}
&--full {
grid-column: span 12 !important;
}
}
}
// Enhanced Data Tables
.v-data-table {
background: transparent !important;
.v-data-table__wrapper {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: 16px;
overflow: hidden;
}
thead {
background: linear-gradient(135deg,
rgba(220, 38, 38, 0.03) 0%,
rgba(185, 28, 28, 0.01) 100%);
th {
font-weight: 600 !important;
font-size: 0.75rem !important;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #64748b !important;
padding: 1rem !important;
}
}
tbody {
tr {
transition: all 0.2s ease;
&:hover {
background: rgba(220, 38, 38, 0.02) !important;
td {
color: #1f2937 !important;
}
}
td {
padding: 1rem !important;
font-size: 0.875rem;
color: #475569;
}
}
}
}
// Enhanced Buttons in Dashboards
.dashboard-action-btn {
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
&::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
&:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
&::before {
width: 300px;
height: 300px;
}
}
}
// Activity Timeline Enhancement
.activity-timeline {
.v-timeline-item {
&::before {
background: linear-gradient(180deg,
rgba(220, 38, 38, 0.1) 0%,
transparent 100%);
}
.v-timeline-item__dot {
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
}
}
// Quick Actions Enhancement
.quick-actions-card {
.v-btn {
margin: 0.25rem;
&:hover {
transform: translateY(-2px);
}
}
}
// Enhanced Loading States
.skeleton-loader {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.5) 25%,
rgba(255, 255, 255, 0.8) 50%,
rgba(255, 255, 255, 0.5) 75%
);
background-size: 200% 100%;
animation: loading 1.5s infinite;
}
@keyframes loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
@keyframes float {
0%, 100% {
transform: translate(0, 0) rotate(0deg);
}
33% {
transform: translate(30px, -30px) rotate(120deg);
}
66% {
transform: translate(-20px, 20px) rotate(240deg);
}
}
// Animated Entrance
.animated-entrance {
animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
// Professional Typography in Dashboards
.dashboard-section-title {
font-size: 1.5rem;
font-weight: 700;
color: #1f2937;
margin-bottom: 1.5rem;
position: relative;
padding-left: 1rem;
&::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 24px;
background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
border-radius: 2px;
}
}
// Status Badges Enhancement
.status-badge {
padding: 0.25rem 0.75rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
display: inline-flex;
align-items: center;
gap: 0.25rem;
&--active {
background: linear-gradient(135deg,
rgba(34, 197, 94, 0.1) 0%,
rgba(34, 197, 94, 0.05) 100%);
color: #16a34a;
border: 1px solid rgba(34, 197, 94, 0.2);
}
&--pending {
background: linear-gradient(135deg,
rgba(245, 158, 11, 0.1) 0%,
rgba(245, 158, 11, 0.05) 100%);
color: #ca8a04;
border: 1px solid rgba(245, 158, 11, 0.2);
}
&--inactive {
background: linear-gradient(135deg,
rgba(107, 114, 128, 0.1) 0%,
rgba(107, 114, 128, 0.05) 100%);
color: #6b7280;
border: 1px solid rgba(107, 114, 128, 0.2);
}
}
// Chart Card Enhancement
.chart-card {
.chart-header {
padding: 1.5rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
.chart-title {
font-size: 1.125rem;
font-weight: 600;
color: #1f2937;
}
.chart-subtitle {
font-size: 0.875rem;
color: #64748b;
margin-top: 0.25rem;
}
}
.chart-body {
padding: 1.5rem;
position: relative;
}
}
// Responsive Improvements
@media (max-width: 768px) {
.dashboard-header {
padding: 2rem 1rem;
.dashboard-title {
font-size: 1.75rem;
}
.dashboard-subtitle {
font-size: 1rem;
}
}
.bento-grid {
gap: 1rem !important;
}
.stat-card {
.stat-value {
font-size: 1.75rem;
}
}
}
// Dark Mode Support
@media (prefers-color-scheme: dark) {
.admin-dashboard,
.board-dashboard,
.member-dashboard {
background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
}
.dashboard-header.glass-header {
background: rgba(30, 30, 30, 0.9);
border-color: rgba(255, 255, 255, 0.1);
}
.glass-card {
background: rgba(30, 30, 30, 0.88) !important;
border-color: rgba(255, 255, 255, 0.1) !important;
}
.dashboard-title.text-gradient {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-value,
.dashboard-section-title {
color: #f4f4f5;
}
}