/* ================================================================
   Healthcheck IT - Consolidated Stylesheet
   ================================================================ */

/* ================================================================
   CSS Custom Properties - Teal Design System
   ================================================================ */
:root {
	/* Primary colors - Teal-based */
	--color-primary: #2aa5a1;
	--color-primary-hover: #238f8b;
	--color-primary-light: #e0f5f4;

	/* Background */
	--color-bg-cream: #faf8f5;
	--color-bg-light: #f8f9fa;
	--color-bg-white: #ffffff;

	/* Text */
	--color-text-dark: #1a1a1a;
	--color-text-medium: #333333;
	--color-text-gray: #666666;
	--color-text-muted: #999999;

	/* Borders */
	--color-border-light: #eeeeee;
	--color-border: #dddddd;
	--color-border-dark: #cccccc;

	/* Semantic colors */
	--color-success: #28a745;
	--color-success-bg: #d4edda;
	--color-success-border: #c3e6cb;
	--color-danger: #dc3545;
	--color-danger-bg: #f8d7da;
	--color-danger-border: #f5c6cb;
	--color-warning: #ffc107;
	--color-warning-bg: #fff3cd;
	--color-warning-border: #ffeeba;
	--color-info: #17a2b8;
	--color-info-bg: #d1ecf1;
	--color-info-border: #bee5eb;

	/* Spacing */
	--space-xs: 5px;
	--space-sm: 10px;
	--space-md: 15px;
	--space-lg: 20px;
	--space-xl: 30px;
	--space-2xl: 40px;

	/* Typography */
	--font-xs: 12px;
	--font-sm: 13px;
	--font-md: 14px;
	--font-base: 16px;
	--font-lg: 18px;
	--font-xl: 24px;
	--font-2xl: 28px;

	/* Effects */
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
	--radius-sm: 4px;
	--radius-md: 5px;
	--radius-lg: 8px;
	--transition-fast: 0.15s;
	--transition-normal: 0.2s;
	--transition-slow: 0.3s;

	/* Layout */
	--width-app: 800px;
}

/* ================================================================
   Reset & Base
   ================================================================ */
* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	max-width: var(--width-app);
	margin: 0 auto;
	padding: 80px var(--space-lg) var(--space-lg);
	background: var(--color-bg-cream);
	min-height: 100vh;
	color: var(--color-text-medium);
	line-height: 1.5;
}

/* ================================================================
   Typography
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-md) 0;
	color: var(--color-text-dark);
}

h1 { font-size: var(--font-2xl); }
h2 { font-size: var(--font-xl); }
h3 { font-size: var(--font-lg); }

p {
	margin: 0 0 var(--space-md) 0;
}

.subtitle {
	color: var(--color-text-gray);
	margin: 0 0 var(--space-xl) 0;
	font-size: var(--font-md);
	text-align: center;
}

.help-text {
	color: var(--color-text-gray);
	font-size: var(--font-md);
	line-height: 1.5;
	margin: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-gray { color: var(--color-text-gray); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

/* ================================================================
   Links
   ================================================================ */
a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 500;
}

a:hover {
	text-decoration: underline;
}

/* ================================================================
   Logo
   ================================================================ */
.logo-svg {
	width: 100%;
	height: 60px;
	max-width: 100%;
	margin: 0 0 0 12px;
	padding-left: 0;
	padding-top: var(--space-sm);
	padding-bottom: 0;
	display: block;
}

/* ================================================================
   Forms
   ================================================================ */
.form-group {
	margin-bottom: var(--space-lg);
}

.form-label {
	display: block;
	margin-bottom: var(--space-xs);
	color: var(--color-text-medium);
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: var(--font-base);
	box-sizing: border-box;
	transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input:disabled {
	background: var(--color-bg-light);
	color: var(--color-text-muted);
	cursor: not-allowed;
}

.form-input-error {
	border-color: var(--color-danger);
}

.form-hint {
	font-size: var(--font-sm);
	color: var(--color-text-gray);
	margin-top: var(--space-xs);
}

.form-error {
	font-size: var(--font-sm);
	color: var(--color-danger);
	margin-top: var(--space-xs);
}

/* Legacy selector support */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="time"],
select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: var(--font-base);
	box-sizing: border-box;
	transition: border-color var(--transition-slow);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="time"]:focus,
