﻿/* ===================================
   Design System & CSS Variables
   =================================== */
:root {
	/* Color Palette - Light Mode */
	--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	--warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

	--bg-primary: #f8f9fe;
	--bg-secondary: #ffffff;
	--bg-tertiary: #f1f3f9;

	--text-primary: #1a202c;
	--text-secondary: #4a5568;
	--text-tertiary: #718096;

	--border-color: #e2e8f0;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
	--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

	--primary-color: #667eea;
	--success-color: #43e97b;
	--warning-color: #fbbf24;
	--danger-color: #f5576c;

	--sidebar-width: 260px;
	--header-height: 80px;

	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-display: 'Outfit', sans-serif;

	--transition-fast: 0.15s ease;
	--transition-normal: 0.3s ease;
	--transition-slow: 0.5s ease;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;

	--z-index-dropdown: 1000;
	--z-index-sticky: 1020;
	--z-index-fixed: 1030;
	--z-index-modal: 1040;
	--z-index-popover: 1050;
	--z-index-tooltip: 1060;
	--z-index-toast: 1070;

	color-scheme: light;
}

/* Dark Mode Variables */
[data-theme="dark"] {
	color-scheme: dark;
	--bg-primary: #0f1419;
	--bg-secondary: #1a1f2e;
	--bg-tertiary: #252d3d;

	--text-primary: #f7fafc;
	--text-secondary: #cbd5e0;
	--text-tertiary: #a0aec0;

	--border-color: #2d3748;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
	--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===================================
   Theme Toggle Button
   =================================== */
.theme-toggle {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bg-secondary);
	border: 2px solid var(--border-color);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-normal);
}

.theme-toggle:hover {
	transform: scale(1.1) rotate(15deg);
	box-shadow: var(--shadow-lg);
}

.theme-toggle .sun-icon {
	display: block;
	color: var(--text-primary);
}

.theme-toggle .moon-icon {
	display: none;
	color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle .sun-icon {
	display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
	display: block;
}

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

/* ===================================
   Sidebar
   =================================== */
.sidebar {
	width: var(--sidebar-width);
	background: var(--bg-secondary);
	border-right: 1px solid var(--border-color);
	padding: 32px 20px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	position: fixed;
	height: 100vh;
	/* Fallback */
	height: 100dvh;
	left: 0;
	top: 0;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
	overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
	width: 4px;
}

.sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
	background: var(--text-tertiary);
	border-radius: 4px;
	opacity: 0.5;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color);
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 12px;
}

.logo-icon {
	animation: float 3s ease-in-out infinite;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-5px);
	}
}

.logo h1 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav-menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--radius-md);
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition-fast);
	position: relative;
	overflow: hidden;
}

.nav-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: var(--primary-gradient);
	transform: scaleY(0);
	transition: transform var(--transition-normal);
}

.nav-item:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	transform: translateX(4px);
}

.nav-item.active {
	background: var(--bg-tertiary);
	color: var(--primary-color);
	font-weight: 600;
}

.nav-item.active::before {
	transform: scaleY(1);
}

.nav-item svg {
	flex-shrink: 0;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
	margin-left: var(--sidebar-width);
	flex: 1;
	padding: 40px;
	max-width: calc(100vw - var(--sidebar-width));
}

.view {
	display: none;
	animation: fadeIn 0.4s ease;
}

.view.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===================================
   Page Header
   =================================== */
.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.page-header h2 {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.subtitle {
	color: var(--text-secondary);
	font-size: 14px;
}

.current-date {
	font-size: 14px;
	color: var(--text-secondary);
	padding: 10px 20px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	font-weight: 500;
}

/* ===================================
   Stats Grid
   =================================== */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.stat-card {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 24px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--primary-gradient);
	opacity: 0;
	transition: opacity var(--transition-normal);
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
	opacity: 0.03;
}

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

.stat-content {
	flex: 1;
}

.stat-label {
	font-size: 13px;
	color: var(--text-tertiary);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
	font-family: var(--font-display);
}

.stat-change {
	font-size: 13px;
	color: var(--text-secondary);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

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

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

/* ===================================
   Dashboard Grid
   =================================== */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

/* ===================================
   Cards
   =================================== */
.card {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: all var(--transition-normal);
}

.card:hover {
	box-shadow: var(--shadow-md);
}

.card-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-header h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
}

.card-body {
	padding: 24px;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
	background: var(--primary-gradient);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	padding: 12px 24px;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all var(--transition-normal);
}

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

.btn-icon {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
	color: var(--text-secondary);
}

