/* =================================================================
   Nexa Trust Bank - Master Stylesheet
   Modern, Secure & Responsive Financial UI
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a192f;
  --bg-darker: #050e1a;
  --bg-card-dark: #112240;
  --primary-blue: #1e3a8a;
  --accent-cyan: #06b6d4;
  --accent-gold: #d97706;
  --gold-hover: #b45309;
  --light-bg: #f8fafc;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
  --radius-lg: 14px;
  --radius-sm: 8px;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navbar */
.navbar-bank {
  background-color: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}

.navbar-bank .navbar-brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-bank .navbar-brand span {
  color: var(--accent-cyan);
}

.navbar-bank .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: all 0.2s ease;
}

.navbar-bank .nav-link:hover,
.navbar-bank .nav-link.active {
  color: var(--accent-cyan);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-cyan {
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  transition: all 0.25s ease;
}

.btn-outline-cyan:hover {
  background: var(--accent-cyan);
  color: #ffffff;
}

/* Hero Section */
.hero-bank {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-primary) 100%);
  color: #ffffff;
  padding: 90px 0 110px 0;
  position: relative;
  overflow: hidden;
}

.hero-bank::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 35px;
  max-width: 580px;
}

/* Feature Cards */
.card-service {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.3s ease;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.card-service .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Bank Account & Credit Card Widget */
.bank-credit-card {
  width: 100%;
  max-width: 380px;
  height: 230px;
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bank-credit-card.card-visa {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bank-credit-card.card-mastercard {
  background: linear-gradient(135deg, #311b92 0%, #00838f 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bank-credit-card.card-gold {
  background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

.bank-card-chip {
  width: 45px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.bank-card-number {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 3px;
  margin: 15px 0 5px 0;
}

/* User & Admin Layouts */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar-bank {
  width: 260px;
  background: var(--bg-primary);
  color: #cbd5e1;
  padding: 25px 15px;
  flex-shrink: 0;
}

.sidebar-bank .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin: 20px 0 10px 15px;
  font-weight: 700;
}

.sidebar-bank .nav-item {
  margin-bottom: 4px;
}

.sidebar-bank .nav-link {
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-bank .nav-link i {
  font-size: 1.15rem;
}

.sidebar-bank .nav-link:hover,
.sidebar-bank .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-bank .nav-link.active {
  background: var(--primary-blue);
  color: #ffffff;
}

.dashboard-content {
  flex-grow: 1;
  padding: 35px;
  background-color: #f1f5f9;
}

/* Dashboard Stat Cards */
.stat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Status Badges */
.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-status.completed,
.badge-status.active,
.badge-status.approved {
  background: #dcfce7;
  color: #15803d;
}

.badge-status.pending {
  background: #fef3c7;
  color: #b45309;
}

.badge-status.rejected,
.badge-status.suspended,
.badge-status.frozen,
.badge-status.failed {
  background: #fee2e2;
  color: #b91c1c;
}

/* Live Chat Widget Floating */
.chat-widget-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-cyan);
}

.chat-widget-btn:hover {
  transform: scale(1.08);
}

.chat-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 360px;
  height: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background: var(--bg-primary);
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-body {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-bubble.user {
  background: var(--primary-blue);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-bubble.admin {
  background: #e2e8f0;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-footer {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

/* Footer */
.footer-bank {
  background: var(--bg-darker);
  color: #94a3b8;
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bank h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-bank ul {
  list-style: none;
  padding: 0;
}

.footer-bank ul li {
  margin-bottom: 10px;
}

.footer-bank ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bank ul li a:hover {
  color: var(--accent-cyan);
}

/* =================================================================
   Mobile & 6.7" OLED Super Retina XDR (2796x1290 / 19.5:9) Responsiveness
   ================================================================= */

@media (max-width: 991.98px) {
  .dashboard-wrapper {
    flex-direction: column;
    position: relative;
  }
  
  .sidebar-bank {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    z-index: 1090;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .sidebar-bank.show-mobile {
    left: 0;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 14, 26, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1080;
  }

  .sidebar-backdrop.show-mobile {
    display: block;
  }

  .dashboard-content {
    padding: 16px !important;
    width: 100%;
  }

  .hero-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  .hero-bank {
    padding: 50px 0 60px 0;
  }

  .hero-title {
    font-size: 2.0rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.0rem;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card h3 {
    font-size: 1.2rem !important;
  }

  .bank-credit-card {
    max-width: 100%;
    height: 200px;
    padding: 18px;
  }

  .bank-card-number {
    font-size: 1.05rem;
    letter-spacing: 2px;
  }

  .modal-dialog {
    margin: 10px;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
