:root {
	--bg: #f1f5f9;
	--card: #ffffff;
	--text: #0f172a;
	--primary: #2563eb;
	--border: #e2e8f0;
	--header-bg: #37517e;
	--bg-color: #f4f6f8;
	--text-color: #212529;
	--border-color: #dee2e6;
}

body.dark {
	--bg: #020617;
	--card: #0f172a;
	--text: #e5e7eb;
	--border: #1e293b;
}

* {
	box-sizing: border-box;
	font-family: "Inter", Arial, sans-serif;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
}

body {
	min-height: 100vh;
	background-color: var(--bg) !important;
	color: var(--text) !important;
	transition:
		background-color 0.3s,
		color 0.3s;
}

.main-wrapper {
	min-height: calc(90vh - 72px);
	display: flex;
	justify-content: center;
	align-items: center;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
	color: #fff;
}

.app-header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 64px;
	background-color: var(--header-bg);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
}

.password-box {
	display: flex;
	gap: 8px;
	margin: 16px 0;
}

.password-box input {
	flex: 1;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.primary-btn {
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	cursor: pointer;
}

.generate-btn {
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

/*
.options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 8px;
	margin: 16px 0;
}
*/

.options {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

@media (max-width: 480px) {
	.options {
		grid-template-columns: 1fr;
	}
}

.options label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.slider-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* .slider-container {
	margin: 16px 0;
} */

/* .slider-container,
.options {
	display: flex;
	flex-direction: column;
	gap: 8px;
} */

.slider-container label {
	font-weight: 500;
}

.slider-container input[type="range"] {
	margin-left: 0;
}

.strength-container {
	margin-bottom: 12px;
}

.options > span {
	font-weight: 500;
	margin-bottom: 4px;
}

.options label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 0;
}

.strength-bar {
	height: 8px;
	background: var(--border);
	border-radius: 6px;
	overflow: hidden;
}

.strength-bar div {
	height: 100%;
	width: 0%;
	transition: width 0.3s;
}

.history {
	margin-top: 20px;
}

.history-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.history ul {
	list-style: none;
	padding: 0;
	max-height: 120px;
	overflow-y: auto;
}

.history li {
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
}

.link-btn {
	background: none;
	border: none;
	color: var(--primary);
	cursor: pointer;
}

.icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text);
	padding: 6px;
	border-radius: 6px;
}

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

.primary-btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	opacity: 0.7;
}

/* === Bootstrap Dark Mode Override === */
body.dark {
	color: #e5e7eb;
}

body.dark .accordion,
body.dark .accordion-button,
body.dark .accordion-body,
body.dark .list-group-item,
body.dark .btn,
body.dark .toast {
	background-color: #0f172a;
	color: #e5e7eb;
}

body.dark .accordion-button:not(.collapsed) {
	background-color: #020617;
	color: #e5e7eb;
}

body.dark .accordion-button::after {
	filter: invert(1);
}

body.dark .list-group-item {
	border-color: #1e293b;
}

body.dark .btn-outline-danger {
	color: #f87171;
	border-color: #f87171;
}

body.dark .btn-outline-danger:hover {
	background-color: #7f1d1d;
	color: #fff;
}

body.dark .toast {
	border: none;
}

.action-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.danger-btn {
	background-color: #dc2626;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.danger-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

body.dark {
	--bg-color: #0f172a;
	--text-color: #e5e7eb;
	--header-bg: #020617;
	--border-color: #1e293b;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	padding-top: 72px; /* espaço para header fixo */
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.brand-icon {
	/* font-size: 1.4rem; */
	color: #dc3545;
}

.brand-name {
	font-size: 1rem;
}

.header-container {
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

#passwordIcon {
	font-size: 1.1rem;
}

@media (min-width: 576px) {
	.container {
		width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		width: 1140px;
	}
}

@media (min-width: 1400px) {
	.container {
		width: 1320px;
	}
}
