380 lines
14 KiB
CSS
380 lines
14 KiB
CSS
:root {
|
|
--app-radius: 1.2rem;
|
|
--app-radius-sm: .9rem;
|
|
--app-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
|
|
--app-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
|
|
--app-border: rgba(148, 163, 184, 0.2);
|
|
--app-brand: #2563eb;
|
|
--app-brand-2: #7c3aed;
|
|
--app-surface: rgba(255,255,255,.75);
|
|
--app-surface-strong: rgba(255,255,255,.92);
|
|
}
|
|
|
|
html[data-bs-theme="dark"] {
|
|
--bs-body-bg: #0b1220;
|
|
--bs-body-color: #e5eefc;
|
|
--bs-secondary-bg: #111827;
|
|
--bs-tertiary-bg: #0f172a;
|
|
--bs-border-color: rgba(148, 163, 184, 0.22);
|
|
--bs-card-bg: rgba(15, 23, 42, 0.9);
|
|
--bs-emphasis-color: #f8fafc;
|
|
--bs-secondary-color: #94a3b8;
|
|
--app-shadow: 0 14px 40px rgba(2, 6, 23, 0.45);
|
|
--app-shadow-lg: 0 24px 56px rgba(2, 6, 23, 0.55);
|
|
--app-border: rgba(148, 163, 184, 0.16);
|
|
--app-surface: rgba(15, 23, 42, .78);
|
|
--app-surface-strong: rgba(15, 23, 42, .94);
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 26%),
|
|
radial-gradient(circle at top right, rgba(124,58,237,0.12), transparent 20%),
|
|
var(--bs-body-bg);
|
|
}
|
|
|
|
main.container { position: relative; z-index: 1; }
|
|
|
|
.navbar.app-navbar {
|
|
backdrop-filter: blur(18px);
|
|
background: var(--app-surface) !important;
|
|
border-bottom: 1px solid var(--app-border) !important;
|
|
}
|
|
|
|
.brand-mark {
|
|
width: 2.45rem;
|
|
height: 2.45rem;
|
|
border-radius: .95rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--app-brand), var(--app-brand-2));
|
|
box-shadow: var(--app-shadow);
|
|
}
|
|
|
|
.navbar-brand-text small {
|
|
display: block;
|
|
font-size: .72rem;
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
color: var(--bs-secondary-color);
|
|
}
|
|
|
|
.card,
|
|
.glass-card {
|
|
border: 1px solid var(--app-border);
|
|
border-radius: var(--app-radius);
|
|
background: var(--app-surface-strong);
|
|
box-shadow: var(--app-shadow);
|
|
}
|
|
|
|
.card:hover { transition: transform .18s ease, box-shadow .18s ease; }
|
|
.card:hover { transform: translateY(-1px); box-shadow: var(--app-shadow-lg); }
|
|
|
|
.metric-card .metric-icon,
|
|
.feature-icon,
|
|
.soft-icon {
|
|
width: 2.8rem;
|
|
height: 2.8rem;
|
|
border-radius: 1rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(124,58,237,.14));
|
|
color: var(--app-brand);
|
|
}
|
|
|
|
html[data-bs-theme="dark"] .metric-card .metric-icon,
|
|
html[data-bs-theme="dark"] .feature-icon,
|
|
html[data-bs-theme="dark"] .soft-icon {
|
|
color: #9ec5ff;
|
|
background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(139,92,246,.22));
|
|
}
|
|
|
|
.hero-panel {
|
|
padding: 1.35rem;
|
|
border-radius: calc(var(--app-radius) + .25rem);
|
|
background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(124,58,237,.10));
|
|
border: 1px solid var(--app-border);
|
|
box-shadow: var(--app-shadow);
|
|
}
|
|
|
|
html[data-bs-theme="dark"] .hero-panel {
|
|
background: linear-gradient(135deg, rgba(30,41,59,.88), rgba(15,23,42,.96));
|
|
}
|
|
|
|
.btn {
|
|
border-radius: .9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--app-brand), var(--app-brand-2));
|
|
border: 0;
|
|
box-shadow: 0 12px 24px rgba(37,99,235,.22);
|
|
}
|
|
|
|
.btn-primary:hover,
|
|
.btn-primary:focus {
|
|
filter: brightness(1.03);
|
|
}
|
|
|
|
.btn-outline-secondary,
|
|
.btn-outline-primary,
|
|
.btn-outline-danger {
|
|
border-width: 1px;
|
|
}
|
|
|
|
.form-control,
|
|
.form-select {
|
|
min-height: 2.9rem;
|
|
border-radius: .9rem;
|
|
border-color: var(--app-border);
|
|
background-color: rgba(255,255,255,.65);
|
|
}
|
|
|
|
html[data-bs-theme="dark"] .form-control,
|
|
html[data-bs-theme="dark"] .form-select {
|
|
background-color: rgba(15,23,42,.82);
|
|
color: var(--bs-body-color);
|
|
}
|
|
|
|
.form-control:focus,
|
|
.form-select:focus {
|
|
box-shadow: 0 0 0 .25rem rgba(37,99,235,.14);
|
|
}
|
|
|
|
.table td, .table th { vertical-align: middle; }
|
|
.table > :not(caption) > * > * { border-color: var(--app-border); }
|
|
|
|
.list-group-item {
|
|
border-color: var(--app-border);
|
|
background: transparent;
|
|
}
|
|
|
|
.login-card { overflow: hidden; }
|
|
.login-card::before {
|
|
content: "";
|
|
display: block;
|
|
height: 6px;
|
|
background: linear-gradient(135deg, var(--app-brand), var(--app-brand-2));
|
|
}
|
|
|
|
.brand-icon {
|
|
width: 4.3rem;
|
|
height: 4.3rem;
|
|
margin-inline: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 1.4rem;
|
|
font-size: 1.6rem;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--app-brand), var(--app-brand-2));
|
|
box-shadow: var(--app-shadow-lg);
|
|
}
|
|
|
|
.app-section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: .75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.expense-row-thumb {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: .9rem;
|
|
object-fit: cover;
|
|
border: 1px solid var(--app-border);
|
|
}
|
|
|
|
.month-switcher {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: .75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.month-switcher .center-panel {
|
|
display: flex;
|
|
gap: .5rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
padding: .75rem;
|
|
border-radius: 1rem;
|
|
border: 1px solid var(--app-border);
|
|
background: rgba(255,255,255,.48);
|
|
}
|
|
|
|
html[data-bs-theme="dark"] .month-switcher .center-panel {
|
|
background: rgba(15,23,42,.72);
|
|
}
|
|
|
|
.quick-stats {
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.quick-stats .metric-card { padding: 1rem; }
|
|
.badge.soft-badge {
|
|
background: rgba(37,99,235,.12);
|
|
color: var(--app-brand);
|
|
border: 1px solid rgba(37,99,235,.12);
|
|
}
|
|
|
|
html[data-bs-theme="dark"] .badge.soft-badge {
|
|
background: rgba(59,130,246,.18);
|
|
color: #bfdbfe;
|
|
}
|
|
|
|
.chart-wrap { position: relative; height: 360px; min-height: 360px; }
|
|
.empty-state {
|
|
padding: 2rem 1rem;
|
|
text-align: center;
|
|
color: var(--bs-secondary-color);
|
|
}
|
|
|
|
.empty-state .fa-solid {
|
|
font-size: 2rem;
|
|
margin-bottom: .75rem;
|
|
opacity: .7;
|
|
}
|
|
|
|
.footer-note {
|
|
color: var(--bs-secondary-color);
|
|
font-size: .9rem;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container { padding-left: 1rem; padding-right: 1rem; }
|
|
.month-switcher { grid-template-columns: 1fr; }
|
|
.quick-stats { grid-template-columns: 1fr; }
|
|
.hero-panel { padding: 1rem; }
|
|
}
|
|
|
|
|
|
.app-shell { display:grid; grid-template-columns: 290px 1fr; min-height:100vh; }
|
|
.app-sidebar { position:sticky; top:0; height:100vh; padding:1.25rem; background:rgba(255,255,255,.58); border-right:1px solid var(--app-border); backdrop-filter:blur(18px); }
|
|
html[data-bs-theme="dark"] .app-sidebar { background:rgba(2,6,23,.78); }
|
|
.app-main { min-width:0; }
|
|
.sidebar-brand { display:flex; align-items:center; gap:.9rem; text-decoration:none; color:inherit; font-weight:800; }
|
|
.sidebar-brand small { display:block; color:var(--bs-secondary-color); font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
|
|
.sidebar-nav { display:grid; gap:.35rem; }
|
|
.sidebar-nav .nav-link { display:flex; align-items:center; gap:.9rem; padding:.85rem 1rem; border-radius:1rem; color:inherit; }
|
|
.sidebar-nav .nav-link:hover { background:rgba(37,99,235,.08); }
|
|
.sidebar-user { padding:1rem; border:1px solid var(--app-border); border-radius:1rem; background:var(--app-surface-strong); }
|
|
.metric-card { padding:1rem 1.1rem; }
|
|
.stat-overview-card { padding:1rem; }
|
|
.stat-overview-card .metric-label { color:var(--bs-secondary-color); font-size:.9rem; }
|
|
.stat-overview-card .metric-value { font-size:1.65rem; font-weight:800; }
|
|
.preview-trigger img { max-width:100%; }
|
|
.modal-content.glass-card { background:var(--app-surface-strong); }
|
|
@media (max-width: 992px) { .app-shell { display:block; } .app-content { padding-bottom:5rem; } }
|
|
|
|
|
|
.app-sidebar {width: 280px; min-height: 100vh; position: sticky; top: 0; padding: 1.2rem; background: rgba(255,255,255,.62); backdrop-filter: blur(16px); border-right: 1px solid var(--app-border);}
|
|
html[data-bs-theme="dark"] .app-sidebar {background: rgba(2,6,23,.75);}
|
|
.sidebar-brand {display:flex; align-items:center; gap:.9rem; color:inherit; text-decoration:none; font-weight:700;}
|
|
.sidebar-brand small {display:block; color:var(--bs-secondary-color); font-size:.75rem;}
|
|
.sidebar-nav .nav-link {display:flex; gap:.85rem; align-items:center; border-radius:1rem; padding:.85rem 1rem; color:inherit;}
|
|
.sidebar-nav .nav-link:hover {background: rgba(37,99,235,.10);}
|
|
.app-shell{display:flex;} .app-main{flex:1; min-width:0;} .app-content{max-width:1500px;}
|
|
.soft-badge{background: rgba(37,99,235,.10); color: var(--app-brand); border:1px solid rgba(37,99,235,.12);}
|
|
.empty-state{padding:3rem; text-align:center; color:var(--bs-secondary-color); display:grid; gap:.6rem; place-items:center;}
|
|
.empty-state i{font-size:2rem;} .footer-note{color:var(--bs-secondary-color); font-size:.92rem;}
|
|
.chart-wrap{position:relative; height:360px; min-height:360px;} .metric-label{font-size:.9rem; color:var(--bs-secondary-color);} .metric-value{font-size:1.65rem; font-weight:800;}
|
|
.document-editor-card{position:sticky; top:6rem;} .document-preview-shell{border:1px dashed var(--app-border); border-radius:1rem; padding:.75rem; background:rgba(255,255,255,.45);}
|
|
html[data-bs-theme="dark"] .document-preview-shell{background:rgba(15,23,42,.52);}
|
|
.document-preview-stage{position:relative; min-height:320px; display:grid; place-items:center; overflow:hidden; border-radius:1rem; background:linear-gradient(135deg, rgba(37,99,235,.06), rgba(124,58,237,.04));}
|
|
.document-preview-stage img{max-width:100%; max-height:440px; border-radius:1rem; transform-origin:center center; user-select:none;}
|
|
.document-preview-empty{display:grid; gap:.6rem; text-align:center; color:var(--bs-secondary-color);}
|
|
.document-preview-empty i{font-size:2rem;} .crop-selection{position:absolute; border:2px solid rgba(37,99,235,.75); background:rgba(37,99,235,.16); border-radius:.6rem; pointer-events:none;}
|
|
@media (max-width: 991.98px){ .quick-stats{grid-template-columns: repeat(2, minmax(0, 1fr));} .month-switcher{grid-template-columns:1fr;} .document-editor-card{position:static;} }
|
|
@media (max-width: 575.98px){ .quick-stats{grid-template-columns: 1fr;} }
|
|
|
|
.chart-wrap { position: relative; height: 360px; min-height: 360px; }
|
|
.chart-canvas { display:block; width:100% !important; height: calc(100% - 2.5rem) !important; }
|
|
@media (max-width: 768px) { .chart-wrap { height: 300px; min-height: 300px; } }
|
|
|
|
.upload-actions .btn{justify-content:center;}
|
|
|
|
|
|
.expense-list-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
.expense-filters .form-label { font-weight: 600; }
|
|
.search-input-wrap { position: relative; }
|
|
.search-input-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); z-index: 2; }
|
|
.expense-groups { grid-template-columns: 1fr; }
|
|
.expense-group-card { overflow: hidden; }
|
|
.expense-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.06));
|
|
border-bottom: 1px solid var(--app-border);
|
|
}
|
|
html[data-bs-theme="dark"] .expense-group-header {
|
|
background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(124,58,237,.12));
|
|
}
|
|
.expense-list-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 1rem;
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 1px solid var(--app-border);
|
|
}
|
|
.expense-list-item:last-child { border-bottom: 0; }
|
|
.expense-list-main { display: flex; gap: 1rem; min-width: 0; }
|
|
.expense-list-thumb-wrap { flex: 0 0 auto; }
|
|
.expense-title { font-size: 1.02rem; font-weight: 700; }
|
|
.expense-list-copy { min-width: 0; }
|
|
.expense-meta-row {
|
|
display: flex;
|
|
gap: .8rem;
|
|
flex-wrap: wrap;
|
|
color: var(--bs-secondary-color);
|
|
font-size: .92rem;
|
|
}
|
|
.expense-list-side { display: flex; flex-direction: column; align-items: end; justify-content: space-between; gap: .85rem; }
|
|
.expense-amount { font-size: 1.08rem; font-weight: 800; white-space: nowrap; }
|
|
.expense-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .5rem; }
|
|
@media (max-width: 992px) {
|
|
.expense-list-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
@media (max-width: 768px) {
|
|
.expense-list-item { grid-template-columns: 1fr; }
|
|
.expense-list-side { align-items: stretch; }
|
|
.expense-actions { justify-content: start; }
|
|
}
|
|
|
|
.chart-card{position:relative;height:320px;min-height:320px}.language-picker .flag-btn{border-radius:999px;padding:.25rem .55rem}.language-picker .flag-btn.active{box-shadow:0 0 0 2px rgba(37,99,235,.35)}.drop-upload-zone{align-items:center;justify-content:center;min-height:88px;border:2px dashed rgba(120,130,160,.35);border-radius:16px;background:rgba(99,102,241,.04);color:var(--bs-secondary-color);cursor:pointer}.drop-upload-zone.is-dragover{border-color:var(--bs-primary);background:rgba(59,130,246,.12)}.app-sidebar .nav-link{display:flex;gap:.75rem;align-items:center}.app-sidebar .nav-link span{display:inline-block}.settings-section .card{height:100%}
|
|
|
|
|
|
/* layout fixes */
|
|
.app-shell { display:grid !important; grid-template-columns: 280px minmax(0,1fr) !important; min-height:100vh; }
|
|
.app-sidebar { width:auto !important; display:flex; flex-direction:column; gap:1rem; }
|
|
.app-main { min-width:0; }
|
|
.app-content { width:100%; max-width:none; }
|
|
.sidebar-nav .nav-link { width:100%; font-weight:600; }
|
|
.sidebar-nav .nav-link i { width:1.1rem; text-align:center; }
|
|
.navbar.app-navbar { z-index:1030; }
|
|
.language-picker { display:flex; align-items:center; gap:.35rem; }
|
|
.chart-card { position:relative; height:320px; min-height:320px; overflow:hidden; }
|
|
.chart-card canvas { width:100% !important; height:100% !important; }
|
|
.top-expense-item { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:.85rem 0; border-bottom:1px solid var(--app-border); }
|
|
.top-expense-item:last-child { border-bottom:0; padding-bottom:0; }
|
|
.top-expense-amount { font-weight:800; white-space:nowrap; }
|
|
@media (max-width: 991.98px) {
|
|
.app-shell { display:block !important; }
|
|
.chart-card { height:280px; min-height:280px; }
|
|
}
|