/* ================================
   UNIGOM Financial Module - Styles
   Mobile-First Responsive Design
   ================================ */

/* CSS Variables - UNIGOM Navy Blue Theme */
:root {
	--primary: #1e3a5f;
	--primary-light: #2d4a6f;
	--primary-dark: #152a45;
	--primary-foreground: #ffffff;

	--background: #f8fafc;
	--foreground: #1e3a5f;
	--card: #ffffff;
	--card-foreground: #1e3a5f;

	--muted: #f1f5f9;
	--muted-foreground: #64748b;
	--border: #e2e8f0;
	--input: #e2e8f0;

	--success: #16a34a;
	--success-light: #dcfce7;
	--danger: #dc2626;
	--danger-light: #fee2e2;

	--radius: 0.75rem;
	--radius-lg: 1rem;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: var(--background);
	color: var(--foreground);
	line-height: 1.6;
	min-height: 100vh;
	overflow-x: hidden;
}

input,
button,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

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

/* Utilities */
.hidden {
	display: none !important;
}

.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;
}

/* ================================
   Login Screen
   ================================ */
.login-screen {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.login-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem;
	width: 100%;
}

.login-card {
	background-color: var(--card);
	border-radius: var(--radius-lg);
	padding: 2rem 1.5rem;
	box-shadow: var(--shadow-lg);
	width: 100%;
}

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

.logo {
	margin-bottom: 1.5rem;
}

.logo-icon {
	width: 80px;
	height: 80px;
	background-color: var(--primary);
	color: var(--primary-foreground);
	border-radius: var(--radius-lg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
	box-shadow: var(--shadow-md);
}

.login-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 0.25rem;
}

.login-header .subtitle {
	font-size: 1rem;
	color: var(--muted-foreground);
	font-weight: 500;
}

.login-header .description {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin-top: 0.5rem;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--foreground);
}

.form-group input {
	width: 100%;
	padding: 1rem 1rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	background-color: var(--card);
	color: var(--foreground);
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.form-group input::placeholder {
	color: var(--muted-foreground);
}

.password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-input-wrapper input {
	padding-right: 3.5rem;
}

.toggle-password {
	position: absolute;
	right: 1rem;
	padding: 0.5rem;
	color: var(--muted-foreground);
	transition: color 0.2s;
}

.toggle-password:hover {
	color: var(--foreground);
}

.toggle-password svg {
	width: 20px;
	height: 20px;
}

.optional {
	font-weight: 400;
	color: var(--muted-foreground);
	font-size: 0.8rem;
}

.required {
	color: var(--danger);
}

.error-message {
	padding: 0.875rem 1rem;
	background-color: var(--danger-light);
	color: var(--danger);
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 500;
}

.demo-hint {
	text-align: center;
	font-size: 0.75rem;
	color: var(--muted-foreground);
	margin-top: 1.5rem;
	padding: 0.75rem;
	background-color: var(--muted);
	border-radius: var(--radius);
}

.demo-hint code {
	font-family: 'SF Mono', Monaco, monospace;
	background-color: var(--card);
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	font-size: 0.7rem;
}

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

.btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.btn-full {
	width: 100%;
}

.btn-primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
}

