/* Basic, clean styling */
:root {
	--bg: #0b0f19;
	--card: #121826;
	--muted: #9aa4b2;
	--text: #e5e7eb;
	--accent: #6366f1;
	--accent-2: #22d3ee;
	--danger: #ef4444;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: linear-gradient(120deg, #0b0f19 0%, #0d1222 100%);
	color: var(--text);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
}

.header h1 { margin: 0 0 8px; }
.header p { margin: 0 0 24px; color: var(--muted); }

.header .lang-switcher {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lang-buttons {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 999px;
	padding: 4px 8px;
}

.lang-btn {
	background: transparent;
	border: none;
	color: var(--text);
	padding: 6px 10px;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.2s ease;
}

.lang-btn:hover {
	background: rgba(255,255,255,0.08);
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	color: white;
	box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}

.lang-sep {
	color: var(--muted);
	opacity: 0.7;
}

.card {
	background: var(--card);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.field { margin-bottom: 14px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
	width: 100%;
	padding: 10px 12px;
	background: #0e1422;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	color: var(--text);
}
textarea { resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Notification System */
#notification-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	max-width: 400px;
}

.notification {
	background: var(--card);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
	animation: slideIn 0.3s ease;
	position: relative;
	padding-right: 40px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.notification.success {
	border-left: 4px solid #10b981;
	background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, var(--card) 100%);
}

.notification.error {
	border-left: 4px solid var(--danger);
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, var(--card) 100%);
}

.notification.warning {
	border-left: 4px solid #f59e0b;
	background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, var(--card) 100%);
}

.notification.info {
	border-left: 4px solid var(--accent-2);
	background: linear-gradient(90deg, rgba(34, 211, 238, 0.1) 0%, var(--card) 100%);
}

.notification-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.notification.success .notification-icon { color: #10b981; }
.notification.error .notification-icon { color: var(--danger); }
.notification.warning .notification-icon { color: #f59e0b; }
.notification.info .notification-icon { color: var(--accent-2); }

.notification-message {
	flex: 1;
	color: var(--text);
	font-size: 14px;
	line-height: 1.4;
}

.notification-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	color: var(--muted);
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s;
}

.notification-close:hover {
	background: rgba(255,255,255,0.1);
	color: var(--text);
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

.notification.fade-out {
	animation: fadeOut 0.3s ease forwards;
}

/* Balance Display */
.input-with-action {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.input-with-action input {
	flex: 1;
}

.check-balance-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 8px;
	color: white;
	cursor: pointer;
	font-size: 18px;
	padding: 0 16px;
	transition: all 0.3s;
	min-width: 48px;
}

.check-balance-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.check-balance-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.balance-display {
	margin-top: 8px;
	padding: 8px 12px;
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
	border: 1px solid rgba(16, 185, 129, 0.3);
	border-radius: 6px;
	color: #10b981;
	font-size: 14px;
	font-weight: 600;
	animation: fadeIn 0.3s ease;
}

#balanceAmount {
	color: #10b981;
	font-size: 16px;
	font-weight: bold;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.actions { display: flex; gap: 10px; }
button {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	border: none;
	color: white;
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}
button.secondary {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.2);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.advanced { margin-top: 6px; }
.advanced summary { cursor: pointer; color: var(--muted); }

.results-header { display: flex; align-items: center; justify-content: space-between; }
.results { display: grid; grid-template-columns: 1fr; gap: 10px; }
.result {
	background: #0d1320;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 8px;
	padding: 12px;
}
.result .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.result pre { white-space: pre-wrap; word-break: break-word; background: transparent; border: none; color: var(--text); }
.bad { color: var(--danger); }
.ok { color: #22c55e; }

.table-wrap { 
	margin-top: 12px; 
	overflow: auto; 
	width: 100%;
	max-width: 100%;
}
.table { 
	width: 100%; 
	min-width: 600px;
	border-collapse: collapse; 
	background: var(--card);
	border-radius: 8px;
	overflow: hidden;
}
.table th, .table td { 
	border-bottom: 1px solid rgba(255,255,255,0.06); 
	padding: 12px 16px; 
	text-align: left; 
}
.table th { 
	color: var(--muted); 
	font-weight: 600; 
	background: rgba(255,255,255,0.02);
	font-size: 14px;
}
.table td {
	font-size: 14px;
}
.table a { 
	color: var(--accent-2); 
	text-decoration: underline; 
	font-weight: 500;
}
.table a:hover {
	color: var(--accent);
}

/* Status Badges */
.status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-success {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-error {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Pagination Controls */
.pagination-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 16px 0;
	margin: 12px 0;
}

.pagination-btn {
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
	border: none;
	color: white;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.3s ease;
	min-width: 120px;
}

.pagination-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pagination-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	background: var(--muted);
}

.pagination-info {
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
	padding: 8px 16px;
	background: rgba(255,255,255,0.05);
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.1);
	min-width: 100px;
	text-align: center;
}

.page-size-control {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	font-size: 14px;
}

.page-size-control label {
	font-weight: 500;
	color: var(--muted);
	margin: 0;
}

.page-size-select {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 6px;
	color: var(--text);
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 70px;
}

.page-size-select:hover {
	border-color: rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.08);
}

.page-size-select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

@media (max-width: 720px) {
	.grid-2 { grid-template-columns: 1fr; }
	.pagination-controls {
		flex-wrap: wrap;
		gap: 8px;
		justify-content: center;
	}
	.pagination-btn {
		min-width: 100px;
		font-size: 12px;
		padding: 6px 12px;
	}
	.pagination-info {
		min-width: 80px;
		font-size: 12px;
		padding: 6px 12px;
	}
	.page-size-control {
		font-size: 12px;
		gap: 6px;
	}
	.page-size-select {
		font-size: 12px;
		padding: 4px 8px;
		min-width: 60px;
	}
}