.btn-icon:hover {
	background: var(--primary-gradient);
	color: white;
	border-color: transparent;
	transform: scale(1.1);
}

/* ===================================
   Filters Bar
   =================================== */
.filters-bar {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.input-field,
.select-field {
	padding: 12px 16px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 14px;
	font-family: var(--font-primary);
	transition: all var(--transition-fast);
	outline: none;
}

/* Custom styling for date/time pickers to mix with UI */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.6;
	transition: all var(--transition-fast);
	padding: 4px;
	border-radius: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
	background: var(--bg-tertiary);
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
}

.input-field:focus,
.select-field:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-field {
	cursor: pointer;
	min-width: 180px;
}

textarea.input-field {
	resize: vertical;
	font-family: var(--font-primary);
}

/* ===================================
   Month Selector
   =================================== */
.month-selector {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--bg-secondary);
	padding: 8px 12px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
}

.month-display {
	font-weight: 600;
	color: var(--text-primary);
	min-width: 150px;
	text-align: center;
}

/* ===================================
   Monthly Stats
   =================================== */
.monthly-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.stat-card-large {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 32px;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
}

.stat-card-large:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.stat-card-large h4 {
	font-size: 14px;
	color: var(--text-tertiary);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.stat-card-large h2 {
	font-size: 36px;
	font-weight: 700;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 8px;
	font-family: var(--font-display);
}

.stat-card-large p {
	font-size: 14px;
	color: var(--text-secondary);
}

/* ===================================
   Time Summary Card
   =================================== */
.time-summary-card {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-bottom: 24px;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
}

.time-summary-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.time-summary-item .label {
	color: var(--text-secondary);
	font-weight: 500;
}

.time-summary-item .value {
	color: var(--text-primary);
	font-weight: 700;
	font-size: 18px;
}

.time-progress-bar {
	width: 100%;
	height: 12px;
	background: var(--bg-tertiary);
	border-radius: 100px;
	overflow: hidden;
	margin-top: 16px;
}

.time-progress-fill {
	height: 100%;
	background: var(--primary-gradient);
	border-radius: 100px;
	transition: width var(--transition-normal);
}

/* ===================================
   Tables
   =================================== */
.data-table {
	width: 100%;
	border-collapse: collapse;
}

.data-table thead {
	background: var(--bg-tertiary);
}

.data-table th {
	padding: 14px 16px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.data-table td {
	padding: 16px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}

.data-table tr:hover {
	background: var(--bg-tertiary);
}

.table-actions {
	display: flex;
	gap: 8px;
}

.btn-edit,
.btn-delete {
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	border: none;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.btn-edit {
	background: var(--accent-gradient);
	color: white;
}

.btn-delete {
	background: var(--secondary-gradient);
	color: white;
}

.btn-edit:hover,
.btn-delete:hover {
	transform: scale(1.05);
	box-shadow: var(--shadow-sm);
}

/* ===================================
   Modal
   =================================== */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.modal.active {
	display: flex;
}

.modal-content {
	background: var(--bg-secondary);
	border-radius: var(--radius-xl);
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--shadow-xl);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header {
	padding: 24px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-primary);
}

.modal-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bg-tertiary);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
	color: var(--text-secondary);
}

.modal-close:hover {
	background: var(--danger-color);
	color: white;
	transform: rotate(90deg);
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

/* ===================================
   Form Groups
   =================================== */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.time-validation-warning {
	background: rgba(245, 87, 108, 0.1);
	color: var(--danger-color);
	padding: 12px 16px;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 500;
	margin-top: 16px;
	border: 1px solid var(--danger-color);
}

/* ===================================
   Mini Lists & Charts
   =================================== */
.expense-list-mini {
	max-height: 300px;
	overflow-y: auto;
}

.expense-item-mini {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-radius: var(--radius-sm);
	margin-bottom: 8px;
	background: var(--bg-tertiary);
	transition: all var(--transition-fast);
}

.expense-item-mini:hover {
	transform: translateX(4px);
	background: var(--bg-primary);
}

.expense-item-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.expense-category-icon {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.expense-item-details h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 2px;
}

.expense-item-details p {
	font-size: 12px;
	color: var(--text-secondary);
}

.expense-amount {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-primary);
}

.time-chart-mini {
	min-height: 300px;
}

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-tertiary);
}

.empty-state svg {
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	opacity: 0.3;
}

/* ===================================
   Analytics Grid
   =================================== */
.analytics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 24px;
}

.category-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-md);
	margin-bottom: 12px;
	transition: all var(--transition-fast);
}

