/* Website Manager - Frontend Styles */

.wm-websites-wrapper {
	max-width: 900px;
	margin: 0 auto;
}

/* Toolbar */
.wm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}

.wm-website-selector {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.wm-website-selector label {
	font-weight: 600;
	font-size: 15px;
}

.wm-select-website {
	min-width: 260px;
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.wm-logout-btn {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.wm-logout-btn:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.wm-select-prompt,
.wm-no-websites,
.wm-error,
.wm-placeholder {
	padding: 20px;
	text-align: center;
	color: #666;
	background: #f7f7f7;
	border-radius: 8px;
}

/* ========== LOGIN PANEL ========== */
.wm-login-panel {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 320px;
	padding: 40px 20px;
}

.wm-login-card {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	padding: 36px 32px;
	text-align: center;
}

.wm-login-icon {
	margin-bottom: 16px;
	color: #64748b;
}

.wm-login-title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #1e293b;
}

.wm-login-message {
	margin: 0 0 24px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
}

.wm-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wm-login-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wm-login-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.wm-login-btn {
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #2563eb;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s;
}

.wm-login-btn:hover {
	background: #1d4ed8;
}

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

.wm-login-error {
	margin: 0;
	padding: 10px;
	font-size: 13px;
	color: #b91c1c;
	background: #fef2f2;
	border-radius: 6px;
}

/* ========== CARD ========== */
.wm-website-card {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.wm-website-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-bottom: 1px solid #e5e5e5;
}

.wm-website-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
}

/* Status badges */
.wm-status-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: capitalize;
}

.wm-status-active {
	background: #dcfce7;
	color: #166534;
}

.wm-status-under_development {
	background: #fef3c7;
	color: #92400e;
}

.wm-status-dormant {
	background: #f1f5f9;
	color: #475569;
}

.wm-status-none {
	background: #f1f5f9;
	color: #94a3b8;
}

/* Body sections */
.wm-website-body {
	padding: 8px 0;
}

.wm-section {
	padding: 18px 24px;
	border-bottom: 1px solid #f0f0f0;
}

.wm-section:last-child {
	border-bottom: none;
}

.wm-section-title {
	margin: 0 0 14px;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.wm-fields-list {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 600px) {
	.wm-fields-list {
		grid-template-columns: 1fr 1fr;
		gap: 12px 28px;
	}
}

.wm-field-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wm-field-label {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0;
}

.wm-field-value {
	margin: 0;
	font-size: 15px;
	color: #1e293b;
	word-break: break-word;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wm-field-value a {
	color: #2563eb;
	text-decoration: none;
}

.wm-field-value a:hover {
	text-decoration: underline;
}

.wm-password-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.wm-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.wm-copy-btn:hover {
	color: #2563eb;
	background: #eff6ff;
}

.wm-copy-btn.copied {
	color: #16a34a;
}

/* Loading state */
.wm-website-details-container.is-loading {
	opacity: 0.5;
	pointer-events: none;
}