.btn-primary:hover {
	background-color: var(--primary-light);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-primary:active {
	background-color: var(--primary-dark);
	transform: translateY(0);
}

.btn-secondary {
	background-color: var(--muted);
	color: var(--foreground);
}

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

.btn-success {
	background-color: var(--success);
	color: white;
}

.btn-success:hover {
	background-color: #15803d;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-success:active {
	transform: translateY(0);
}

.btn-danger {
	background-color: var(--danger);
	color: white;
}

.btn-danger:hover {
	background-color: #b91c1c;
}

.btn-outline {
	background-color: transparent;
	border: 2px solid var(--border);
	color: var(--foreground);
}

.btn-outline:hover {
	background-color: var(--muted);
	border-color: var(--muted-foreground);
}

.btn-logout {
	color: var(--danger);
	border-color: var(--danger);
}

.btn-logout:hover {
	background-color: var(--danger-light);
}

/* ================================
   App Layout
   ================================ */
.app-layout {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ================================
   App Header
   ================================ */
.app-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--primary);
	color: var(--primary-foreground);
	box-shadow: var(--shadow-md);
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-logo {
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 0.625rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.25rem;
}

.header-title {
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.025em;
}

.header-user {
	font-size: 0.875rem;
	opacity: 0.9;
	background-color: rgba(255, 255, 255, 0.1);
	padding: 0.375rem 0.75rem;
	border-radius: var(--radius);
}

/* Desktop Navigation in Header */
.desktop-nav {
	display: none;
}

/* ================================
   Main Content
   ================================ */
.main-content {
	flex: 1;
	padding-bottom: 90px;
	/* Space for bottom nav on mobile */
}

.section {
	display: block;
	padding: 1.25rem;
}

.section-container {
	max-width: 100%;
}

.section-header {
	margin-bottom: 1.5rem;
}

.section-header h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--foreground);
	letter-spacing: -0.025em;
}

.section-subtitle {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin-top: 0.25rem;
}

/* ================================
   Transaction Form
   ================================ */
.transaction-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background-color: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	margin-bottom: 1.5rem;
	border: 1px solid var(--border);
}

.amount-input-wrapper {
	display: flex;
	gap: 0.75rem;
	flex-direction: column;
}

.amount-input-wrapper input {
	flex: 1;
	min-width: 0;
	font-size: 1.25rem;
	font-weight: 600;
	padding: 1rem;
}

.currency-toggle {
	display: flex;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background-color: var(--muted);
}

.currency-btn {
	flex: 1;
	padding: 0.875rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--muted-foreground);
	background-color: transparent;
	transition: all 0.2s;
	border: none;
	cursor: pointer;
}

.currency-btn:hover {
	background-color: var(--border);
	color: var(--foreground);
}

.currency-btn.active {
	background-color: var(--primary);
	color: var(--primary-foreground);
}

/* ================================
   Today Summary
   ================================ */
.today-summary {
	background-color: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border);
}

.today-summary h3 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted-foreground);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.summary-card {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	background-color: var(--muted);
	border-radius: var(--radius);
}

.summary-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.summary-value {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--foreground);
}

.summary-hint {
	font-size: 0.8125rem;
	color: var(--muted-foreground);
	margin-top: 0.75rem;
	margin-bottom: 0;
}

/* ================================
   Filter Tabs
   ================================ */
.filter-tabs,
.period-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.filter-tabs::-webkit-scrollbar,
.period-tabs::-webkit-scrollbar {
	display: none;
}

.filter-tab,
.period-tab {
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted-foreground);
	background-color: var(--card);
	border: 2px solid var(--border);
	transition: all 0.2s;
	white-space: nowrap;
	cursor: pointer;
}

.filter-tab:hover,
.period-tab:hover {
	background-color: var(--muted);
	border-color: var(--muted-foreground);
}

.filter-tab.active,
.period-tab.active {
	background-color: var(--primary);
	color: var(--primary-foreground);
	border-color: var(--primary);
}

/* ================================
   Transaction List
   ================================ */
.transaction-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.transaction-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background-color: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	transition: transform 0.2s, box-shadow 0.2s;
}

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

.transaction-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.transaction-icon svg {
	width: 24px;
	height: 24px;
}

.transaction-icon.income {
	background-color: var(--success-light);
	color: var(--success);
}

.transaction-icon.expense {
	background-color: var(--danger-light);
	color: var(--danger);
}

.transaction-details {
	flex: 1;
	min-width: 0;
}

.transaction-description {
	font-weight: 600;
	color: var(--foreground);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.9375rem;
}