.category-item:hover {
	transform: translateX(4px);
	box-shadow: var(--shadow-sm);
}

.category-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.category-bar {
	flex: 1;
	height: 8px;
	background: var(--bg-tertiary);
	border-radius: 100px;
	overflow: hidden;
	margin: 0 16px;
}

.category-bar-fill {
	height: 100%;
	background: var(--primary-gradient);
	border-radius: 100px;
	transition: width var(--transition-normal);
}

.category-amount {
	font-weight: 700;
	color: var(--text-primary);
}

/* ===================================
   Mobile Menu Toggle
   =================================== */
.mobile-menu-toggle {
	display: none;
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1001;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bg-secondary);
	border: 2px solid var(--border-color);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-normal);
}

.mobile-menu-toggle:hover {
	transform: scale(1.1);
	box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle svg {
	color: var(--text-primary);
}

.mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	z-index: 998;
}

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

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablets and Small Desktops (1200px and below) */
@media (max-width: 1200px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dashboard-grid {
		grid-template-columns: 1fr;
	}

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

	.monthly-stats-grid {
		grid-template-columns: 1fr;
	}
}

/* Tablets (992px and below) */
@media (max-width: 992px) {
	:root {
		--sidebar-width: 80px;
	}

	.sidebar {
		width: 80px;
		padding: 24px 12px;
	}

	.logo h1 {
		display: none;
	}

	.nav-item span {
		display: none;
	}

	.nav-item {
		justify-content: center;
		padding: 14px 12px;
	}

	.main-content {
		margin-left: 80px;
		max-width: calc(100vw - 80px);
		padding: 32px 24px;
	}

	.page-header h2 {
		font-size: 28px;
	}

	.stat-value {
		font-size: 24px;
	}

	.stat-card-large h2 {
		font-size: 32px;
	}
}