select:focus {
	outline: none;
	border-color: var(--color-primary);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="url"]:disabled,
input[type="time"]:disabled,
select:disabled {
	background: var(--color-bg-light);
	color: var(--color-text-muted);
	cursor: not-allowed;
}

input[type="checkbox"] {
	cursor: pointer;
	margin-right: var(--space-xs);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	border-radius: var(--radius-md);
	font-size: var(--font-base);
	font-weight: 500;
	transition: all var(--transition-slow);
	cursor: pointer;
	border: none;
	gap: var(--space-xs);
}

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

.btn-primary:hover {
	background: var(--color-primary-hover);
	text-decoration: none;
}

.btn-secondary {
	background: white;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
	background: var(--color-primary-light);
	text-decoration: none;
}

.btn-danger {
	background: var(--color-danger);
	color: white;
}

.btn-danger:hover {
	background: #c82333;
	text-decoration: none;
}

.btn-success {
	background: var(--color-success);
	color: white;
}

.btn-success:hover {
	background: #218838;
	text-decoration: none;
}

.btn-sm {
	padding: 8px 12px;
	font-size: var(--font-sm);
}

.btn-lg {
	padding: 16px 24px;
	font-size: var(--font-lg);
}

.btn-full {
	width: 100%;
}

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

/* Legacy support */
button {
	padding: 12px 20px;
	background: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-size: var(--font-base);
	transition: background var(--transition-slow);
}

button:hover {
	background: var(--color-primary-hover);
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ================================================================
   Cards
   ================================================================ */
.card {
	background: var(--color-bg-white);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
	box-shadow: var(--shadow-sm);
}

.card-header {
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--color-border-light);
}

.card-title {
	margin: 0;
	font-size: var(--font-lg);
}

/* ================================================================
   Alerts
   ================================================================ */
.alert {
	padding: 12px 16px;
	border-radius: var(--radius-md);
	margin-bottom: var(--space-lg);
	border-left: 4px solid;
}

.alert-success {
	background: var(--color-success-bg);
	border-color: var(--color-success-border);
	color: #155724;
}

.alert-danger {
	background: var(--color-danger-bg);
	border-color: var(--color-danger-border);
	color: #721c24;
}

.alert-warning {
	background: var(--color-warning-bg);
	border-color: var(--color-warning-border);
	color: #856404;
}

.alert-info {
	background: var(--color-info-bg);
	border-color: var(--color-info-border);
	color: #0c5460;
}

/* Legacy support */
.error {
	background: var(--color-danger-bg);
	border: 1px solid var(--color-danger-border);
	border-radius: var(--radius-md);
	color: #721c24;
	padding: 12px;
	margin-bottom: var(--space-lg);
}

.success {
	background: var(--color-success-bg);
	border: 1px solid var(--color-success-border);
	border-radius: var(--radius-md);
	color: #155724;
	padding: 12px;
	margin-bottom: var(--space-lg);
}

.info {
	background: var(--color-info-bg);
	border: 1px solid var(--color-info-border);
	border-radius: var(--radius-md);
	color: #0c5460;
	padding: 12px;
	margin-bottom: var(--space-lg);
}

/* ================================================================
   Status Cards
   ================================================================ */
.status-card {
	padding: var(--space-md);
	border-radius: var(--radius-md);
	border-left: 5px solid;
	background: #f9f9f9;
	overflow: hidden;
}

.status-card.healthy {
	border-left-color: var(--color-success);
	background: var(--color-success-bg);
}

.status-card.unhealthy {
	border-left-color: var(--color-danger);
	background: var(--color-danger-bg);
}

.status-card.pending {
	border-left-color: var(--color-warning);
	background: var(--color-warning-bg);
	opacity: 0.9;
}

.status-header {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	min-width: 0;
}

.status-header-left {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex: 1;
	min-width: 0;
}

.status-url {
	font-weight: 500;
	color: var(--color-text-dark);
	word-break: break-all;
}

.status-info {
	font-size: var(--font-sm);
	color: var(--color-text-gray);
}

.status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: var(--font-xs);
	font-weight: 600;
}

.status-badge-healthy {
	background: var(--color-success);
	color: white;
}

