/* FBI.tools - Minimalist Elegant Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
	/* Dark Theme (Enforced) */
	--bg-primary: #0f0f0f;
	--bg-secondary: #1a1a1a;
	--bg-tertiary: #242424;
	--text-primary: #f0f0f0;
	--text-secondary: #a0a0a0;
	--text-tertiary: #707070;
	--accent: #4d9eff;
	--accent-hover: #6eb0ff;
	--border: #2a2a2a;
	--border-focus: #4d9eff;
	--success: #00c851;
	--error: #ff3547;
	--shadow: rgba(0, 0, 0, 0.3);
	--shadow-lg: rgba(0, 0, 0, 0.5);

	/* Transitions */
	--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.25rem;
}

h4 {
	font-size: 1.125rem;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--accent-hover);
}

/* Navigation */
.nav {
	background: rgba(26, 26, 26, 0.95);
	border-bottom: 1px solid var(--border);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}

.brand {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.02em;
}

.brand:hover {
	color: var(--accent);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-link {
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 6px;
	transition: var(--transition);
}

.nav-link:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

.nav-link.primary {
	background: var(--accent);
	color: white;
}

.nav-link.primary:hover {
	background: var(--accent-hover);
	color: white;
}

/* Container */
.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 24px;
	flex: 1;
	width: 100%;
}

/* Hero Section */
.hero {
	max-width: 720px;
	margin: 80px auto 60px;
	text-align: center;
}

.hero h1 {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero p {
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin-bottom: 40px;
}

/* Card */
.card {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	transition: var(--transition);
	box-shadow: 0 1px 3px var(--shadow);
}

.card:hover {
	box-shadow: 0 4px 12px var(--shadow-lg);
	border-color: var(--border-focus);
}

.card-header {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.card-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
}

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

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--text-primary);
	background: var(--bg-primary);
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: var(--transition);
	outline: none;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--border-focus);
	box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

textarea {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.875rem;
	line-height: 1.6;
	resize: vertical;
	min-height: 200px;
}

select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text-primary);
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.btn:hover {
	background: var(--bg-primary);
	border-color: var(--text-tertiary);
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}

.btn-primary:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: white;
}

.btn-danger {
	color: var(--error);
	border-color: rgba(255, 53, 71, 0.2);
}

.btn-danger:hover {
	background: rgba(255, 53, 71, 0.1);
	border-color: var(--error);
}

.btn-sm {
	padding: 6px 12px;
	font-size: 0.875rem;
}

.btn-lg {
	padding: 14px 28px;
	font-size: 1rem;
}

.btn-block {
	width: 100%;
}

/* Grid */
.grid {
	display: grid;
	gap: 24px;
}

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

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

.grid-hero {
	grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 768px) {

	.grid-2,
	.grid-3,
	.grid-hero {
		grid-template-columns: 1fr;
	}
}

/* List */
.list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.list-item {
	padding: 14px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: var(--transition);
}

.list-item:hover {
	background: var(--bg-secondary);
	border-color: var(--accent);
	transform: translateX(4px);
}

.list-item-content a {
	font-weight: 500;
	color: var(--text-primary);
}

.list-item-meta {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-top: 4px;
}

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

/* Badge */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 6px;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	border: 1px solid var(--border);
}

.badge-primary {
	background: rgba(0, 102, 255, 0.1);
	color: var(--accent);
	border-color: rgba(0, 102, 255, 0.2);
}

.badge-success {
	background: rgba(0, 200, 81, 0.1);
	color: var(--success);
	border-color: rgba(0, 200, 81, 0.2);
}

/* Code Display */
.code-container {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border);
}

.code-info {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

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

pre {
	margin: 0;
	padding: 20px;
	overflow-x: auto;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.875rem;
	line-height: 1.6;
	background: var(--bg-primary);
}

code {
	font-family: 'JetBrains Mono', monospace;
}

/* Meta Info */
.meta {
	font-size: 0.875rem;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Footer */
.footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border);
	padding: 32px 24px;
	margin-top: auto;
}

.footer-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-links {
	display: flex;
	gap: 24px;
}

.footer-link {
	color: var(--text-secondary);
	font-size: 0.875rem;
	transition: var(--transition);
}

.footer-link:hover {
	color: var(--text-primary);
}

.footer-text {
	color: var(--text-tertiary);
	font-size: 0.875rem;
}

/* Utilities */
.text-muted {
	color: var(--text-secondary);
}

.text-center {
	text-align: center;
}

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

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

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

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

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

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

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

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

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

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

.fade-in {
	animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2rem;
	}

	.hero p {
		font-size: 1rem;
	}

	.nav-container {
		padding: 0 16px;
	}

	.container {
		padding: 24px 16px;
	}

	.footer-container {
		flex-direction: column;
		text-align: center;
	}
}

/* Prism Override for Code */
pre[class*="language-"] {
	margin: 0;
	border-radius: 0;
	background: var(--bg-primary) !important;
}

code[class*="language-"] {
	background: transparent !important;
	font-family: 'JetBrains Mono', monospace !important;
}

/* Checkbox & Radio */
input[type="checkbox"] {
	width: auto;
	cursor: pointer;
	accent-color: var(--accent);
}

/* Icons */
.icon {
	width: 1.5rem;
	height: 1.5rem;
	display: inline-block;
	vertical-align: middle;
}

.icon-sm {
	width: 1.25rem;
	height: 1.25rem;
}

.card-title .icon {
    margin-right: 0.5rem;
    color: var(--accent);
}

.card h3 .icon {
    margin-right: 0.5rem;
    color: var(--accent);
    width: 1.75rem;
    height: 1.75rem;
}