/* Mobile Landscape and Small Tablets (768px and below) */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}

	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		width: var(--sidebar-width);
		height: 100vh;
		/* Fallback */
		height: 100dvh;
		transform: translateX(-100%);
		z-index: 999;
		box-shadow: var(--shadow-xl);
		transition: transform var(--transition-normal);
	}

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

	/* Show full sidebar on mobile when open */
	.sidebar.mobile-open {
		width: 260px;
		padding: 32px 20px;
	}

	.sidebar.mobile-open .logo h1 {
		display: block;
	}

	.sidebar.mobile-open .nav-item span {
		display: inline;
	}

	.sidebar.mobile-open .nav-item {
		justify-content: flex-start;
		padding: 14px 16px;
	}

	.main-content {
		margin-left: 0;
		max-width: 100vw;
		padding: 80px 20px 20px 20px;
	}

	.theme-toggle {
		top: 20px;
		right: 20px;
	}

	.page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 24px;
	}

	.page-header h2 {
		font-size: 24px;
	}

	.current-date {
		font-size: 13px;
		padding: 8px 16px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.stat-card {
		padding: 20px;
	}

	.stat-icon {
		width: 48px;
		height: 48px;
	}

	.stat-value {
		font-size: 22px;
	}

	.dashboard-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.filters-bar {
		flex-direction: column;
		gap: 12px;
	}

	.filters-bar .input-field,
	.filters-bar .select-field,
	.filters-bar .btn-secondary {
		width: 100%;
		min-width: auto;
	}

	.btn-primary,
	.btn-secondary {
		width: 100%;
		justify-content: center;
	}

	.analytics-grid {
		grid-template-columns: 1fr;
	}

	.monthly-stats-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.stat-card-large {
		padding: 24px;
	}

	.stat-card-large h2 {
		font-size: 28px;
	}

	.month-selector {
		gap: 12px;
		padding: 6px 10px;
	}

	.month-display {
		min-width: 120px;
		font-size: 14px;
	}

	/* Table responsiveness - Card Layout */
	.data-table,
	.data-table tbody,
	.data-table tr,
	.data-table td {
		display: block;
		width: 100%;
	}

	.data-table thead {
		display: none;
	}

	.data-table tr {
		margin-bottom: 16px;
		background: var(--bg-secondary);
		border: 1px solid var(--border-color);
		border-radius: var(--radius-md);
		padding: 16px;
		box-shadow: var(--shadow-sm);
	}

	.data-table td {
		padding: 10px 0;
		border-bottom: 1px solid var(--bg-tertiary);
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 14px;
		text-align: right;
	}

	.data-table td:last-child {
		border-bottom: none;
		margin-top: 8px;
		justify-content: flex-end;
		padding-bottom: 0;
	}

	.data-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--text-secondary);
		text-align: left;
		margin-right: auto;
		/* Push content to right */
		padding-right: 16px;
	}

	/* Adjustments for specific columns */
	.data-table td[data-label="Actions"] {
		justify-content: flex-end;
	}

	/* Ensure long text doesn't break layout */
	.data-table td span {
		text-align: right;
	}

	/* Modal adjustments */
	.modal-content {
		width: 95%;
		max-width: 100%;
		margin: 10px;
	}

	.modal-header {
		padding: 20px;
	}

	.modal-header h3 {
		font-size: 18px;
	}

	.modal-body {
		padding: 20px;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.modal-footer {
		flex-direction: column-reverse;
		gap: 10px;
	}

	.modal-footer .btn-primary,
	.modal-footer .btn-secondary {
		width: 100%;
	}

	/* Card adjustments */
	.card-header {
		padding: 16px 20px;
	}

	.card-header h3 {
		font-size: 16px;
	}

	.card-body {
		padding: 20px;
	}

	/* Category items */
	.category-item {
		flex-wrap: wrap;
		gap: 8px;
	}

	.category-bar {
		width: 100%;
		margin: 8px 0;
	}

	.category-amount {
		width: 100%;
		text-align: right;
	}

	/* Expense items */
	.expense-item-mini {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.expense-amount {
		align-self: flex-end;
		font-size: 18px;
	}
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
	.main-content {
		padding: 70px 16px 16px 16px;
	}

	.page-header h2 {
		font-size: 20px;
	}

	.subtitle {
		font-size: 13px;
	}

	.stat-card {
		padding: 16px;
		gap: 16px;
	}

	.stat-icon {
		width: 40px;
		height: 40px;
	}

	.stat-label {
		font-size: 11px;
	}

	.stat-value {
		font-size: 20px;
	}

	.stat-change {
		font-size: 11px;
	}

	.stat-card-large {
		padding: 20px;
	}

	.stat-card-large h2 {
		font-size: 24px;
	}

	.stat-card-large h4 {
		font-size: 12px;
	}

	.card-header {
		padding: 14px 16px;
	}

	.card-body {
		padding: 16px;
	}

	.btn-primary,
	.btn-secondary {
		padding: 10px 20px;
		font-size: 13px;
	}

	.modal-content {
		width: 100%;
		max-height: 95vh;
		border-radius: var(--radius-lg);
	}

	.theme-toggle,
	.mobile-menu-toggle {
		width: 44px;
		height: 44px;
	}

	/* Compact table for very small screens */
	.data-table th,
	.data-table td {
		padding: 10px 8px;
		font-size: 12px;
	}

	.table-actions {
		flex-direction: column;
		gap: 6px;
	}

	.btn-edit,
	.btn-delete {
		width: 100%;
		padding: 8px 12px;
	}
}

/* ===================================
   Scrollbar Styling
   =================================== */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-tertiary);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
	text-align: center;
}

.mt-1 {
	margin-top: 8px;
}

.mt-2 {
	margin-top: 16px;
}

.mt-3 {
	margin-top: 24px;
}

.mt-4 {
	margin-top: 32px;
}

.mb-1 {
	margin-bottom: 8px;
}

.mb-2 {
	margin-bottom: 16px;
}

.mb-3 {
	margin-bottom: 24px;
}

.mb-4 {
	margin-bottom: 32px;
}

.hidden {
	display: none !important;
}

/* ===================================
   Print Styles
   =================================== */
@media print {

	.sidebar,
	.theme-toggle,
	.btn-primary,
	.btn-secondary,
	.filters-bar {
		display: none;
	}

	.main-content {
		margin-left: 0;
		max-width: 100%;
	}
}

/* ===================================
   Custom Time Picker
   =================================== */
.custom-time-picker {
	position: absolute;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
	padding: 16px;
	width: 280px;
	z-index: 2500;
	display: none;
	animation: fadeIn 0.15s ease;
}

.custom-time-picker.active {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.picker-header {
	text-align: center;
	font-weight: 600;
	color: var(--text-primary);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-color);
}

.picker-body {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 200px;
	color: var(--text-primary);
	font-weight: 700;
	font-size: 24px;
}

.picker-column {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 60px;
	overflow-y: auto;
	scroll-behavior: smooth;
	border-radius: var(--radius-md);
	background: var(--bg-tertiary);
	padding: 4px;
	/* Hide scrollbar */
	scrollbar-width: none;
}

.picker-column::-webkit-scrollbar {
	display: none;
}