.status-badge-unhealthy {
	background: var(--color-danger);
	color: white;
}

.status-badge-pending {
	background: var(--color-warning);
	color: #333;
}

/* ================================================================
   Action Buttons
   ================================================================ */
.status-actions {
	display: flex;
	gap: var(--space-xs);
	justify-content: flex-end;
	padding-top: var(--space-sm);
	margin-top: var(--space-sm);
	border-top: 1px solid var(--color-border);
}

.action-btn {
	padding: 6px 12px;
	border: 1px solid var(--color-border);
	background: white;
	color: var(--color-text-gray);
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--font-sm);
	transition: all var(--transition-normal);
	white-space: nowrap;
}

.action-btn:hover {
	background: var(--color-bg-light);
	border-color: var(--color-text-muted);
}

.action-btn-delete {
	background: var(--color-danger);
	color: white;
	border-color: var(--color-danger);
}

.action-btn-delete:hover {
	background: #c82333;
	border-color: #c82333;
}

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

.action-btn-refresh:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

.action-btn-open {
	background: var(--color-success);
	color: white;
	border-color: var(--color-success);
}

.action-btn-open:hover {
	background: #218838;
	border-color: #218838;
}

.action-btn-icon {
	padding: 10px;
	min-width: 38px;
}

.btn-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
	vertical-align: -3px;
	display: inline-block;
}

.action-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.action-btn.loading {
	position: relative;
	color: transparent;
}

.action-btn.loading::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	top: 50%;
	left: 50%;
	margin-left: -6px;
	margin-top: -6px;
	border: 2px solid #999;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ================================================================
   Grid Layouts
   ================================================================ */
.status-grid {
	display: grid;
	gap: var(--space-sm);
}

/* ================================================================
   Forms - Checkbox/Radio Groups
   ================================================================ */
.checkbox-group {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-bottom: var(--space-sm);
}

.checkbox-group label {
	margin: 0;
	font-weight: normal;
}

/* ================================================================
   Tier Badges
   ================================================================ */
.tier-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-weight: bold;
	text-transform: uppercase;
	font-size: var(--font-xs);
	letter-spacing: 0.5px;
}

.tier-badge.tier-free {
	background: #e0e0e0;
	color: #666;
}

.tier-badge.tier-pro {
	background: var(--color-primary);
	color: white;
}

.tier-badge.tier-premium {
	background: #9c27b0;
	color: white;
}

/* Menu tier badges (used in header) */
.menu-tier-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.menu-tier-free {
	background: #e0e0e0;
	color: #666;
}

.menu-tier-pro {
	background: var(--color-primary);
	color: white;
}

.menu-tier-premium {
	background: #9c27b0;
	color: white;
}

/* ================================================================
   Usage Bar
   ================================================================ */
.usage-bar {
	width: 100%;
	height: 28px;
	background: var(--color-bg-light);
	border-radius: 14px;
	overflow: hidden;
	margin: var(--space-sm) 0;
	position: relative;
}

.usage-bar-fill {
	height: 100%;
	background: var(--color-success);
	transition: width var(--transition-slow);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: var(--font-xs);
}

.usage-bar-fill.warning {
	background: var(--color-warning);
	color: #333;
}

.usage-bar-fill.danger {
	background: var(--color-danger);
}

.usage-text {
	font-size: var(--font-md);
	color: var(--color-text-gray);
	margin-bottom: var(--space-xs);
}

/* ================================================================
   Plan Cards
   ================================================================ */
.plan-card {
	background: white;
	border: 2px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	margin: var(--space-md) 0;
}

.plan-card h3 {
	margin-top: 0;
}

.plan-card ul {
	list-style: none;
	padding: 0;
	margin: var(--space-md) 0;
}

.plan-card li {
	padding: var(--space-xs) 0;
	color: var(--color-text-gray);
}

.plan-card li::before {
	content: "✓ ";
	color: var(--color-success);
	font-weight: bold;
	margin-right: var(--space-xs);
}

.plan-price {
	font-size: var(--font-2xl);
	font-weight: bold;
	color: var(--color-text-dark);
	margin: var(--space-sm) 0;
}

.plan-price span {
	font-size: var(--font-md);
	color: var(--color-text-muted);
	font-weight: normal;
}