.transaction-meta {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

.transaction-amount {
	font-weight: 700;
	font-size: 1rem;
	white-space: nowrap;
}

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

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

.empty-state {
	text-align: center;
	padding: 4rem 1.5rem;
	color: var(--muted-foreground);
	background-color: var(--card);
	border-radius: var(--radius-lg);
	border: 2px dashed var(--border);
}

.empty-state svg {
	width: 64px;
	height: 64px;
	margin-bottom: 1rem;
	opacity: 0.4;
}

.empty-state p {
	font-size: 1rem;
	font-weight: 500;
}

/* ================================
   Reports Grid
   ================================ */
.reports-grid {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.report-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	background-color: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border);
}

.report-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.report-icon svg {
	width: 28px;
	height: 28px;
}

.income-card .report-icon {
	background-color: var(--success-light);
	color: var(--success);
}

.expense-card .report-icon {
	background-color: var(--danger-light);
	color: var(--danger);
}

.balance-card .report-icon {
	background-color: rgba(30, 58, 95, 0.1);
	color: var(--primary);
}

.report-content {
	flex: 1;
}

.report-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted-foreground);
	display: block;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.report-values {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.report-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--foreground);
}

/* ================================
   Balance Screen
   ================================ */
.balance-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.balance-card-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.5rem;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: var(--primary-foreground);
	border-radius: var(--radius-lg);
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.balance-currency {
	font-size: 0.875rem;
	opacity: 0.85;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.balance-amount {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	letter-spacing: -0.025em;
}

.balance-label {
	font-size: 0.8125rem;
	opacity: 0.75;
	font-weight: 500;
}

.balance-details {
	background-color: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border);
}

.balance-details h3 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted-foreground);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-label {
	font-size: 0.9375rem;
	color: var(--muted-foreground);
	font-weight: 500;
}

.detail-value {
	font-weight: 700;
	font-size: 1rem;
}

.detail-value.positive {
	color: var(--success);
}

.detail-value.negative {
	color: var(--danger);
}

/* ================================
   Profile Screen
   ================================ */
.profile-info {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem;
	background-color: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	margin-bottom: 1.5rem;
	border: 1px solid var(--border);
}

.profile-avatar {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: var(--primary-foreground);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	flex-shrink: 0;
	box-shadow: var(--shadow-md);
}

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

.profile-role {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin-top: 0.25rem;
}

.profile-section-group {
	background-color: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	margin-bottom: 1.25rem;
	border: 1px solid var(--border);
}

.profile-section-group h3 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted-foreground);
	margin-bottom: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.password-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-message {
	padding: 1rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 500;
}

.form-message.success {
	background-color: var(--success-light);
	color: var(--success);
}

.form-message.error {
	background-color: var(--danger-light);
	color: var(--danger);
}

/* ================================
   Bottom Navigation
   ================================ */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--card);
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-around;
	padding: 0.5rem 0.25rem;
	padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
	z-index: 100;
	box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	color: var(--muted-foreground);
	transition: color 0.2s;
	min-width: 50px;
	border-radius: var(--radius);
}

.nav-item svg {
	width: 22px;
	height: 22px;
}