.picker-item {
	padding: 8px 0;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	transition: all var(--transition-fast);
	flex-shrink: 0;
}

.picker-item:hover {
	background: var(--bg-primary);
	color: var(--text-primary);
}

.picker-item.selected {
	background: var(--primary-gradient);
	color: white;
	font-weight: 700;
	font-size: 18px;
}

.picker-footer {
	display: flex;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--border-color);
}

.picker-btn {
	padding: 8px 16px;
	border-radius: var(--radius-md);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all var(--transition-fast);
}

.picker-btn.secondary {
	background: transparent;
	color: var(--text-secondary);
}

.picker-btn.secondary:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

.picker-btn.primary {
	background: var(--primary-gradient);
	color: white;
}

.picker-btn.primary:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

/* ===================================
   Budget Card
   =================================== */
.budget-stats-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.budget-input-wrapper {
	display: flex;
	gap: 12px;
	align-items: center;
}

.budget-input-wrapper .input-field {
	flex: 2;
}

.budget-input-actions {
	display: flex;
	gap: 8px;
	flex: 1;
}

.budget-input-actions button {
	flex: 1;
}

@media (max-width: 600px) {
	.budget-input-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.budget-input-actions {
		width: 100%;
	}
}

.budget-stat-item {
	flex: 1;
	min-width: 120px;
	background: var(--bg-tertiary);
	padding: 16px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	text-align: center;
}

.budget-stat-item .label {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 8px;
	display: block;
	font-weight: 500;
}

.budget-stat-item h4 {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-primary);
	font-family: var(--font-display);
}

.budget-progress-container {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.budget-progress-bar {
	flex: 1;
	height: 12px;
	background: var(--bg-tertiary);
	border-radius: 100px;
	overflow: hidden;
}

.budget-progress-fill {
	height: 100%;
	background: var(--success-gradient);
	border-radius: 100px;
	width: 0%;
	transition: width 0.5s ease, background 0.3s ease;
}

.budget-percentage {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	min-width: 60px;
	text-align: right;
}

.budget-message {
	font-size: 13px;
	color: var(--text-secondary);
	text-align: center;
	margin-top: 8px;
}

.budget-over-limit .budget-progress-fill {
	background: var(--danger-color);
}

.budget-warning .budget-progress-fill {
	background: var(--warning-color);
}

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

.auth-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--bg-primary);
	background-image:
		radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
		radial-gradient(at 100% 0%, rgba(118, 75, 162, 0.15) 0px, transparent 50%),
		radial-gradient(at 100% 100%, rgba(67, 233, 123, 0.1) 0px, transparent 50%),
		radial-gradient(at 0% 100%, rgba(250, 112, 154, 0.1) 0px, transparent 50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5000;
	padding: 20px;
}

/* Auth Card Layout Update */
.auth-card {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-xl);
	padding: 0;
	/* Remove padding here, controlled by children */
	width: 100%;
	max-width: 900px;
	/* Wider for side-by-side */
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06),
		0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	animation: slideUp 0.5s ease;
	max-height: 90vh;
	overflow: hidden;
	/* Hide overflow for rounded corners */
	display: flex;
}

[data-theme="dark"] .auth-card {
	background: rgba(26, 32, 44, 0.95);
	border-color: rgba(255, 255, 255, 0.1);
}

.auth-layout {
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 600px;
}

/* Sidebar (Left) */
.auth-sidebar {
	width: 45%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	color: white;
	overflow: hidden;
}

/* Use pseudo-element for generic abstract background shapes instead of image */
.auth-sidebar::before {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.auth-sidebar::after {
	content: '';
	position: absolute;
	bottom: -50px;
	left: -50px;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.auth-sidebar-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 32px;
}

.auth-sidebar .auth-logo h1 {
	color: white;
	/* Solid white to contrast with gradient */
	background: none;
	-webkit-text-fill-color: white;
	font-size: 32px;
}

.sidebar-text h2 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 12px;
}

.sidebar-text p {
	font-size: 16px;
	opacity: 0.9;
	max-width: 280px;
	margin: 0 auto;
}

/* Main Content (Right) */
.auth-main {
	flex: 1;
	padding: 24px;
	/* Reduced from 30px */
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
	/* Custom Scrollbar */
	scrollbar-width: thin;
	scrollbar-color: var(--border-color) transparent;
}

.auth-main::-webkit-scrollbar {
	width: 6px;
}

.auth-main::-webkit-scrollbar-thumb {
	background-color: var(--border-color);
	border-radius: 3px;
}

.auth-main::-webkit-scrollbar-track {
	background: transparent;
}

