/*!
 * Shaft Diameter Calculator — module CSS (e2z-sdc- prefix).
 * Color scheme (spec): Primary #1D4ED8 (steel blue), Secondary #1E293B,
 * Accent #DC2626 (stress red), BG #F1F5F9.
 * Scope: .e2z-tool-shaft-diameter-calculator (framework shortcode wrapper).
 */

.e2z-tool-shaft-diameter-calculator,
.e2z-tool-shaft-diameter-calculator *,
.e2z-tool-shaft-diameter-calculator *::before,
.e2z-tool-shaft-diameter-calculator *::after {
	box-sizing: border-box;
}

.e2z-tool-shaft-diameter-calculator .e2z-sdc-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #1E293B;
	width: 100%;
	margin: 0 auto;
	background: #F1F5F9;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(30, 41, 59, 0.10);
	overflow: hidden;
}

/* Header */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #1D4ED8, #1E293B);
	color: #fff;
	text-align: center;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-subtitle {
	font-size: 0.9rem;
	opacity: 0.85;
	margin: 0;
}

/* Layout */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-inputs-panel { flex: 3; }
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-results-panel {
		flex: 3;
		min-width: 360px;
		position: sticky;
		top: 20px;
	}
}

.e2z-tool-shaft-diameter-calculator .e2z-sdc-inputs-panel,
.e2z-tool-shaft-diameter-calculator .e2z-sdc-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #E2E8F0;
	box-shadow: 0 2px 8px rgba(30, 41, 59, 0.05);
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-section-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1D4ED8;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #DBEAFE;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-section-title + .e2z-sdc-section-title { margin-top: 18px; }

/* Fields */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-field {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #475569;
	margin-bottom: 4px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-hint {
	font-size: 0.73rem;
	color: #94A3B8;
	margin-top: 4px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-input {
	width: 100%;
	min-height: 44px;
	padding: 9px 11px;
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	font-size: 0.92rem;
	font-family: inherit;
	background: #fff;
	color: #1E293B;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-input:focus {
	outline: none;
	border-color: #1D4ED8;
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* Button */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #1D4ED8;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter 0.15s ease;
	margin-top: 4px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-calc-btn:hover { filter: brightness(1.15); }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}

/* Results */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-empty-state {
	padding: 24px;
	text-align: center;
	color: #64748B;
	background: #F1F5F9;
	border-radius: 8px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	border: 1px solid #BFDBFE;
	background: #EFF6FF;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.1;
	color: #1D4ED8;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-hero-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	margin: 0;
}

/* Badge */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-badge {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	margin-top: 8px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-badge-safe { background: #DCFCE7; color: #166534; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-badge-marginal { background: #FEF3C7; color: #92400E; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-badge-under { background: #FEE2E2; color: #991B1B; }

.e2z-tool-shaft-diameter-calculator .e2z-sdc-result-block {
	background: #F1F5F9;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-result-block h3 {
	font-size: 1rem;
	color: #1E293B;
	margin: 0 0 10px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 10px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat-label {
	font-size: 0.73rem;
	font-weight: 600;
	color: #64748B;
	margin: 0 0 3px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat-value {
	font-size: 1.02rem;
	font-weight: 700;
	color: #1D4ED8;
	margin: 0;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat-red .e2z-sdc-stat-value { color: #DC2626; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat-dark .e2z-sdc-stat-value { color: #1E293B; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-stat-green .e2z-sdc-stat-value { color: #16A34A; }

/* Stress bar */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-bar-wrap {
	background: #E2E8F0;
	border-radius: 999px;
	height: 18px;
	overflow: hidden;
	margin: 10px 0 4px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-bar {
	height: 100%;
	border-radius: 999px;
	transition: width 0.3s ease;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-bar-safe { background: #16A34A; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-bar-marginal { background: #F59E0B; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-bar-under { background: #DC2626; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-bar-label {
	font-size: 0.78rem;
	color: #64748B;
	text-align: center;
	margin: 0;
}

.e2z-tool-shaft-diameter-calculator .e2z-sdc-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-note-info { background: #EFF6FF; color: #1E40AF; border-left: 3px solid #1D4ED8; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-note-warn { background: #FFFBEB; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-shaft-diameter-calculator .e2z-sdc-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-print-btn,
.e2z-tool-shaft-diameter-calculator .e2z-sdc-copy-btn {
	flex: 1;
	min-height: 44px;
	padding: 11px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.e2z-tool-shaft-diameter-calculator .e2z-sdc-print-btn { background: #1D4ED8; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-copy-btn { background: #1E293B; }
.e2z-tool-shaft-diameter-calculator .e2z-sdc-print-btn:hover,
.e2z-tool-shaft-diameter-calculator .e2z-sdc-copy-btn:hover { filter: brightness(1.25); }

.e2z-tool-shaft-diameter-calculator .e2z-sdc-disclaimer {
	font-size: 0.75rem;
	color: #94A3B8;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-shaft-diameter-calculator .e2z-sdc-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-title { font-size: 1.4rem; }
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-field { min-width: 110px; }
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-inputs-panel,
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-results-panel { padding: 14px; }
}
@media (max-width: 360px) {
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-header { padding: 16px 10px; }
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-title { font-size: 1.25rem; }
	.e2z-tool-shaft-diameter-calculator .e2z-sdc-field { min-width: 100%; }
}