.nav-item span {
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.nav-item:hover {
	color: var(--primary);
	background-color: var(--muted);
}

.nav-item.active {
	color: var(--primary);
	background-color: rgba(30, 58, 95, 0.1);
}

/* ================================
   Toast
   ================================ */
.toast {
	position: fixed;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background-color: var(--primary);
	color: var(--primary-foreground);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	z-index: 200;
	animation: toast-in 0.3s ease;
	font-weight: 500;
}

.toast svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* ================================
   Print Styles
   ================================ */
.print-only {
	display: none;
}

.no-print {
	display: flex;
}

@media print {
	@page {
		size: 58mm auto;
		margin: 0;
	}

	html,
	body {
		width: 58mm;
		margin: 0;
		padding: 0;
		background: white !important;
		font-size: 10px;
	}

	.no-print {
		display: none !important;
	}

	.print-only {
		display: block !important;
	}

	.app-layout {
		display: none !important;
	}

	.print-header {
		text-align: center;
		padding: 0.5rem;
		border-bottom: 1px dashed #000;
		margin-bottom: 0.5rem;
	}

	.print-logo {
		font-size: 1.4rem;
		font-weight: bold;
	}

	.print-subtitle {
		font-size: 0.8rem;
	}

	.print-date {
		font-size: 0.7rem;
		margin-top: 0.25rem;
	}

	.print-title {
		text-align: center;
		font-weight: bold;
		font-size: 1rem;
		margin: 0.5rem 0;
	}

	.print-content {
		padding: 0.5rem;
	}

	.print-row {
		display: flex;
		justify-content: space-between;
		padding: 0.25rem 0;
		border-bottom: 1px dotted #ccc;
	}

	.print-row:last-child {
		border-bottom: none;
	}

	.print-total {
		font-weight: bold;
		border-top: 1px solid #000;
		margin-top: 0.5rem;
		padding-top: 0.5rem;
	}

	.print-footer {
		text-align: center;
		padding: 0.5rem;
		font-size: 0.7rem;
	}
}

/* ================================
   Responsive - Tablet (768px+)
   ================================ */
@media (min-width: 768px) {
	.login-container {
		max-width: 480px;
		margin: 0 auto;
		padding: 2rem;
	}

	.login-card {
		padding: 3rem 2.5rem;
	}

	.logo-icon {
		width: 100px;
		height: 100px;
		font-size: 2.5rem;
	}

	.login-header h1 {
		font-size: 2rem;
	}

	.main-content {
		padding-bottom: 0;
	}

	.section {
		padding: 2rem;
	}

	.section-container {
		max-width: 700px;
		margin: 0 auto;
	}

	/* Hide mobile bottom nav */
	.bottom-nav {
		display: none;
	}

	/* Show desktop nav in header */
	.desktop-nav {
		display: flex;
		gap: 0.25rem;
	}

	.desktop-nav .nav-item {
		flex-direction: row;
		gap: 0.5rem;
		padding: 0.625rem 1rem;
		color: rgba(255, 255, 255, 0.7);
		border-radius: var(--radius);
		font-size: 0.875rem;
	}

	.desktop-nav .nav-item svg {
		width: 18px;
		height: 18px;
	}

	.desktop-nav .nav-item span {
		font-size: 0.8125rem;
		text-transform: none;
		letter-spacing: normal;
	}

	.desktop-nav .nav-item:hover {
		color: white;
		background-color: rgba(255, 255, 255, 0.1);
	}

	.desktop-nav .nav-item.active {
		color: white;
		background-color: rgba(255, 255, 255, 0.15);
	}

	.amount-input-wrapper {
		flex-direction: row;
	}

	.currency-toggle {
		flex-shrink: 0;
		width: auto;
	}

	.currency-btn {
		padding: 1rem 1.5rem;
	}

	.summary-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.balance-cards {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.toast {
		bottom: 2rem;
	}
}

/* ================================
   Responsive - Desktop (1024px+)
   ================================ */
@media (min-width: 1024px) {
	.header-content {
		max-width: 1200px;
		margin: 0 auto;
		padding: 1rem 2rem;
	}

	.section {
		padding: 2.5rem;
	}

	.section-container {
		max-width: 900px;
	}

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

	.transaction-item {
		padding: 1.5rem;
	}
}

/* ================================
   Responsive - Large Desktop (1280px+)
   ================================ */
@media (min-width: 1280px) {
	.section-container {
		max-width: 1000px;
	}

	.reports-grid {
		gap: 1.5rem;
	}

	.report-card {
		padding: 2rem;
	}

	.report-value {
		font-size: 1.5rem;
	}
}

/* Styles for history receipt print button */
.transaction-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.btn-print-receipt {
	padding: 0.25rem;
	color: var(--muted-foreground);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}

.btn-print-receipt:hover {
	background-color: var(--muted);
	color: var(--primary);
}

.btn-print-receipt svg {
	width: 18px;
	height: 18px;
}

/* Loading Spinner */
.loading-spinner {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem;
}

.spinner {
	width: 48px;
	height: 48px;
	border: 5px solid var(--border);
	border-bottom-color: var(--primary);
	border-radius: 50%;
	display: inline-block;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}