Files
cbsnexora/src/app/shared/footer/footer.component.scss
T
Nitesh YadavandClaude Sonnet 4.6 d367e76104 merging code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 14:26:25 +05:30

785 lines
12 KiB
SCSS

/**
* Copyright since 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
$brand-dark: #0d3d78;
$accent: #0ea5e9;
$accent-2: #10b981;
// ===== Compact Mode (Login) =====
.footer-compact {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0;
width: 100%;
max-height: 200px;
overflow: hidden;
font-size: 0.75rem;
color: var(--md-sys-color-on-surface-variant, #44474e);
.footer-info {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
line-height: 1.4;
}
.info-item {
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.info-label {
font-weight: 500;
opacity: 0.8;
}
.info-value {
font-weight: 400;
opacity: 0.9;
}
.info-separator {
opacity: 0.4;
font-size: 0.875rem;
}
}
.dark-theme .footer-compact {
color: var(--md-sys-color-on-surface-variant, #c4c6d0);
}
// ===== Security Bar =====
.security-bar {
display: flex;
flex-direction: column;
padding: 3px 40px;
background: #f8f9fa;
border-top: 1px solid rgb(0 0 0 / 6%);
border-bottom: 1px solid rgb(0 0 0 / 6%);
margin-top: 0;
}
.security-bar-row1 {
display: flex;
align-items: center;
}
.security-bar-row2 {
display: flex;
justify-content: space-between;
align-items: center;
}
.security-bar-left,
.security-bar-right {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
}
.sec-brand {
display: flex;
align-items: center;
gap: 10px;
padding-right: 20px;
border-right: 1px solid rgb(0 0 0 / 10%);
margin-right: 0;
}
.sec-brand-name {
font-size: 13px;
font-weight: 700;
color: $brand-dark;
letter-spacing: 0.04em;
white-space: nowrap;
em {
font-style: normal;
color: $accent;
}
}
.sec-brand-tagline {
font-size: 10px;
color: #888;
white-space: nowrap;
}
.sec-brand-delimiter {
font-size: 12px;
color: rgb(0 0 0 / 20%);
margin: 0 6px;
font-weight: 300;
}
.sec-brand-idrbt {
font-size: 9px;
color: #0ea5e9;
white-space: nowrap;
font-weight: 600;
letter-spacing: 0.02em;
}
.sec-item {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 11px;
color: #555;
}
.sec-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: $accent-2;
flex-shrink: 0;
&.amber {
background: #f59e0b;
}
}
.sec-label {
font-weight: 600;
color: #444;
}
.sec-val {
font-weight: 400;
color: #777;
}
.session-timer {
font-family: 'Roboto Mono', monospace;
font-weight: 700;
color: #f59e0b;
font-size: 12px;
}
.sec-version {
font-size: 11px;
font-weight: 600;
color: #555;
white-space: nowrap;
}
.env-tag {
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 3px;
letter-spacing: 0.8px;
background: $accent-2;
color: #fff;
}
.security-bar-right {
flex-shrink: 0;
flex-wrap: nowrap !important;
}
// ===== LincShield Certifications Bar =====
.lincshield-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 3px 40px;
background: linear-gradient(90deg, #0d3d78 0%, #1a5276 50%, #0d3d78 100%);
}
.ls-label {
font-size: 11px;
font-weight: 700;
color: rgb(255 255 255 / 50%);
text-transform: uppercase;
letter-spacing: 0.8px;
white-space: nowrap;
flex-shrink: 0;
}
.ls-badges {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.ls-badge {
font-size: 10px;
font-weight: 600;
padding: 2px 8px;
border-radius: 20px;
white-space: nowrap;
&.green {
background: rgb(16 185 129 / 15%);
color: #6ee7b7;
border: 1px solid rgb(16 185 129 / 30%);
}
&.blue {
background: rgb(14 165 233 / 15%);
color: #7dd3fc;
border: 1px solid rgb(14 165 233 / 30%);
}
&.gold {
background: rgb(245 158 11 / 15%);
color: #fcd34d;
border: 1px solid rgb(245 158 11 / 30%);
}
&.white {
background: rgb(255 255 255 / 8%);
color: rgb(255 255 255 / 75%);
border: 1px solid rgb(255 255 255 / 15%);
}
}
// ===== Default Mode (Shell Footer) =====
.app-footer {
background: $brand-dark;
color: rgb(255 255 255 / 85%);
padding: 0;
margin-top: 0;
position: relative;
overflow: hidden;
&::after {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
108deg,
transparent 0,
transparent 80px,
rgb(255 255 255 / 2.2%) 80px,
rgb(255 255 255 / 2.2%) 160px
);
pointer-events: none;
}
}
// ── Top section ──
.footer-top {
display: flex;
justify-content: space-between;
gap: 20px;
padding: 8px 40px 6px;
position: relative;
z-index: 1;
}
.footer-brand {
max-width: 280px;
flex-shrink: 0;
}
.footer-logo {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.f-logomark {
width: 20px;
height: 20px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2.5px;
span {
border-radius: 1.5px;
&:nth-child(1) {
background: #fff;
}
&:nth-child(2) {
background: $accent;
}
&:nth-child(3) {
background: $accent-2;
}
&:nth-child(4) {
background: rgb(255 255 255 / 30%);
}
}
}
.f-logotext {
font-size: 15px;
font-weight: 700;
letter-spacing: 0.055em;
color: #fff;
em {
font-style: normal;
color: #5ec9f8;
}
}
.footer-tagline {
font-size: 12px;
color: rgb(255 255 255 / 50%);
line-height: 1.5;
margin: 0;
}
.footer-website {
font-size: 11px;
color: #5ec9f8;
margin: 2px 0 0;
font-weight: 500;
letter-spacing: 0.3px;
}
// ── Link columns ──
.footer-links {
display: flex;
gap: 48px;
flex-wrap: wrap;
}
.footer-col {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 130px;
}
.footer-col-title {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
color: rgb(255 255 255 / 45%);
margin: 0 0 2px;
}
.footer-link {
font-size: 12px;
color: rgb(255 255 255 / 75%);
text-decoration: none;
transition: color 0.15s;
line-height: 1.5;
&:hover {
color: #5ec9f8;
}
}
// ── Regulatory & Legal Section ──
.regulatory-section {
padding: 4px 40px;
position: relative;
z-index: 1;
}
.regulatory-title {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
color: rgb(255 255 255 / 45%);
margin: 0 0 2px;
}
.regulatory-grid {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.reg-card {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
background: rgb(255 255 255 / 4%);
border: 1px solid rgb(255 255 255 / 8%);
border-radius: 5px;
transition: background 0.15s;
&:hover {
background: rgb(255 255 255 / 8%);
}
}
.reg-icon {
font-size: 13px;
line-height: 1;
flex-shrink: 0;
}
.reg-detail {
display: flex;
flex-direction: column;
}
.reg-label {
font-size: 11px;
color: rgb(255 255 255 / 75%);
font-weight: 500;
}
.reg-link {
font-size: 11px;
color: rgb(255 255 255 / 75%);
text-decoration: none;
font-weight: 500;
transition: color 0.15s;
&:hover {
color: #5ec9f8;
}
}
.reg-tag {
font-size: 9px;
font-weight: 700;
padding: 1px 5px;
border-radius: 3px;
letter-spacing: 0.5px;
text-transform: uppercase;
flex-shrink: 0;
&.rbi {
background: rgb(14 165 233 / 20%);
color: #7dd3fc;
border: 1px solid rgb(14 165 233 / 30%);
}
&.circular {
background: rgb(245 158 11 / 15%);
color: #fcd34d;
border: 1px solid rgb(245 158 11 / 30%);
}
&.mandatory {
background: rgb(239 68 68 / 15%);
color: #fca5a5;
border: 1px solid rgb(239 68 68 / 30%);
}
}
// ── Quick Navigation Section ──
.quicknav-section {
padding: 4px 40px;
position: relative;
z-index: 1;
}
.quicknav-title {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
color: rgb(255 255 255 / 45%);
margin: 0 0 4px;
}
.quicknav-grid {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.qn-card {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
background: rgb(255 255 255 / 4%);
border: 1px solid rgb(255 255 255 / 8%);
border-radius: 6px;
text-decoration: none;
transition: background 0.15s;
&:hover {
background: rgb(255 255 255 / 10%);
.qn-label {
color: #5ec9f8;
}
}
}
.qn-icon {
font-size: 13px;
line-height: 1;
flex-shrink: 0;
}
.qn-label {
font-size: 12px;
color: rgb(255 255 255 / 80%);
font-weight: 500;
transition: color 0.15s;
}
.qn-tag {
font-size: 9px;
font-weight: 700;
padding: 1px 5px;
border-radius: 3px;
letter-spacing: 0.5px;
text-transform: uppercase;
background: rgb(14 165 233 / 20%);
color: #7dd3fc;
border: 1px solid rgb(14 165 233 / 30%);
flex-shrink: 0;
}
// ── Support & Contact Section ──
.support-section {
padding: 4px 40px;
position: relative;
z-index: 1;
}
.support-title {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
color: rgb(255 255 255 / 45%);
margin: 0 0 4px;
}
.support-row {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.sc-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
background: rgb(255 255 255 / 4%);
border: 1px solid rgb(255 255 255 / 8%);
border-radius: 5px;
transition: background 0.15s;
white-space: nowrap;
&:hover {
background: rgb(255 255 255 / 8%);
}
&.sc-chat {
text-decoration: none;
cursor: pointer;
.sc-val {
color: #5ec9f8;
font-weight: 600;
}
&:hover .sc-val {
color: #93dbfc;
}
}
}
.sc-icon {
font-size: 13px;
line-height: 1;
flex-shrink: 0;
}
.sc-label {
font-size: 10px;
color: rgb(255 255 255 / 45%);
font-weight: 500;
}
.sc-val {
font-size: 11px;
color: rgb(255 255 255 / 85%);
font-weight: 600;
&.highlight {
color: #5ec9f8;
}
}
// ── Divider ──
.footer-divider {
height: 1px;
background: rgb(255 255 255 / 10%);
margin: 0 40px;
position: relative;
z-index: 1;
}
// ── Bottom bar ──
.footer-bottom {
display: flex;
align-items: center;
gap: 16px;
padding: 5px 40px;
position: relative;
z-index: 1;
flex-wrap: wrap;
}
.fb-copy {
font-size: 11px;
color: rgb(255 255 255 / 40%);
white-space: nowrap;
}
.fb-links {
display: flex;
align-items: center;
gap: 4px;
a {
font-size: 11px;
color: rgb(255 255 255 / 50%);
text-decoration: none;
padding: 2px 6px;
border-radius: 3px;
transition:
color 0.15s,
background 0.15s;
&:hover {
color: #5ec9f8;
background: rgb(255 255 255 / 6%);
}
}
}
.fb-meta {
display: flex;
align-items: center;
gap: 4px;
font-size: 10px;
color: rgb(255 255 255 / 35%);
margin-left: auto;
strong {
color: rgb(255 255 255 / 55%);
font-weight: 600;
}
}
.fb-powered {
font-size: 10px;
color: rgb(255 255 255 / 35%);
strong {
color: #5ec9f8;
font-weight: 700;
}
}
// ===== Responsive =====
@media (width <= 768px) {
.security-bar {
flex-direction: column;
gap: 8px;
padding: 8px 20px;
}
.security-bar-left,
.security-bar-right {
gap: 12px;
}
.sec-brand {
border-right: none;
padding-right: 0;
}
.sec-brand-tagline {
display: none;
}
.lincshield-bar {
flex-direction: column;
gap: 8px;
padding: 10px 20px;
}
.ls-badges {
justify-content: center;
}
.footer-top {
flex-direction: column;
gap: 24px;
padding: 24px 20px 16px;
}
.footer-brand {
max-width: none;
}
.footer-links {
gap: 24px;
}
.regulatory-section,
.quicknav-section,
.support-section {
padding: 12px 20px;
}
.footer-divider {
margin: 0 20px;
}
.footer-bottom {
flex-direction: column;
gap: 6px;
padding: 10px 20px;
text-align: center;
}
.footer-versions {
justify-content: center;
}
}
@media (width <= 480px) {
.footer-compact {
font-size: 0.7rem;
.footer-info {
gap: 0.375rem;
}
}
.footer-links {
flex-direction: column;
gap: 16px;
}
.sec-item {
font-size: 10px;
}
.ls-badge {
font-size: 10px;
padding: 2px 8px;
}
}