344 lines
6.8 KiB
CSS
344 lines
6.8 KiB
CSS
/**
|
|
* Budget Page - Premium Glassmorphism Style
|
|
*/
|
|
|
|
.budget-page {
|
|
width: 100%;
|
|
animation: fadeIn 0.5s ease-out;
|
|
}
|
|
|
|
/* Header */
|
|
.budget-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--spacing-xl);
|
|
}
|
|
|
|
.budget-header h1 {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-size: var(--font-3xl);
|
|
font-weight: 800;
|
|
margin: 0;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
color: var(--color-primary);
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.budget-header__actions {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.budget-header__create-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
padding: var(--spacing-sm) var(--spacing-xl);
|
|
font-size: var(--font-sm);
|
|
font-weight: 600;
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius-full);
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
|
|
}
|
|
|
|
.budget-header__create-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 16px rgba(var(--accent-rgb), 0.4);
|
|
}
|
|
|
|
.budget-header__create-btn--piggy {
|
|
background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
|
|
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
|
|
}
|
|
|
|
.budget-header__create-btn--piggy:hover {
|
|
box-shadow: 0 8px 16px rgba(249, 115, 22, 0.4);
|
|
}
|
|
|
|
|
|
/* Content */
|
|
.budget-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xl);
|
|
}
|
|
|
|
/* Form Section */
|
|
.budget-form-section {
|
|
background: var(--glass-panel-bg);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--spacing-xl);
|
|
box-shadow: var(--shadow-xl);
|
|
animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
|
|
/* Sections */
|
|
.budgets-section,
|
|
.piggy-banks-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-lg);
|
|
}
|
|
|
|
.budgets-section h2,
|
|
.piggy-banks-section h2 {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-size: var(--font-xl);
|
|
font-weight: 700;
|
|
margin: 0;
|
|
color: var(--color-text);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.budgets-section h2::before,
|
|
.piggy-banks-section h2::before {
|
|
content: '';
|
|
width: 6px;
|
|
height: 24px;
|
|
background: var(--gradient-primary);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.piggy-banks-section h2::before {
|
|
background: var(--gradient-accent);
|
|
}
|
|
|
|
.budgets-list,
|
|
.piggy-banks-list {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: var(--spacing-lg);
|
|
}
|
|
|
|
.piggy-banks-placeholder {
|
|
color: var(--color-text-secondary);
|
|
margin: 0;
|
|
text-align: center;
|
|
padding: var(--spacing-2xl);
|
|
background: var(--glass-bg);
|
|
border: 1px dashed var(--glass-border);
|
|
border-radius: var(--radius-xl);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Loading State */
|
|
.budget-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: calc(var(--spacing-xl) * 2);
|
|
color: var(--color-text-secondary);
|
|
font-size: 1rem;
|
|
background: var(--glass-panel-bg);
|
|
border-radius: var(--radius-xl);
|
|
border: 1px solid var(--glass-border);
|
|
}
|
|
|
|
.budget-loading::before {
|
|
content: '';
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid rgba(99, 102, 241, 0.1);
|
|
border-top-color: var(--color-primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Error State */
|
|
.budget-error {
|
|
text-align: center;
|
|
padding: var(--spacing-xl);
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
border-radius: var(--radius-xl);
|
|
color: var(--color-error);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.budget-error p {
|
|
margin: 0 0 var(--spacing-md) 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.budget-retry-btn {
|
|
padding: var(--spacing-sm) var(--spacing-xl);
|
|
font-size: var(--font-sm);
|
|
font-weight: 600;
|
|
background: var(--color-primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius-full);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.budget-retry-btn:hover {
|
|
background: var(--color-primary-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Empty State */
|
|
.budget-empty {
|
|
text-align: center;
|
|
padding: calc(var(--spacing-xl) * 2);
|
|
background: var(--glass-panel-bg);
|
|
backdrop-filter: var(--glass-blur);
|
|
border: 1px dashed var(--glass-border);
|
|
border-radius: var(--radius-xl);
|
|
color: var(--color-text-secondary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.budget-empty:hover {
|
|
border-color: var(--color-primary-light);
|
|
background: var(--glass-bg-heavy);
|
|
}
|
|
|
|
.budget-empty p {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.budget-empty__hint {
|
|
margin-top: var(--spacing-sm) !important;
|
|
font-size: 0.9rem !important;
|
|
font-weight: 400 !important;
|
|
opacity: 0.8;
|
|
color: var(--color-text-secondary) !important;
|
|
}
|
|
|
|
/* Mobile */
|
|
@media (max-width: 768px) {
|
|
.budget-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: var(--spacing-md);
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.budget-header h1 {
|
|
font-size: var(--font-2xl);
|
|
text-align: center;
|
|
}
|
|
|
|
.budget-header__actions {
|
|
flex-direction: column;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.budget-header__create-btn {
|
|
width: 100%;
|
|
padding: var(--spacing-md);
|
|
justify-content: center;
|
|
}
|
|
|
|
.budget-form-section {
|
|
padding: var(--spacing-md);
|
|
}
|
|
|
|
.budgets-section h2,
|
|
.piggy-banks-section h2 {
|
|
font-size: var(--font-lg);
|
|
}
|
|
}
|
|
|
|
/* Tablet */
|
|
@media (min-width: 768px) {
|
|
.budget-header h1 {
|
|
font-size: var(--font-3xl);
|
|
}
|
|
|
|
.budgets-list,
|
|
.piggy-banks-list {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
/* Desktop */
|
|
@media (min-width: 1024px) {
|
|
|
|
.budgets-list,
|
|
.piggy-banks-list {
|
|
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
|
gap: var(--spacing-lg);
|
|
}
|
|
|
|
.budget-form-section {
|
|
padding: var(--spacing-xl);
|
|
}
|
|
}
|
|
|
|
/* Large Desktop */
|
|
@media (min-width: 1440px) {
|
|
|
|
.budgets-list,
|
|
.piggy-banks-list {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.budgets-list,
|
|
.piggy-banks-list {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
|
|
/* Generic Modal for Budget Page */
|
|
.budget-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 1100;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: var(--spacing-md);
|
|
animation: fadeIn 0.2s ease-out;
|
|
}
|
|
|
|
.budget-modal-content {
|
|
width: 100%;
|
|
max-width: 500px;
|
|
background: transparent;
|
|
animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
} |