/* =============================================================================
   Share Dialog
	Owns the focused sharing dialog flow and related share-specific form states.
   ============================================================================= */
.share-dialog-modal {
	max-width: 480px;
	padding: 1.5rem;
}

.share-dialog-header {
	text-align: center;
	margin-bottom: 1.5rem;
}
.share-dialog-header h2 {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.share-dialog-description {
	font-size: 0.85rem;
	line-height: 1.5;
	text-align: left;
	color: var(--warning);
	background: var(--warning-bg);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	border: 1px solid rgba(252, 211, 77, 0.2);
	margin: 0.5rem 0 0;
}

.share-dialog-empty {
	text-align: center;
	padding: 2rem;
	color: var(--text-secondary);
}

.share-dialog-form .form-group {
	margin-bottom: 1rem;
}

.share-dialog-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.share-dialog-form .select-field {
	width: 100%;
	padding: 0.6rem 2rem 0.6rem 0.75rem;
	border: 1px solid var(--border-primary);
	border-radius: 8px;
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 0.9rem;
	cursor: pointer;
	background-position: right 0.9rem center;
}

.share-dialog-form .select-field:focus {
	outline: none;
	border-color: var(--accent);
}

.share-dialog-footer {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
	justify-content: space-between;
	align-items: center;
}

.share-dialog-footer .footer-left {
	display: flex;
	gap: 0.5rem;
}

.share-dialog-footer .footer-right {
	display: flex;
	gap: 0.5rem;
}

.share-dialog-result {
	text-align: center;
}

.share-success {
	color: var(--success);
	font-weight: 500;
	margin-bottom: 1rem;
}

.share-link-label {
	margin: 0.75rem 0 0.4rem;
	text-align: left;
	font-size: 0.8rem;
	color: var(--text-secondary);
	font-weight: 600;
}

.share-link-box {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.share-link-input {
	flex: 1;
	padding: 0.75rem;
	border: 1px solid var(--border-primary);
	border-radius: 8px;
	background: var(--bg-input);
	color: var(--text-primary);
	font-size: 0.875rem;
	font-family: monospace;
}

.btn-copy {
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-primary);
	border-radius: 8px;
	background: var(--bg-tertiary);
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-copy.icon-only {
	padding: 0.5rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
}

.btn-copy:hover {
	background: var(--accent-bg);
	border-color: var(--accent);
}

.share-copied-hint {
	color: var(--success);
	font-size: 0.875rem;
}

.share-btn {
	font-size: 0.875rem;
	padding: 0.375rem 0.75rem;
}

.share-btn.icon-only {
	padding: 0.5rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
}
