/* 
 * Big Beaver Bank (BBB) Master Stylesheet
 * Fictional Regional Community Bank Design
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #0c3822; /* Classic Deep Forest Bank Green */
  --primary-hover: #072315;
  --secondary-color: #1a221e; /* Charcoal Slate */
  --accent-color: #d4b26f; /* Muted Gold */
  --accent-hover: #c09c5a;
  --bg-cream: #fbfbf9; /* Soft cream paper color */
  --bg-white: #ffffff;
  --bg-light: #f3f5f3;
  --text-dark: #1f2723;
  --text-muted: #5f6c64;
  --text-light: #ffffff;
  --border-color: #d2dbd6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.25;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Operational Alert Banner */
.alert-bar-container {
  background-color: #fef3c7; /* Warm Amber */
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  padding: 8px 0;
}

.alert-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header & Navigation */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.disclaimer-banner {
  background-color: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
  font-size: 10px;
  color: #475569;
  padding: 4px 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.disclaimer-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclaimer-badge {
  background-color: #475569;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 8px;
  text-transform: uppercase;
}

.disclaimer-text {
  text-align: right;
  text-transform: uppercase;
}

.header-main {
  padding: 16px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo svg {
  fill: var(--accent-color);
  width: 28px;
  height: 28px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--secondary-color);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
  border-color: var(--accent-color);
}

.btn-login {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-color);
  cursor: pointer;
}

.btn-login:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-login svg {
  fill: currentColor;
  width: 12px;
  height: 12px;
}

/* Quick Links Tool Bar */
.quick-links-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
}

.quick-links-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.quick-link-item .label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}

.quick-link-item .value {
  color: var(--text-dark);
  font-weight: 600;
}

.quick-link-item .value.link {
  text-decoration: underline;
  color: var(--primary-color);
}

.quick-link-search input {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  width: 200px;
  background-color: var(--bg-cream);
}

.quick-link-search button {
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 12px;
  font-family: inherit;
  border-radius: var(--radius-sm);
  margin-left: 4px;
  cursor: pointer;
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary-color);
  margin-bottom: 5px;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(12, 56, 34, 0.9), rgba(12, 56, 34, 0.95)), url('../img/bank_branch.png') center/cover;
  color: var(--text-light);
  padding: 90px 0;
  text-align: center;
}

