
:root {
  --primary: #6b46c1; /* Purple */
  --primary-light: #8b5cf6;
  --secondary: #ec4899; /* Pink */
  --bg-body: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #94a3b8;
  --border: #f1f5f9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background: var(--bg-body); color: var(--text-main); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
a { text-decoration: none; color: inherit; }

/* The Main Dashboard Wrapper */
.dashboard-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  width: 100%; max-width: 1400px; height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,0.4);
}

/* Sidebar */
.sidebar {
  width: 90px; background: #ffffff; display: flex; flex-direction: column; align-items: center; padding: 30px 0;
  border-right: 1px solid var(--border); transition: width 0.3s ease;
}
.sidebar .logo {
  width: 45px; height: 45px; background: linear-gradient(135deg, #f43f5e, #a855f7); border-radius: 12px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 20px;
}
.sidebar a {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
  border-radius: 14px; color: #cbd5e1; transition: all 0.2s; font-size: 20px;
}
.sidebar a:hover { color: var(--primary); background: #f8fafc; }
.sidebar a.active { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3); }

/* Main Content Area */
.main-content { flex: 1; padding: 30px 40px; overflow-y: auto; display: flex; flex-direction: column; }

/* Header */
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.top-header h1 { font-size: 24px; font-weight: 700; }
.top-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.search-bar { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 10px 20px; width: 300px; display: flex; align-items: center; box-shadow: var(--shadow-sm); }
.search-bar input { border: none; outline: none; width: 100%; font-size: 14px; color: var(--text-main); }

/* Dashboard Grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }

/* Cards */
.card { background: var(--bg-card); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 600; }

/* The Gradient Credit Card */
.credit-card {
  background: linear-gradient(135deg, #a855f7, #ec4899, #f43f5e);
  border-radius: var(--radius-md); padding: 25px; color: white; position: relative; overflow: hidden;
  box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.4); margin-bottom: 30px;
}
.credit-card::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
  background: rgba(255,255,255,0.1); border-radius: 50%;
}
.cc-balance-label { font-size: 13px; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }
.cc-balance { font-size: 32px; font-weight: 700; margin: 5px 0 25px 0; }
.cc-number { font-family: monospace; font-size: 16px; letter-spacing: 2px; opacity: 0.9; margin-bottom: 15px; }
.cc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: 0.9; }

/* Promo Card */
.promo-card { display: flex; justify-content: space-between; align-items: center; }
.promo-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.promo-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; max-width: 250px; }
.btn-promo { background: var(--primary); color: white; padding: 10px 24px; border-radius: 20px; font-size: 13px; font-weight: 600; display: inline-block; transition: background 0.2s; }
.btn-promo:hover { background: var(--primary-light); }

/* Transactions List */
.txn-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.txn-item:last-child { border-bottom: none; }
.txn-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f8fafc; font-size: 16px; }
.txn-icon.out { color: #ef4444; background: #fee2e2; }
.txn-icon.in { color: #10b981; background: #dcfce7; }
.txn-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.txn-info p { font-size: 11px; color: var(--text-muted); }
.txn-amount { font-weight: 700; font-size: 14px; }
.txn-amount.out { color: #ef4444; }
.txn-amount.in { color: #10b981; }

/* Quick Transfer */
.quick-transfer-avatars { display: flex; gap: 10px; margin-bottom: 20px; }
.avatar { width: 45px; height: 45px; border-radius: 50%; background: #e2e8f0; border: 2px solid white; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.avatar.add { border: 1px dashed var(--text-muted); background: transparent; color: var(--text-muted); cursor: pointer; }
.transfer-input { display: flex; align-items: center; background: #f8fafc; border-radius: 12px; padding: 10px 15px; margin-bottom: 15px; border: 1px solid var(--border); }
.transfer-input input { border: none; background: transparent; flex: 1; outline: none; font-size: 16px; font-weight: 600; }

/* General Form & Buttons */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; font-size: 14px; outline: none; transition: border 0.2s; }
.form-control:focus { border-color: var(--primary); }
.btn { border: none; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--text-main); }
.btn-outline:hover { background: #f8fafc; }

table.custom-table { width: 100%; border-collapse: collapse; }
table.custom-table th { padding: 12px; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border); text-align: left; font-weight: 600; }
table.custom-table td { padding: 16px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-approved { background: #dcfce7; color: #15803d; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