/* Billing specific */
.billing-header {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin: var(--space-md) 0;
}

.notification-item {
	margin: var(--space-sm) 0;
}

.alert-warning {
	background: var(--color-warning-bg);
	border-color: var(--color-warning-border);
	color: #856404;
}

.alert-warning a {
	color: #856404;
	text-decoration: underline;
	font-weight: 500;
}

/* ================================================================
   Status Indicators
   ================================================================ */
.status-indicator {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	font-size: var(--font-xs);
	font-weight: 500;
}

.status-indicator.status-active {
	background: #e8f5e9;
	color: #2e7d32;
}

.status-indicator.status-past_due {
	background: #fff3e0;
	color: #e65100;
}

.status-indicator.status-canceled {
	background: #ffebee;
	color: #c62828;
}

/* ================================================================
   Header
   ================================================================ */
.header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-sm);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--color-bg-cream);
	padding: 2px var(--space-lg);
	height: 60px;
	border-bottom: 1px solid transparent;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ================================================================
   User Menu
   ================================================================ */
.user-info {
	min-width: 44px;
	min-height: 44px;
}

.user-menu-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px 10px;
	border-radius: 6px;
	transition: background var(--transition-normal);
	position: relative;
	min-width: 44px;
	min-height: 44px;
	color: var(--color-text-gray);
}

.user-menu-trigger:hover {
	background: rgba(0, 0, 0, 0.05);
}

.user-menu-trigger .menu-icon {
    height: 22px;
    width: 22px;
}

.user-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 4px;
	background: var(--color-bg-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	min-width: 180px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
	z-index: 1000;
	overflow: hidden;
}

.user-menu.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.user-menu-email {
	padding: var(--space-sm) var(--space-md);
	font-size: var(--font-sm);
	color: var(--color-text-gray);
	border-bottom: 1px solid var(--color-border-light);
	word-wrap: break-word;
	background: var(--color-bg-light);
	font-weight: 500;
}

.user-menu-usage {
	padding: var(--space-sm) var(--space-md);
	font-size: var(--font-sm);
	color: var(--color-text-gray);
	border-bottom: 1px solid var(--color-border-light);
	background: var(--color-bg-light);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.user-menu-item {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	width: 100%;
	padding: 12px var(--space-md);
	text-align: left;
	background: white;
	border: none;
	color: var(--color-text-medium);
	text-decoration: none;
	cursor: pointer;
	font-size: var(--font-md);
	transition: background var(--transition-normal);
	white-space: nowrap;
}

.user-menu-item:hover {
	background: var(--color-bg-light);
}

.user-menu-item:not(:last-child) {
	border-bottom: 1px solid var(--color-border-light);
}

.user-menu-logout {
	color: var(--color-danger);
}

.menu-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

.unhealthy-badge {
	margin-left: auto;
	background: var(--color-danger);
	color: white;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: var(--font-xs);
	font-weight: 600;
	min-width: 20px;
	text-align: center;
}

.menu-filter-active {
	background: var(--color-primary-light);
	font-weight: 600;
}

.menu-filter-active:hover {
	background: #cce8e6;
}

.filter-active {
	background: var(--color-primary-light);
	font-weight: 600;
}

.filter-active:hover {
	background: #cce8e6;
}

/* Dashboard connection overlay - blocks interaction when disconnected */
.dashboard-overlay {
	position: fixed;
	top: var(--header-height, 60px); /* Position below the header */
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100; /* Below header (which is 110) but above content */
	backdrop-filter: blur(2px);
}

.dashboard-overlay.hidden {
	display: none;
}

.dashboard-overlay-content {
	text-align: center;
}

.dashboard-overlay-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid var(--color-border);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: 0 auto var(--space-md);
}

.dashboard-overlay-text {
	color: var(--color-text-gray);
	font-size: var(--font-md);
	margin: 0;
}

/* Settings page button alignment */
.settings-save-btn {
	margin-left: auto;
	display: block;
}

/* ================================================================
   Landing Page
   ================================================================ */