.hero h1 {
  color: var(--text-light);
  font-size: 42px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 18px;
  color: #b3ccbf;
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero .btn-primary {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: transform 0.15s;
}

.hero .btn-primary:hover {
  transform: translateY(-1px);
}

/* Feature Panels */
.feature-panel {
  padding: 80px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.feature-layout {
  display: flex;
  gap: 60px;
  align-items: center;
}

.feature-text {
  flex: 1.2;
}

.feature-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.feature-image {
  flex: 1;
  border: 1px solid var(--border-color);
  padding: 8px;
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.card-icon {
  margin-bottom: 16px;
  color: var(--accent-color);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Calculator Section */
.calc-section {
  padding: 80px 0;
}

.calc-container {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.input-group input, .input-group select {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background-color: var(--bg-cream);
  width: 100%;
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: #fff;
}

.calc-results {
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.result-value {
  font-size: 36px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.result-breakdown {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  justify-content: space-around;
}

.breakdown-item {
  text-align: center;
}

.breakdown-label {
  font-size: 10px;
  color: var(--text-muted);
}

.breakdown-value {
  font-size: 14px;
  font-weight: 600;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial-card {
  border: 1px solid var(--border-color);
  padding: 24px;
  background-color: var(--bg-cream);
  border-radius: var(--radius-sm);
}

.testimonial-text {
  font-style: italic;
  font-size: 14px;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-color);
}

.testimonial-company {
  font-size: 11px;
  color: #684d1c;
  text-transform: uppercase;
  font-weight: 700;
}

/* Newsroom & Blog Layout */
.blog-header {
  text-align: center;
  padding: 40px 0 20px;
}

.blog-grid {
  margin-bottom: 50px;
}

.blog-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.blog-card-excerpt {
  line-height: 1.5;
}

/* Single Article Layout */
.article-container {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-title {
  color: var(--primary-color);
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content a {
  text-decoration: underline;
}

.article-back-link {
  font-size: 14px;
  font-weight: 500;
}

/* eStatement modal */
#statement-modal table {
  width: 100%;
  border-collapse: collapse;
}

#statement-modal th, #statement-modal td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

/* Fictional disclaimers warning alert */
.about-disclaimer-box {
  border-left: 4px solid var(--accent-color);
}

/* Interactive Demo Player (Digital Banking) */
.demo-player-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.demo-sidebar {
  background-color: var(--secondary-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-ctrl-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: all 0.15s;
}

.demo-ctrl-btn:hover, .demo-ctrl-btn.active {
  color: #fff;
  background-color: rgba(255,255,255,0.06);
}

.demo-ctrl-btn.active {
  border-left: 3px solid var(--accent-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 9px;
}

.demo-ctrl-btn .num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-color);
}

.demo-ctrl-btn .txt {
  font-size: 13.5px;
  font-weight: 500;
}

.demo-screen {
  background-color: var(--bg-light);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-screen-content {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.demo-screen-content h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.demo-screen-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Online Banking Styles */
.banking-page {
  background-color: #eaedea;
}

.login-card {
  max-width: 400px;
  margin: 60px auto;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.login-card p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 16px;
  display: none;
}

.banking-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
}

.banking-sidebar {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.user-profile {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-color);
}

.user-role {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 2px;
}

.banking-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banking-menu-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  padding: 10px 12px;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.banking-menu-item button svg {
  fill: currentColor;
  width: 15px;
  height: 15px;
}

.banking-menu-item button:hover, .banking-menu-item button.active {
  color: #fff;
  background-color: rgba(255,255,255,0.05);
}

.banking-menu-item button.active {
  border-left: 3px solid var(--accent-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 9px;
}

.banking-content {
  padding: 30px;
  overflow-y: auto;
}

.dashboard-title {
  margin-bottom: 24px;
  font-size: 28px;
}

.accounts-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.account-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.account-card.savings::before {
  background-color: var(--accent-color);
}

.account-card.escrow::before {
  background-color: var(--secondary-color);
}

.account-type {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.account-number {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: monospace;
}

.account-balance {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Ledger Widgets */
.ledger-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ledger-filters {
  display: flex;
  gap: 10px;
}

.search-input {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-family: inherit;
  width: 200px;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-family: inherit;
  background-color: #fff;
}

.transaction-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.transaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.transaction-table th {
  background-color: var(--bg-light);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--border-color);
  text-align: left;
}

.transaction-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.transaction-table tr:hover {
  background-color: #fafbfa;
}

.txn-date {
  color: var(--text-muted);
}

.txn-desc {
  font-weight: 500;
  color: var(--text-dark);
}

.txn-category {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
}

.txn-amount {
  font-weight: 600;
  text-align: right;
}

.amount-credit {
  color: #15803d;
}

.amount-debit {
  color: #b91c1c;
}

.banking-tab-content {
  display: none;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
}

.banking-tab-content.active {
  display: block;
}

.banking-tab-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.tab-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-form-submit {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s;
  width: 100%;
}

.btn-form-submit:hover {
  background-color: var(--primary-hover);
}

.deposit-camera-area {
  border: 2px dashed var(--border-color);
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  cursor: pointer;
}

.deposit-camera-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--text-muted);
  margin-bottom: 10px;
}

.modal-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  transition: transform 0.2s;
  z-index: 1000;
  font-size: 13.5px;
}

.modal-notification.show {
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: #b3ccbf;
  padding: 50px 0 30px;
  font-size: 13.5px;
  border-top: 3px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-about h3 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-about p {
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #b3ccbf;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 11.5px;
}
.footer-copy a {
  color: #b3ccbf !important;
}

.footer-fdic-subtle {
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  max-width: 550px;
  line-height: 1.4;
}

.footer-fdic-subtle a {
  color: var(--accent-color);
}

/* Page Loader Layout */
.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  background-color: #fff;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
}

.page-btn:hover, .page-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3, .accounts-summary {
    grid-template-columns: 1fr;
  }
  .demo-player-container {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    align-items: flex-start;
  }
  .alert-bar {
    flex-direction: column;
    gap: 8px;
  }
  .quick-links-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .quick-link-search {
    width: 100%;
  }
  .quick-link-search input {
    width: calc(100% - 80px);
  }
  .feature-layout {
    flex-direction: column;
    gap: 30px;
  }
  .banking-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Accessibility & Large Font Spacing */
body.ada-large-font {
  font-size: 16px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.05em !important;
}
body.ada-large-font .search-input,
body.ada-large-font .filter-select,
body.ada-large-font button,
body.ada-large-font input,
body.ada-large-font select,
body.ada-large-font textarea {
  font-size: 15px !important;
  padding: 10px !important;
}

/* High Contrast Mode Override */
body.high-contrast {
  --primary-color: #000000 !important;
  --primary-hover: #1e293b !important;
  --secondary-color: #000000 !important;
  --accent-color: #eab308 !important;
  --bg-cream: #ffffff !important;
  --bg-light: #f8fafc !important;
  --bg-white: #ffffff !important;
  --text-dark: #000000 !important;
  --text-muted: #1e293b !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}
body.high-contrast .account-card,
body.high-contrast .ledger-card,
body.high-contrast .banking-tab-content,
body.high-contrast .banking-tab-pane {
  border: 3px solid #000000 !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
}
body.high-contrast th,
body.high-contrast td {
  border-bottom: 2px solid #000000 !important;
  color: #000000 !important;
}
body.high-contrast button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}
body.high-contrast button:hover {
  background-color: #1e293b !important;
}

/* Circular MFA Key Timer Progress Ring */
#mfa-timer-ring {
  transition: stroke-dashoffset 1s linear;
}

/* Custom Premium Bank Modal Overlay */
.bank-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 56, 34, 0.7); /* Translucent forest green */
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bank-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bank-modal-container {
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  padding: 30px;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.bank-modal-overlay.active .bank-modal-container {
  transform: scale(1);
}
.bank-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.15s ease;
}
.bank-modal-close:hover {
  color: var(--primary-color);
}
.bank-modal-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary-color);
  font-weight: 700;
}
.bank-modal-content {
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Knowledgebase Center Styles */
.kb-cat-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.kb-cat-btn:hover {
  background-color: var(--bg-light);
  border-color: var(--text-muted);
}
.kb-cat-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.kb-term-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-color);
}
.kb-term-item:hover {
  background-color: var(--bg-light);
  border-color: var(--accent-color);
}
.kb-term-item.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.kb-related-link {
  font-size: 12px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
}
.kb-related-link:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
/* Flowchart Styles */
.svg-flow-node {
  fill: var(--bg-white);
  stroke: var(--primary-color);
  stroke-width: 2px;
  rx: 4px;
  ry: 4px;
}
.svg-flow-node-active {
  stroke: var(--accent-color);
  fill: var(--bg-cream);
}
.svg-flow-text {
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--primary-color);
  text-anchor: middle;
}
.svg-flow-arrow {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2px;
  marker-end: url(#arrow);
}