.auth-header {
	text-align: center;
	margin-bottom: 12px;
	/* Reduced from 16px */
}

.auth-header h2 {
	font-size: 20px;
	/* Reduced from 22px */
	font-weight: 700;
	margin-bottom: 4px;
	/* Reduced from 6px */
	color: var(--text-primary);
}

.auth-header p {
	color: var(--text-secondary);
	font-size: 13px;
}

.auth-form {
	display: none;
	flex-direction: column;
	gap: 12px;
	/* Reduced from 14px */
	animation: fadeIn 0.3s ease;
}

/* Make inputs slightly more compact */
.auth-form .input-field {
	padding: 10px 12px;
	/* Reduced from default padding */
	font-size: 14px;
}

.auth-form label {
	font-size: 13px;
	margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.auth-card {
		max-width: 100%;
		margin: 0;
		border-radius: 0;
		height: 100vh;
		/* Full height on mobile */
		max-height: none;
		flex-direction: column;
	}

	.auth-layout {
		flex-direction: column;
		height: 100%;
	}

	.auth-sidebar {
		display: flex;
		/* Show as banner */
		width: 100%;
		flex: 0 0 auto;
		/* Don't grow, size to content */
		padding: 16px;
		min-height: auto;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	}

	.auth-sidebar::before,
	.auth-sidebar::after {
		display: none;
		/* simple background on mobile */
	}

	.auth-sidebar-content {
		flex-direction: row;
		gap: 12px;
	}

	.sidebar-text {
		display: none;
		/* Hide welcome text on mobile to save space */
	}

	.auth-sidebar .auth-logo h1 {
		font-size: 20px;
		margin: 0;
	}

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

	.auth-main {
		width: 100%;
		padding: 20px;
		justify-content: flex-start;
		/* Start from top on mobile to avoid centering issues */
		overflow-y: auto;
	}
}

.auth-form.active {
	display: flex;
}

.auth-form .form-group {
	width: 100%;
}

.auth-form .input-field {
	width: 100%;
}

.full-width {
	width: 100%;
	justify-content: center;
	padding: 14px;
	font-size: 16px;
	border-radius: var(--radius-md);
}

/* Compact social elements */
.auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--text-tertiary);
	font-size: 11px;
	/* Smaller */
	font-weight: 500;
	margin: 6px 0;
	/* Reduced margins */
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
	padding: 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.social-login {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.btn-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 24px;
	width: 100%;
	height: 54px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	color: var(--text-primary);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: all var(--transition-fast);
	box-shadow: var(--shadow-sm);
}

.btn-social:hover {
	background: var(--bg-tertiary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
	border-color: var(--text-tertiary);
}

.auth-footer {
	text-align: center;
	margin-top: 16px;
	font-size: 14px;
	color: var(--text-secondary);
}

.auth-footer a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--transition-fast);
}

.auth-footer a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.auth-card {
		padding: 24px;
	}

	.social-login {
		grid-template-columns: 1fr;
	}
}

/* Sidebar Footer */
.sidebar-footer {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.user-profile {
	display: flex;
	align-items: center;
	gap: 12px;
}

.user-avatar-container {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--primary-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-size: 18px;
	flex-shrink: 0;
}

.user-info {
	overflow: hidden;
}

.user-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.auth-error-message {
	color: var(--danger-color);
	font-size: 13px;
	margin-bottom: 12px;
	text-align: center;
	min-height: 20px;
	display: none;
	background: rgba(245, 87, 108, 0.1);
	padding: 8px;
	border-radius: var(--radius-md);
	border: 1px solid var(--danger-color);
}

.auth-error-message.visible {
	display: block;
	animation: shake 0.5s ease-in-out;
}

@keyframes shake {

	0%,
	100% {
		transform: translateX(0);
	}

	10%,
	30%,
	50%,
	70%,
	90% {
		transform: translateX(-4px);
	}

	20%,
	40%,
	60%,
	80% {
		transform: translateX(4px);
	}
}

.logout-link {
	background: none;
	border: none;
	color: var(--text-tertiary);
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	transition: color var(--transition-fast);
}

.logout-link:hover {
	color: var(--danger-color);
	text-decoration: underline;
}

/* Password Toggle */
.password-wrapper {
	position: relative;
	width: 100%;
}

.password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-tertiary);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color var(--transition-fast);
}

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

/* OAuth Simulation Styles */
.oauth-view {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #f0f2f5;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 6000;
}

.oauth-view.hidden {
	display: none !important;
}

.oauth-view.dark-mode-sim {
	background: #0d1117;
	/* GitHub Dark */
}

