/* Wave 6 — paquete UX completo TecnoNube */

/* Hub colapsable */
.tn-welcome-hub.is-collapsed .tn-hub-cards {
	display: none !important;
}

.tn-hub-dismiss-secondary {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 0;
	border: none;
	background: none;
	color: rgba(248, 250, 252, 0.55);
	font-size: 0.68rem;
	cursor: pointer;
	text-decoration: underline;
}

/* —— Vacío con CTA —— */
.tn-empty-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 16px;
}

.tn-empty-cta .tn-empty-compose {
	padding: 10px 18px;
	border-radius: 999px;
	border: none;
	background: linear-gradient(135deg, var(--tn-primary, #3498db), #2980b9);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(41, 128, 185, 0.35);
}

.tn-empty-cta .tn-empty-secondary {
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: var(--tn-primary-dark, #1e293b);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

/* —— Soporte rápido sidebar —— */
.tn-support-quick {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 4px 10px 6px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(52, 152, 219, 0.18);
	border: 1px solid rgba(52, 152, 219, 0.4);
	color: #fff !important;
	font-size: 0.76rem;
	font-weight: 600;
	text-decoration: none !important;
}

.tn-support-quick:hover {
	background: rgba(52, 152, 219, 0.32);
}

/* —— Cuota desconocida —— */
.tn-quota-bar.tn-quota-unknown .tn-quota-fill {
	width: 0 !important;
}

.tn-quota-unknown-text {
	font-size: 0.72rem;
	color: var(--tn-sidebar-muted, #e2e8f0);
}

/* —— Snooze menú —— */
.tn-snooze-menu {
	position: absolute;
	z-index: 50;
	min-width: 140px;
	padding: 6px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.tn-snooze-menu button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: none;
	background: none;
	text-align: left;
	font: inherit;
	cursor: pointer;
	border-radius: 6px;
}

.tn-snooze-menu button:hover {
	background: #f1f5f9;
}

/* —— Adjunto lightbox —— */
.tn-attach-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.82);
	box-sizing: border-box;
}

.tn-attach-lightbox img,
.tn-attach-lightbox iframe {
	max-width: min(96vw, 900px);
	max-height: 88vh;
	border: none;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tn-attach-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #fff;
	font-size: 1.4rem;
	cursor: pointer;
}

/* —— Badge adjunto en lista —— */
.messageListItem .tn-list-attach-badge {
	display: inline-flex;
	margin-left: 4px;
	font-size: 0.72rem;
	opacity: 0.85;
	vertical-align: middle;
}

/* —— Sync error —— */
.tn-status-bar.tn-sync-error {
	color: #fecaca !important;
}

.tn-status-bar.tn-sync-error::before {
	background: #ef4444 !important;
}
