/* NexusBank - Main Stylesheet */
/* Converted from Tailwind to plain CSS */

/* ========== CSS Variables ========== */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --star: #FBBF24;
  --white: #FFFFFF;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.navbar-transparent {
  background: transparent;
  border-bottom: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  fill: white;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-text {
  color: var(--gray-700);
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ========== Cards ========== */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.card-hover {
  transition: all 0.3s;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input-icon {
  position: relative;
}

.form-input-icon .form-input {
  padding-left: 2.75rem;
}

.form-input-icon svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
}

/* ========== Auth Pages ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  display: none;
  width: 50%;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .auth-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
  }
}

.auth-left::before {
  content: '';
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 50%;
  filter: blur(60px);
}

.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: white;
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 28rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--gray-500);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--gray-50);
}

/* ========== Dashboard Layout ========== */
.dashboard {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18rem;
  background: white;
  border-right: 1px solid var(--gray-200);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .sidebar {
    position: static;
    transform: none;
  }
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-section {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin: 1.5rem 0 0.75rem 1rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.sidebar-link:hover {
  background: var(--gray-50);
  color: var(--navy);
}

.sidebar-link.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-blue);
}

.sidebar-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-badge {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border-radius: 9999px;
}

.sidebar-link.active .sidebar-badge {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--gray-100);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: 0;
  }
}

/* ========== Top Header ========== */
.top-header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  z-index: 30;
  padding: 1rem 1.5rem;
}

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

.header-search {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

@media (min-width: 640px) {
  .header-search {
    display: flex;
  }
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  width: 12rem;
}

.header-search input::placeholder {
  color: var(--gray-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  position: relative;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  transition: all 0.2s;
}

.header-btn:hover {
  background: var(--gray-100);
}

.header-btn .badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem;
  border-radius: var(--radius-xl);
  transition: background 0.2s;
}

.user-menu:hover {
  background: var(--gray-100);
}

.user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.user-info {
  display: none;
}

@media (min-width: 768px) {
  .user-info {
    display: block;
  }
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.user-role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ========== Page Content ========== */
.page-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--gray-500);
}

/* ========== Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.blue {
  background: var(--primary);
}

.stat-icon.green {
  background: var(--success);
}

.stat-icon.red {
  background: var(--danger);
}

.stat-icon.purple {
  background: #8B5CF6;
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

/* ========== Tables ========== */
.table-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.table-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  width: 10rem;
}

.table-search svg {
  width: 1rem;
  height: 1rem;
  color: var(--gray-400);
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gray-50);
}

th {
  padding: 0.875rem 1.5rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

tbody tr:hover {
  background: var(--gray-50);
}

.transaction-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transaction-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.transaction-avatar.income {
  background: rgba(16, 185, 129, 0.1);
}

.transaction-avatar.expense {
  background: var(--gray-100);
}

.transaction-name {
  font-weight: 500;
  color: var(--navy);
}

.transaction-id {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  font-weight: 600;
}

.amount.income {
  color: var(--success);
}

.amount.expense {
  color: var(--navy);
}

/* ========== Credit Card ========== */
.credit-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e293b 100%);
}

.credit-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(30px);
}