.landing-container {
	background: transparent;
	padding: var(--space-lg) var(--space-lg) 80px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.hero {
	text-align: center;
	margin-bottom: 35px;
}

.hero-buttons {
	text-align: center;
	margin-bottom: 35px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Landing page footer */
.landing-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: var(--color-bg-cream);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 var(--space-lg);
	z-index: 50;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.landing-footer-buttons {
	display: flex;
	gap: 20px;
}

.landing-footer-buttons .btn {
	padding: 12px 24px;
	width: 120px;
}

.headline {
	font-size: 42px;
	font-weight: 700;
	color: var(--color-text-dark);
	margin-bottom: 16px;
	line-height: 1.2;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-lg);
	margin-top: var(--space-2xl);
}

.feature {
	text-align: center;
	padding: var(--space-lg);
}

.feature-icon {
	width: 48px;
	height: 48px;
	margin-bottom: var(--space-md);
	color: var(--color-primary);
}

.feature-title {
	font-size: var(--font-lg);
	font-weight: 600;
	margin-bottom: var(--space-sm);
}

.feature-text {
	color: var(--color-text-gray);
}

/* Landing page features list */
.features-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.features-list li {
	padding: var(--space-md) 0;
	display: flex;
	align-items: flex-start;
}

.features-list li::before {
	content: "✓";
	color: var(--color-primary);
	font-weight: bold;
	font-size: var(--font-xl);
	margin-right: var(--space-md);
	flex-shrink: 0;
	margin-top: 2px;
}

.feature-content {
	flex: 1;
}

.feature-title-small {
	color: var(--color-text-dark);
	font-size: var(--font-base);
	font-weight: 600;
	margin: 0 0 var(--space-xs) 0;
}

.feature-description {
	color: var(--color-text-gray);
	font-size: var(--font-md);
	margin: 0;
	line-height: 1.5;
}

/* Social proof */
.social-proof {
	margin: 35px 0 var(--space-xl) 0;
	padding: 25px 0;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-lg);
	margin-bottom: 25px;
	text-align: center;
}

.stat-number {
	font-size: var(--font-2xl);
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: var(--space-xs);
}

.stat-label {
	font-size: var(--font-sm);
	color: var(--color-text-gray);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.trust-badges {
	display: flex;
	justify-content: center;
	gap: var(--space-lg);
	flex-wrap: wrap;
}

.badge {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: var(--font-md);
	color: var(--color-text-gray);
}

.badge-icon {
	font-size: var(--font-lg);
}

/* How it works */
.how-it-works {
	margin: 35px 0 var(--space-xl) 0;
}

.section-title {
	font-size: var(--font-xl);
	font-weight: 600;
	color: var(--color-text-dark);
	text-align: center;
	margin: 0 0 25px 0;
}

.steps {
	list-style: none;
	padding: 0;
	margin: 0;
}

.step {
	display: flex;
	align-items: flex-start;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
	padding: var(--space-md);
	background: var(--color-bg-light);
	border-radius: var(--radius-md);
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
	color: white;
	border-radius: 50%;
	font-weight: 700;
	font-size: var(--font-lg);
	flex-shrink: 0;
}

.step-content {
	flex: 1;
}

.step-title {
	font-size: var(--font-base);
	font-weight: 600;
	color: var(--color-text-dark);
	margin: 0 0 var(--space-xs) 0;
}

.step-description {
	color: var(--color-text-gray);
	font-size: var(--font-md);
	margin: 0;
	line-height: 1.5;
}

/* ================================================================
   Link Sections (common in forms)
   ================================================================ */
.link-section {
	text-align: center;
	margin-top: var(--space-lg);
	color: var(--color-text-gray);
}

.link-section a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 500;
}

.link-section a:hover {
	text-decoration: underline;
}

/* ================================================================
   Utility Classes
   ================================================================ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Right-aligned button for forms */
.btn-right {
	display: block;
	margin-left: auto;
}

/* Flexbox container that aligns items to the right */
.flex-right {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-sm);
}

.w-full { width: 100%; }
.hidden { display: none; }

/* Headings */
h2, h3 {
	margin-top: 0;
}


/* ================================================================
   Dashboard - URL Status Cards
   ================================================================ */