/* Base Card */
.oauth-card {
	background: white;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 450px;
	padding: 24px;
	text-align: center;
	position: relative;
	border: 1px solid #dadce0;
}

.oauth-view.dark-mode-sim .oauth-card {
	background: #161b22;
	border-color: #30363d;
	color: #c9d1d9;
}

/* Google Style */
.google-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.google-logo {
	margin-bottom: 12px;
}

.google-header h1 {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 8px;
	font-family: 'Roboto', sans-serif;
	color: #202124;
}

.google-header p {
	font-size: 16px;
	color: #202124;
	margin-bottom: 24px;
}

.google-account-item {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	margin-bottom: 16px;
	transition: background 0.2s;
}

.google-account-item:hover {
	background: #f1f3f4;
}

.google-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: purple;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	font-weight: bold;
}

.google-info {
	text-align: left;
}

.google-name {
	font-size: 14px;
	font-weight: 500;
	color: #3c4043;
}

.google-email {
	font-size: 12px;
	color: #5f6368;
}

/* GitHub Style */
.github-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.github-logo {
	margin-bottom: 20px;
	fill: #333;
}

.oauth-view.dark-mode-sim .github-logo {
	fill: white;
}

.github-header h1 {
	font-size: 24px;
	font-weight: 300;
	margin-bottom: 16px;
}

.github-btn {
	background-color: #2da44e;
	color: white;
	border: 1px solid rgba(27, 31, 35, 0.15);
	border-radius: 6px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 16px;
}

.github-btn:hover {
	background-color: #2c974b;
}

/* Loader */
.oauth-loader {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 20px auto;
}

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

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

/* OAuth Provider Headers */
.oauth-provider-header {
	text-align: center;
	margin-bottom: 32px;
}

.oauth-provider-header svg {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	color: #24292f;
}

.oauth-view.dark-mode-sim .oauth-provider-header svg {
	color: #c9d1d9;
}

.oauth-provider-header h2 {
	font-size: 24px;
	font-weight: 300;
	margin-bottom: 8px;
	color: #24292f;
}

.oauth-view.dark-mode-sim .oauth-provider-header h2 {
	color: #c9d1d9;
}

.oauth-provider-header p {
	font-size: 14px;
	color: #57606a;
}

.oauth-view.dark-mode-sim .oauth-provider-header p {
	color: #848d97;
}

/* OAuth Form */
.oauth-form {
	width: 100%;
}

.oauth-form .form-group {
	margin-bottom: 16px;
	text-align: left;
}

.oauth-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #24292f;
}

.oauth-view.dark-mode-sim .oauth-form label {
	color: #c9d1d9;
}

.oauth-form .input-field {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	background: white;
	color: #24292f;
	transition: all 0.2s ease;
}

.oauth-view.dark-mode-sim .oauth-form .input-field {
	background: #0d1117;
	border-color: #30363d;
	color: #c9d1d9;
}

.oauth-form .input-field:focus {
	outline: none;
	border-color: #0969da;
	box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.oauth-view.dark-mode-sim .oauth-form .input-field:focus {
	border-color: #58a6ff;
	box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

/* OAuth Buttons */
.oauth-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.oauth-buttons .btn-primary {
	width: 100%;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.oauth-buttons .btn-secondary {
	width: 100%;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	background: transparent;
	color: #0969da;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.oauth-view.dark-mode-sim .oauth-buttons .btn-secondary {
	color: #58a6ff;
	border-color: #30363d;
}

.oauth-buttons .btn-secondary:hover {
	background: var(--bg-tertiary);
	border-color: #0969da;
}

.oauth-view.dark-mode-sim .oauth-buttons .btn-secondary:hover {
	background: #161b22;
	border-color: #58a6ff;
}

/* OAuth Footer */
.oauth-footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #d0d7de;
	text-align: center;
}

.oauth-view.dark-mode-sim .oauth-footer {
	border-top-color: #30363d;
}

.oauth-footer p {
	font-size: 12px;
	color: #57606a;
	margin: 4px 0;
}

.oauth-view.dark-mode-sim .oauth-footer p {
	color: #848d97;
}

.oauth-footer small {
	color: #6e7781;
}

.oauth-view.dark-mode-sim .oauth-footer small {
	color: #7d8590;
}

/* ===================================
   New UI/UX Enhancements
   =================================== */

/* Notifications / Toasts */
#notification-container {
	position: fixed;
	bottom: 30px;
	right: 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: var(--z-index-toast);
	pointer-events: none;
}

.toast {
	min-width: 300px;
	max-width: 450px;
	padding: 16px 20px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-xl);
	display: flex;
	align-items: center;
	gap: 12px;
	pointer-events: auto;
	animation: slideInRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	border-left: 4px solid var(--primary-color);
	transition: all 0.3s ease;
}