.credit-card-content {
  position: relative;
  height: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

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

.credit-card-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credit-card-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.credit-card-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chip {
  width: 2.5rem;
  height: 2rem;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-inner {
  width: 1.5rem;
  height: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.credit-card-number {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credit-card-actions {
  display: flex;
  gap: 0.5rem;
}

.credit-card-actions button {
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: white;
  transition: background 0.2s;
}

.credit-card-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.credit-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.credit-card-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}

.credit-card-value {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.credit-card-expiry {
  display: flex;
  gap: 1.5rem;
}

/* ========== Quick Actions ========== */
.quick-actions {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 2rem;
}

.quick-actions-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.quick-action:hover {
  background: rgba(59, 130, 246, 0.1);
}

.quick-action-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.quick-action:hover .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-icon.blue {
  background: var(--primary);
}

.quick-action-icon.green {
  background: var(--success);
}

.quick-action-icon.orange {
  background: var(--warning);
}

.quick-action-icon.purple {
  background: #8B5CF6;
}

.quick-action-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.quick-action-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

/* ========== Charts ========== */
.chart-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.chart-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.chart-period {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 16rem;
}

.bar-chart-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bar-chart-bar {
  width: 100%;
  background: var(--primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.bar-chart-bar:hover {
  opacity: 1;
}

.bar-chart-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ========== Transfer Page ========== */
.transfer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 1.5rem;
}

.transfer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s;
}

.transfer-tab:hover {
  background: var(--gray-50);
}

.transfer-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-blue);
}

.transfer-tab svg {
  width: 1.5rem;
  height: 1.5rem;
}

.amount-input {
  position: relative;
}

.amount-input .currency {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-400);
}

.amount-input input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.amount-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.contacts-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.contact-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.contact-item:hover,
.contact-item.selected {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.contact-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
}

.contact-item.selected .contact-avatar {
  background: var(--primary);
  color: white;
}

.contact-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.contact-account {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ========== Cards Page ========== */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.card-item:hover,
.card-item.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.card-type-icon {
  width: 3rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
}

.card-type-icon.visa {
  background: #1a1f71;
}

.card-type-icon.mastercard {
  background: #eb001b;
}

.card-type-icon.amex {
  background: #016fd0;
}

.card-info {
  flex: 1;
}

.card-number {
  font-weight: 500;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border-radius: 9999px;
}

.card-expiry {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.card-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .card-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.card-action-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.card-action-btn.frozen {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* ========== Notifications ========== */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
}

.notification-item.unread {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.03);
}

.notification-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.notification-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.notification-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.notification-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.notification-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.notification-content {
  flex: 1;
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.notification-title {
  font-weight: 600;
  color: var(--navy);
}

.notification-badge {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.notification-actions {
  display: flex;
  gap: 0.5rem;
}

.notification-actions button {
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--gray-400);
  transition: all 0.2s;
}

.notification-actions button:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ========== Profile ========== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .profile-header {
    flex-direction: row;
  }
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--gray-600);
}

.profile-info {
  text-align: center;
}

@media (min-width: 640px) {
  .profile-info {
    text-align: left;
  }
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.profile-status {
  color: var(--gray-500);
}

.profile-meta {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.toggle-label {
  font-weight: 500;
  color: var(--navy);
}

.toggle-description {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.toggle-switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  background: var(--gray-300);
  border-radius: 9999px;
  transition: background 0.2s;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.active::after {
  transform: translateX(1.5rem);
}

/* ========== Admin Pages ========== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -0.25rem;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.success {
  background: var(--success);
}

.status-dot.success::after {
  background: rgba(16, 185, 129, 0.4);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.live-bar {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.live-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.live-metrics {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .live-metrics {
    display: flex;
  }
}

.live-metric {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.live-metric span {
  color: white;
  font-weight: 500;
}

/* ========== Fraud Alerts ========== */
.alert-item {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.alert-item.critical {
  border-color: rgba(239, 68, 68, 0.3);
}

.alert-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.alert-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-icon.critical {
  background: var(--danger);
  color: white;
}

.alert-icon.high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.alert-icon.medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.alert-icon.low {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.alert-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.alert-badge {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
}

.alert-badge.critical {
  background: var(--danger);
  color: white;
}

.alert-badge.high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.alert-badge.open {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.alert-badge.investigating {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.alert-badge.resolved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.alert-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.alert-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.alert-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.alert-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.alert-actions {
  display: flex;
  gap: 0.5rem;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  transition: all 0.2s;
}

.pagination-btn:hover {
  background: var(--gray-100);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-page {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s;
}

.pagination-page:hover {
  background: var(--gray-100);
}

.pagination-page.active {
  background: var(--primary);
  color: white;
}

/* ========== Mobile Menu ========== */
.mobile-menu-btn {
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

/* ========== Utility Classes ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-1-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-1-2 {
    grid-template-columns: 1fr 2fr;
  }
}

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

.text-right {
  text-align: right;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* ========== Print Styles ========== */
@media print {
  .navbar,
  .sidebar,
  .top-header,
  .mobile-menu-btn,
  .mobile-overlay {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}
