feat: add Usage Limits Panel component with usage tracking and visual indicators for limits

style: implement custom color schemes and gradients for account section, enhancing visual hierarchy
This commit is contained in:
IGNY8 VPS (Salman)
2025-12-12 13:15:15 +00:00
parent 12956ec64a
commit 6e2101d019
29 changed files with 3622 additions and 85 deletions

View File

@@ -0,0 +1,435 @@
/* ===================================================================
IGNY8 ACCOUNT SECTION - CUSTOM COLOR SCHEMES
===================================================================
Brand-specific styling for account, billing, and usage pages
Follows IGNY8 design system with enhanced gradients and visual hierarchy
=================================================================== */
/* Account Page Container */
.account-page {
background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
min-height: 100vh;
}
.dark .account-page {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
/* === IGNY8 BRAND GRADIENTS === */
.igny8-gradient-primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.igny8-gradient-success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.igny8-gradient-warning {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.igny8-gradient-danger {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.igny8-gradient-purple {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.igny8-gradient-teal {
background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}
/* === CARD VARIANTS === */
.igny8-card-premium {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
border: 1px solid rgba(59, 130, 246, 0.2);
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}
.dark .igny8-card-premium {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
border: 1px solid rgba(59, 130, 246, 0.3);
}
.igny8-card-success {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
border: 1px solid rgba(16, 185, 129, 0.2);
}
.dark .igny8-card-success {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
border: 1px solid rgba(16, 185, 129, 0.3);
}
.igny8-card-warning {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
border: 1px solid rgba(245, 158, 11, 0.2);
}
.dark .igny8-card-warning {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
border: 1px solid rgba(245, 158, 11, 0.3);
}
/* === USAGE METRICS === */
.usage-metric-card {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.usage-metric-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}
.usage-metric-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.usage-metric-card.warning::before {
background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.usage-metric-card.danger::before {
background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.usage-metric-card.success::before {
background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
/* === PROGRESS BARS === */
.igny8-progress-bar {
height: 8px;
background: #e5e7eb;
border-radius: 9999px;
overflow: hidden;
position: relative;
}
.dark .igny8-progress-bar {
background: #374151;
}
.igny8-progress-fill {
height: 100%;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.igny8-progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.3) 50%,
rgba(255, 255, 255, 0) 100%
);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.igny8-progress-fill.primary {
background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}
.igny8-progress-fill.warning {
background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.igny8-progress-fill.danger {
background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.igny8-progress-fill.success {
background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
/* === STAT NUMBERS === */
.igny8-stat-number {
font-variant-numeric: tabular-nums;
line-height: 1;
letter-spacing: -0.025em;
}
.igny8-stat-number.primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.igny8-stat-number.success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.igny8-stat-number.warning {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.igny8-stat-number.danger {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* === BADGES === */
.igny8-badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.025em;
text-transform: uppercase;
}
.igny8-badge.primary {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
color: #2563eb;
border: 1px solid rgba(59, 130, 246, 0.2);
}
.dark .igny8-badge.primary {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
color: #60a5fa;
}
.igny8-badge.success {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
color: #059669;
border: 1px solid rgba(16, 185, 129, 0.2);
}
.dark .igny8-badge.success {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
color: #34d399;
}
.igny8-badge.warning {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
color: #d97706;
border: 1px solid rgba(245, 158, 11, 0.2);
}
.dark .igny8-badge.warning {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
color: #fbbf24;
}
.igny8-badge.danger {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
color: #dc2626;
border: 1px solid rgba(239, 68, 68, 0.2);
}
.dark .igny8-badge.danger {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
color: #f87171;
}
/* === PLAN CARDS === */
.igny8-plan-card {
position: relative;
border-radius: 1rem;
overflow: hidden;
transition: all 0.3s ease;
}
.igny8-plan-card.featured {
border: 2px solid #3b82f6;
box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}
.igny8-plan-card.featured::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}
.igny8-plan-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* === LIMIT DISPLAY === */
.igny8-limit-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem;
border-radius: 0.5rem;
background: rgba(59, 130, 246, 0.05);
border: 1px solid rgba(59, 130, 246, 0.1);
transition: all 0.2s ease;
}
.dark .igny8-limit-item {
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.2);
}
.igny8-limit-item:hover {
background: rgba(59, 130, 246, 0.1);
border-color: rgba(59, 130, 246, 0.2);
transform: translateX(2px);
}
.dark .igny8-limit-item:hover {
background: rgba(59, 130, 246, 0.15);
border-color: rgba(59, 130, 246, 0.3);
}
/* === BILLING HISTORY TABLE === */
.igny8-billing-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
}
.igny8-billing-table thead th {
background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
color: #6b7280;
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.75rem 1rem;
border-bottom: 1px solid #e5e7eb;
}
.dark .igny8-billing-table thead th {
background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
color: #9ca3af;
border-bottom: 1px solid #374151;
}
.igny8-billing-table tbody tr {
border-bottom: 1px solid #e5e7eb;
transition: background-color 0.2s ease;
}
.dark .igny8-billing-table tbody tr {
border-bottom: 1px solid #374151;
}
.igny8-billing-table tbody tr:hover {
background: rgba(59, 130, 246, 0.02);
}
.dark .igny8-billing-table tbody tr:hover {
background: rgba(59, 130, 246, 0.05);
}
.igny8-billing-table tbody td {
padding: 1rem;
color: #374151;
}
.dark .igny8-billing-table tbody td {
color: #d1d5db;
}
/* === UPGRADE CTA === */
.igny8-upgrade-cta {
position: relative;
overflow: hidden;
border-radius: 1rem;
padding: 2rem;
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
}
.igny8-upgrade-cta::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
opacity: 0.1;
}
.igny8-upgrade-cta-content {
position: relative;
z-index: 1;
}
/* === ANIMATIONS === */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.igny8-fade-in-up {
animation: fadeInUp 0.6s ease-out;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.igny8-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* === RESPONSIVE UTILITIES === */
@media (max-width: 640px) {
.igny8-stat-number {
font-size: 1.5rem;
}
.usage-metric-card {
padding: 1rem;
}
.igny8-plan-card {
margin-bottom: 1rem;
}
}