.toast.removing {
	animation: slideOutRight 0.3s ease forwards;
}

.toast-success {
	border-left-color: var(--success-color);
}

.toast-error {
	border-left-color: var(--danger-color);
}

.toast-warning {
	border-left-color: var(--warning-color);
}

.toast-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.toast-content {
	flex: 1;
}

.toast-title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 2px;
}

.toast-message {
	font-size: 13px;
	color: var(--text-secondary);
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideOutRight {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

/* Tooltips */
[data-tooltip] {
	position: relative;
	cursor: help;
}

[data-tooltip]::before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translate(-50%, -8px);
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.85);
	color: white;
	font-size: 12px;
	border-radius: 6px;
	white-space: wrap;
	width: max-content;
	max-width: 200px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	z-index: var(--z-index-tooltip);
	pointer-events: none;
	box-shadow: var(--shadow-md);
	line-height: 1.4;
	font-weight: 500;
}

[data-tooltip]:hover::before {
	opacity: 1;
	visibility: visible;
}

/* Empty States with CTA */
.empty-state {
	padding: 48px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--bg-tertiary);
	border-radius: var(--radius-lg);
	border: 2px dashed var(--border-color);
	margin: 20px 0;
}

.empty-state svg {
	margin-bottom: 20px;
	color: var(--text-tertiary);
	opacity: 0.5;
}

.empty-state h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.empty-state p {
	color: var(--text-secondary);
	margin-bottom: 24px;
	max-width: 400px;
	font-size: 15px;
}

/* Form Validation Styles */
.form-group.error .input-field,
.form-group.error .select-field {
	border-color: var(--danger-color);
	background-color: rgba(245, 87, 108, 0.05);
}

.error-text {
	color: var(--danger-color);
	font-size: 12px;
	margin-top: 4px;
	display: none;
	font-weight: 500;
}

.form-group.error .error-text {
	display: block;
	animation: fadeIn 0.3s ease;
}

/* Mobile Data Table Responsive Cards */
@media (max-width: 768px) {

	.data-table,
	.data-table thead,
	.data-table tbody,
	.data-table th,
	.data-table td,
	.data-table tr {
		display: block;
	}

	.data-table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.data-table tr.mobile-card-row {
		background: var(--bg-secondary);
		border: 1px solid var(--border-color);
		border-radius: var(--radius-md);
		margin-bottom: 16px;
		padding: 12px;
		box-shadow: var(--shadow-sm);
	}

	.data-table td {
		border: none;
		position: relative;
		padding-left: 50% !important;
		text-align: right !important;
		padding-bottom: 8px !important;
		min-height: 32px;
	}

	.data-table td::before {
		content: attr(data-label);
		position: absolute;
		left: 0;
		width: 45%;
		padding-left: 12px;
		font-weight: 600;
		text-align: left;
		color: var(--text-secondary);
		font-size: 13px;
	}

	.data-table td[data-label="Actions"] {
		padding-left: 12px !important;
		text-align: center !important;
		border-top: 1px solid var(--border-color);
		margin-top: 8px;
		padding-top: 12px !important;
	}

	.data-table td[data-label="Actions"]::before {
		display: none;
	}

	.table-actions {
		justify-content: center;
	}
}

/* Accessibility: Keyboard Focus */
:focus-visible {
	outline: 3px solid var(--primary-color);
	outline-offset: 2px;
}

/* Button Hierarchy */
.btn-primary {
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.btn-secondary {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
}

.btn-secondary:hover {
	background: var(--bg-tertiary);
	border-color: var(--text-tertiary);
	color: var(--text-primary);
}

/* Budget Card Mobile Fix */
@media (max-width: 600px) {
	.budget-stats-row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.budget-stat-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 16px;
	}

	.budget-stat-item .label {
		margin-bottom: 0;
	}
}

/* Keyboard Shortcut Styles */
kbd {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	box-shadow: 0 2px 0 var(--border-color);
	color: var(--text-primary);
	display: inline-block;
	font-family: inherit;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	white-space: nowrap;
}

/* Accessibility - Focus rings */
:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 4px;
}

/* Button Standard Styles */
.btn-primary {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px;
	border-radius: var(--radius-lg);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px;
	border-radius: var(--radius-lg);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	gap: 10px;
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}