/* Tabs */
.wow-tabs__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.wow-tabs__header {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--wow-bg-card);
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius-lg);
}

.wow-tabs__button {
	padding: 10px 18px;
	border-radius: var(--wow-radius);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wow-text-muted);
	transition: color var(--wow-transition), background var(--wow-transition);
}

.wow-tabs__button:hover {
	color: var(--wow-text);
	background: rgba(255, 255, 255, 0.05);
}

.wow-tabs__button--active {
	color: #fff;
	background: var(--wow-accent);
}

.wow-tabs__button--active:hover {
	background: var(--wow-accent-hover);
}

.wow-tabs__panel {
	display: none;
	animation: wow-fade-in 0.25s ease;
}

.wow-tabs__panel--active {
	display: block;
}

@keyframes wow-fade-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Search */
.wow-search {
	position: relative;
	flex: 1;
	min-width: 160px;
	max-width: 240px;
}

.wow-search__input {
	width: 100%;
	padding: 10px 14px 10px 36px;
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius);
	background: var(--wow-bg-card);
	color: var(--wow-text);
	font-size: 0.875rem;
	outline: none;
	transition: border-color var(--wow-transition), box-shadow var(--wow-transition);
}

.wow-search__input::placeholder {
	color: var(--wow-text-dim);
}

.wow-search__input:focus {
	border-color: var(--wow-accent);
	box-shadow: 0 0 0 3px var(--wow-accent-muted);
}

.wow-search__icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--wow-text-dim);
	pointer-events: none;
}

/* Cards */
.wow-panel {
	padding: 20px;
	background: var(--wow-bg-card);
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius-lg);
	box-shadow: var(--wow-shadow);
	backdrop-filter: blur(8px);
}

.wow-panel__title {
	margin-bottom: 16px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wow-text-dim);
}

.wow-card-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wow-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius);
	transition: background var(--wow-transition), border-color var(--wow-transition), transform var(--wow-transition);
}

.wow-card:hover {
	background: var(--wow-bg-card-hover);
	border-color: rgba(21, 166, 214, 0.3);
}

.wow-card__label {
	flex: 1;
	min-width: 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wow-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wow-card__actions {
	flex-shrink: 0;
}

/* Buttons */
.wow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: var(--wow-radius);
	font-size: 0.875rem;
	font-weight: 600;
	transition: background var(--wow-transition), color var(--wow-transition), box-shadow var(--wow-transition);
}

.wow-btn--primary {
	background: var(--wow-accent);
	color: #fff;
}

.wow-btn--primary:hover {
	background: var(--wow-accent-hover);
}

.wow-btn--icon {
	width: 36px;
	height: 36px;
	padding: 0;
	background: var(--wow-accent-muted);
	color: var(--wow-accent-hover);
	border: 1px solid transparent;
}

.wow-btn--icon:hover {
	background: var(--wow-accent);
	color: #fff;
}

.wow-btn--icon svg {
	width: 18px;
	height: 18px;
}

.wow-btn--icon.wow-btn--copied {
	background: var(--wow-success);
	color: #fff;
}

/* Notes accordion */
.wow-note {
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius);
	background: rgba(255, 255, 255, 0.03);
	overflow: hidden;
	transition: border-color var(--wow-transition);
}

.wow-note:hover {
	border-color: rgba(21, 166, 214, 0.3);
}

.wow-note summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.wow-note summary::-webkit-details-marker {
	display: none;
}

.wow-note summary::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--wow-text-muted);
	border-bottom: 2px solid var(--wow-text-muted);
	transform: rotate(45deg);
	transition: transform var(--wow-transition);
	flex-shrink: 0;
	margin-left: 12px;
}

.wow-note[open] summary::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.wow-note__content {
	padding: 0 16px 16px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wow-text-muted);
	border-top: 1px solid var(--wow-border);
}

.wow-note__content p {
	margin: 12px 0 0;
	white-space: pre-wrap;
	word-break: break-word;
}

/* Empty state */
.wow-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px;
	text-align: center;
}

.wow-empty__icon {
	font-size: 2.5rem;
	opacity: 0.5;
}

.wow-empty__text {
	font-size: 0.9375rem;
	color: var(--wow-text-muted);
}

.wow-empty__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wow-accent-hover);
}

.wow-empty__link:hover {
	text-decoration: underline;
}

/* Toast */
.wow-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(80px);
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: rgba(11, 34, 57, 0.95);
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius-lg);
	box-shadow: var(--wow-shadow);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wow-text);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease;
	backdrop-filter: blur(12px);
}

.wow-toast--visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.wow-toast__icon {
	display: flex;
	color: var(--wow-success);
}

.wow-card--hidden,
.wow-note.wow-card--hidden {
	display: none;
}

/* Page header */
.wow-page-header {
	margin-bottom: 24px;
	text-align: center;
}

.wow-page-header__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wow-text);
}

.wow-page-header__subtitle {
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--wow-text-muted);
}

/* Form inputs */
.wow-input,
.wow-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wow-border);
	border-radius: var(--wow-radius);
	background: rgba(0, 0, 0, 0.2);
	color: var(--wow-text);
	font-size: 0.875rem;
	outline: none;
	transition: border-color var(--wow-transition), box-shadow var(--wow-transition);
}

.wow-input:focus,
.wow-textarea:focus {
	border-color: var(--wow-accent);
	box-shadow: 0 0 0 3px var(--wow-accent-muted);
}

.wow-input::placeholder,
.wow-textarea::placeholder {
	color: var(--wow-text-dim);
}

.wow-textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

.wow-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.wow-field--grow {
	flex: 1;
}

.wow-field__label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wow-text-dim);
}

@media (max-width: 576px) {
	.wow-tabs__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.wow-search {
		max-width: none;
	}

	.wow-tabs__header {
		width: 100%;
		justify-content: stretch;
	}

	.wow-tabs__button {
		flex: 1;
		padding: 10px 8px;
		font-size: 0.8125rem;
	}
}