.url-link {
	font-weight: 600;
	color: var(--color-text-dark);
	font-size: var(--font-md);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.status-details {
	color: var(--color-text-gray);
	font-size: var(--font-sm);
}

.error-message {
	color: var(--color-danger);
	margin-top: var(--space-xs);
	font-weight: 600;
	font-size: var(--font-xs);
	word-break: break-word;
}

.last-checked {
	color: var(--color-text-muted);
	font-size: 11px;
}

.full-url {
	color: var(--color-text-gray);
	font-size: var(--font-sm);
	word-break: break-word;
	margin-bottom: var(--space-xs);
	font-weight: 500;
}

.status-details-container {
	display: none;
	margin-top: var(--space-xs);
	padding-top: var(--space-xs);
	border-top: 1px solid var(--color-border-light);
}

.status-card.expanded .status-details-container {
	display: block;
}

.status-card {
	cursor: pointer;
	transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.status-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.status-card.expanded {
	box-shadow: var(--shadow-lg);
}

.status-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.status-icon-healthy {
	color: var(--color-success);
}

.status-icon-unhealthy {
	color: var(--color-danger);
}

.status-icon-pending {
	color: var(--color-warning);
}

.empty-state {
	text-align: center;
	padding: var(--space-2xl) var(--space-md);
	color: var(--color-text-muted);
}

/* ================================================================
   Modals
   ================================================================ */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	animation: fadeIn var(--transition-normal) ease;
}

.modal.open {
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-content {
	background: white;
	border-radius: var(--radius-lg);
	width: 90%;
	max-width: 500px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	animation: slideIn var(--transition-normal) ease;
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-lg);
	border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
	margin: 0;
	font-size: var(--font-lg);
	color: var(--color-text-dark);
}

.modal-close {
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--color-text-muted);
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	transition: background var(--transition-normal), color var(--transition-normal);
}

.modal-close:hover {
	background: var(--color-bg-light);
	color: var(--color-text-dark);
}

.modal-body {
	padding: var(--space-lg);
}

.modal-body .form-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin-bottom: var(--space-lg);
}

.modal-body label {
	font-weight: 500;
	color: var(--color-text-dark);
	font-size: var(--font-md);
}

.modal-body input[type="text"] {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: var(--font-base);
}

.modal-body input[type="text"]:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.modal-actions {
	display: flex;
	gap: var(--space-sm);
	justify-content: flex-end;
}

/* Character counter for feedback form */
.char-counter {
	font-size: var(--font-xs);
	color: var(--color-text-gray);
	text-align: right;
	margin-top: var(--space-xs);
}

.char-counter.over-limit {
	color: var(--color-danger);
	font-weight: 500;
}

/* ================================================================
   URL Added Counter
   ================================================================ */
.urls-added-counter {
	color: var(--color-success);
	font-weight: 500;
	margin-bottom: var(--space-md);
	display: none;
}

.urls-added-counter.visible {
	display: block;
}

/* ================================================================
   Limit Message
   ================================================================ */
.limit-message {
	margin-bottom: var(--space-lg);
	color: var(--color-text-gray);
	line-height: 1.6;
}

/* ================================================================
   Notification Settings
   ================================================================ */
.notification-icon {
	font-size: 48px;
	text-align: center;
	margin-bottom: var(--space-lg);
}

.checkbox-group {
	margin-bottom: var(--space-lg);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-sm);
}

.checkbox-group h3 {
	margin: 0 0 var(--space-md) 0;
	color: var(--color-text-medium);
	font-size: var(--font-base);
	font-weight: 600;
}

.checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
	margin-right: var(--space-sm);
	width: 18px;
	height: 18px;
}

.checkbox-label span {
	color: var(--color-text-gray);
}

.settings-divider {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: var(--space-md) 0;
}

.page-title {
	font-size: var(--font-lg);
	font-weight: 500;
	color: var(--color-text-medium);
	margin-top: 0;
	margin-bottom: var(--space-md);
}

/* ================================================================
   Verification Pending
   ================================================================ */
.page-icon {
	font-size: 48px;
	text-align: center;
	margin-bottom: var(--space-lg);
}

.page-message {
	color: var(--color-text-gray);
	margin: 0 0 var(--space-lg) 0;
	font-size: var(--font-base);
	line-height: 1.5;
	text-align: center;
}

.resend-section {
	margin-top: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-border-light);
}

.resend-section h3 {
	font-size: var(--font-base);
	color: var(--color-text-gray);
	margin: 0 0 var(--space-md) 0;
}
