/* BOA Banking Simulator - Frontend */
.boa-banking-wrap {
	--boa-primary: #012169;
	--boa-secondary: #E31837;
	--boa-accent: #5B7F95;
	--boa-header: #012169;
	font-family: "Segoe UI", Arial, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	color: #333;
}

.boa-banking-wrap * {
	box-sizing: border-box;
}

.boa-header {
	background: var(--boa-header);
	color: #fff;
	padding: 0 24px;
}

.boa-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	flex-wrap: wrap;
	gap: 12px;
}

.boa-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.boa-logo-text {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.2;
	white-space: nowrap;
}

.boa-nav a {
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	margin-right: 20px;
	font-size: 0.95rem;
}

.boa-nav a:hover,
.boa-nav a.active {
	color: #fff;
	border-bottom: 2px solid var(--boa-secondary);
	padding-bottom: 2px;
}

.boa-user-greeting {
	font-size: 0.9rem;
	opacity: 0.9;
}

.boa-main {
	padding: 24px;
}

.boa-login-main {
	display: flex;
	justify-content: center;
	padding-top: 48px;
}

.boa-login-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 32px;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.boa-login-card h1 {
	font-size: 1.35rem;
	margin: 0 0 24px;
	color: var(--boa-primary);
}

.boa-form .boa-field {
	margin-bottom: 16px;
}

.boa-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #555;
}

.boa-form input,
.boa-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.boa-btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	font-weight: 600;
}

.boa-btn-primary {
	background: var(--boa-primary);
	color: #fff;
	width: 100%;
}

.boa-btn-primary:hover {
	background: #001a4d;
}

.boa-btn-link {
	background: none;
	color: var(--boa-primary);
	width: auto;
	margin-top: 8px;
}

.boa-hidden { display: none !important; }

.boa-message {
	position: fixed;
	bottom: 24px;
	right: 24px;
	padding: 14px 20px;
	border-radius: 6px;
	max-width: 360px;
	z-index: 9999;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.boa-message.success { background: #d4edda; color: #155724; }
.boa-message.error { background: #f8d7da; color: #721c24; }

.boa-dashboard-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.boa-dashboard-grid { grid-template-columns: 1fr; }
}

.boa-accounts-sidebar {
	background: #f7f8fa;
	border-radius: 8px;
	padding: 16px;
}

.boa-accounts-sidebar h2 {
	font-size: 1rem;
	margin: 0 0 12px;
	color: var(--boa-primary);
}

.boa-account-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.boa-account-item {
	margin-bottom: 8px;
}

.boa-account-item a {
	display: block;
	padding: 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.boa-account-item.active a,
.boa-account-item a:hover {
	border-color: var(--boa-primary);
	box-shadow: 0 0 0 1px var(--boa-primary);
}

.boa-acc-type {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--boa-accent);
}

.boa-acc-name {
	font-weight: 600;
}

.boa-acc-number {
	font-size: 0.85rem;
	color: #666;
}

.boa-acc-balance {
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--boa-primary);
	margin-top: 4px;
}

.boa-account-detail {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
}

.boa-balance-large {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--boa-primary);
}

.boa-credit-available {
	display: block;
	font-size: 0.9rem;
	font-weight: normal;
	color: #666;
}

.boa-txn-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

.boa-txn-table th,
.boa-txn-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.boa-txn-table th {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #666;
}

.boa-amount-col { text-align: right; }
.boa-amount-col.positive { color: #0a7c42; }
.boa-amount-col.negative { color: #c41230; }

.boa-page-title {
	color: var(--boa-primary);
	margin-bottom: 24px;
}

.boa-transfer-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e0e0e0;
}

.boa-tab {
	padding: 12px 20px;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	color: #666;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.boa-tab.active {
	color: var(--boa-primary);
	border-bottom-color: var(--boa-secondary);
}

.boa-panel { display: none; }
.boa-panel.active { display: block; }

.boa-transfer-form {
	max-width: 480px;
	background: #f7f8fa;
	padding: 24px;
	border-radius: 8px;
}

.boa-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.boa-mt-sm { margin-top: 8px; }

.boa-recent-transfers {
	margin-top: 40px;
}

.boa-status {
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 600;
}

.boa-status-pending { background: #fff3cd; color: #856404; }
.boa-status-approved { background: #d4edda; color: #155724; }
.boa-status-declined,
.boa-status-failed { background: #f8d7da; color: #721c24; }
