/* User Profile & Notifications Styles - STCF Premium */

:root {
    --profile-dropdown-width: 280px;
    --notif-red: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* Container in Top Bar */
.w3-top {
	height: 60px !important;
	display: flex !important;
	align-items: center !important;
	z-index: 9999 !important;
}

.top-bar-user-section {
	margin-left: auto !important;
	display: flex;
	align-items: center;
	gap: 15px;
	height: 100%;
}

/* Notifications Bell */
.notif-wrapper {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    color: white;
}

.notif-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--primary-green); /* Borde fino para separar del fondo verde */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Animacion de Campanita Activa (Parpadeo / Vibración) */
@keyframes bellRing {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    20% { transform: rotate(15deg) scale(1.1); opacity: 0.8; }
    40% { transform: rotate(-15deg) scale(1.1); opacity: 1; }
    60% { transform: rotate(10deg) scale(1.1); opacity: 0.8; }
    80% { transform: rotate(-10deg) scale(1.1); opacity: 1; }
}

.bell-ringing i.fa-bell {
    animation: bellRing 2s ease-in-out infinite;
    transform-origin: top center;
    display: inline-block;
}

/* Onda de Campanita Activa (Efecto de Pulso Expansivo) */
@keyframes bellWave {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
        box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    }
}

.bell-ringing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    pointer-events: none;
    box-sizing: border-box;
    animation: bellWave 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

/* Avatar Trigger */
.user-profile-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.user-profile-trigger:hover .avatar-img {
    transform: scale(1.05);
    border-color: white;
}

/* Dropdown Menu Card */
.profile-dropdown {
    position: fixed;
    top: 53px;
    right: 0;
    width: var(--profile-dropdown-width);
    background: white;
    border-radius: 0 0 0 12px;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.15);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 16px;
    z-index: 20000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-dropdown.show {
    transform: translateX(0);
}

/* Header within dropdown */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
}

.header-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.header-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* Dropdown Items */
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-green);
}

.dropdown-item:hover i {
    color: var(--primary-green);
}

/* Logout Button */
.logout-btn-container {
    margin-top: 8px;
}

.logout-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #111827; /* Dark black/grey like the image */
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.logout-link-btn:hover {
    background: #000000;
}

/* ==========================================
   Notification Dropdown Styles - STCF Monday.com Redesign
   ========================================== */
.notif-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    border-radius: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #d0d4e4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #323338;
}

.notif-dropdown.show {
    transform: translateX(0);
}

/* Header style - Monday.com */
.notif-header-monday {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #ffffff;
}

.notif-title-large {
    font-size: 20px;
    font-weight: 700;
    color: #323338;
    line-height: 24px;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #676879;
}

.notif-action-icon {
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
}

.notif-action-icon:hover {
    background: #f5f6fc;
    color: #323338;
}

/* Tabs Bar */
.notif-tabs-bar {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid #e6e9f2;
}

.notif-tab {
    font-size: 14px;
    font-weight: 500;
    color: #676879;
    padding: 8px 12px 10px 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.notif-tab.active {
    color: #0073ea;
    font-weight: 600;
}

.notif-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0073ea;
}

/* Search and Filters Row */
.notif-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid #e6e9f2;
}

.notif-search-container {
    position: relative;
    flex-grow: 1;
}

.notif-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #676879;
    font-size: 14px;
}

.notif-search-input {
    width: 100%;
    height: 32px;
    padding: 6px 12px 6px 32px;
    border-radius: 4px;
    border: 1px solid #c3c6d4;
    font-size: 14px;
    color: #323338;
    background-color: #ffffff;
    transition: border-color 0.1s;
    outline: none;
}

.notif-search-input:focus {
    border-color: #0073ea;
}

.notif-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.notif-toggle-label {
    font-size: 13px;
    color: #676879;
}

/* Switch Toggle - Monday Style */
.notif-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.notif-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.notif-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c3c6d4;
    transition: .2s;
    border-radius: 20px;
}

.notif-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

.notif-switch input:checked + .notif-slider {
    background-color: #0073ea;
}

.notif-switch input:checked + .notif-slider:before {
    transform: translateX(14px);
}

/* Integration Banner (WhatsApp) */
.notif-integration-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f6fc;
    margin: 12px 24px;
    padding: 12px 16px;
    border-radius: 8px;
    gap: 16px;
}

.notif-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-banner-icon {
    width: 32px;
    height: 32px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notif-banner-text-content {
    display: flex;
    flex-direction: column;
}

.notif-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #323338;
}

.notif-banner-desc {
    font-size: 12px;
    color: #676879;
    line-height: 1.4;
    margin-top: 2px;
}

.notif-banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notif-banner-btn {
    background: #0073ea;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.notif-banner-btn:hover {
    background: #0056b3;
    color: #ffffff;
}

.notif-banner-close {
    font-size: 14px;
    color: #676879;
    cursor: pointer;
    padding: 4px;
}

.notif-banner-close:hover {
    color: #323338;
}

/* List of Notifications */
.notif-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Style */
.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.notif-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #676879;
    padding: 16px 24px 8px 24px;
    background: #ffffff;
    text-transform: capitalize;
}

/* Notification Item */
.notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #f5f7ff; /* Highlighted by default for unread */
    border-bottom: 1px solid #e6e9f2;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.notif-item:hover {
    background: #f0f4ff;
}

/* When a notification is read */
.notif-item.read {
    background: #ffffff;
}

.notif-item.read:hover {
    background: #f5f6fc;
}

.notif-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-grow: 1;
}

/* Circular/Square Avatar-like icon */
.notif-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #04aa6d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notif-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notif-text-primary {
    font-size: 13.5px;
    color: #323338;
    line-height: 1.4;
}

.notif-text-primary strong {
    font-weight: 700;
}

.notif-text-secondary {
    font-size: 12px;
    color: #676879;
    margin-top: 4px;
}

.notif-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 12px;
}

.notif-item-time {
    font-size: 12px;
    color: #676879;
}

/* Unread blue dot indicator - Monday Style */
.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0073ea;
    display: block;
}

.notif-item.read .notif-unread-dot {
    display: none;
}

/* Footer Section */
.notif-footer-monday {
    border-top: 1px solid #e6e9f2;
    padding: 12px 24px;
    background: #ffffff;
    text-align: center;
}

.notif-view-all-link {
    background: transparent;
    color: #0073ea;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
    outline: none;
    padding: 0;
    width: 100%;
}

.notif-view-all-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Loading/Empty State */
.notif-empty {
    padding: 40px 24px;
    text-align: center;
    color: #676879;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.notif-empty i {
    font-size: 28px;
    color: #cbd5e0;
}

/* Visibility adjustment for the system name */
@media screen and (max-width: 600px) {
    .system-name-top { display: none; }
    .notif-dropdown { width: 100%; }
    .profile-dropdown { width: 100%; top: 53px; border-radius: 0; }
}

/* Corrección de apilamiento: asegurar que modales (W3.css, JQuery UI y genéricos) queden sobre el navbar y paneles laterales */
.w3-modal,
.modal,
.modal-backdrop,
.ui-dialog,
.ui-widget-overlay {
    z-index: 4000 !important;
}

/* WhatsApp Flotante (Deshabilitado/Ocultado a favor del footer) */
.whatsapp-bubble {
	display: none !important;
}

.main-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	padding: 10px 15px;
	font-size: 12px;
	color: #718096;
	background-color: #f7fafc;
	border-top: 1px solid #e2e8f0;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	font-family: 'Outfit', 'Inter', 'Segoe UI', sans-serif;
	margin-left: 300px;
	transition: margin-left 0.3s ease;
	height: 54px; /* Altura de escritorio para alineación de precisión */
}

.main-footer .footer-info-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex-grow: 1;
	text-align: center;
	order: 2;
}

.main-footer .footer-copyright {
	font-weight: 600;
	color: #4a5568;
}

.main-footer .footer-branding {
	color: #718096;
	font-size: 12px;
}

.footer-avatar-support-btn {
	position: absolute;
	bottom: 0;
	right: 0;
	height: 54px; /* Ocupa exactamente toda la altura del footer */
	background-color: #005e54; /* El verde oscuro de la segunda imagen */
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 18px;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
	flex-shrink: 0;
	border-radius: 0; /* Bloque rectangular recto en la esquina */
	box-shadow: -2px 0 8px rgba(0,0,0,0.15);
	box-sizing: border-box;
}

.footer-avatar-support-btn::before {
	content: '';
	position: absolute;
	left: 18px; /* Alineado exactamente detrás del avatar */
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #25d366;
	z-index: 1;
	animation: wa-pulse 2s infinite ease-out;
}

.footer-avatar-support-btn:hover {
	background-color: #004d43; /* Un toque más oscuro al pasar el cursor */
}

/* Estilos para los textos de Soporte integrados en el footer */
.footer-support-text-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
	z-index: 2;
}

.footer-support-title {
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.2;
}

.footer-support-status {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
}

.footer-support-status-dot {
	width: 6px;
	height: 6px;
	background-color: #4ed964;
	border-radius: 50%;
	display: inline-block;
}

/* Responsividad premium: En móviles ocultamos el texto y mostramos solo el avatar */
@media screen and (max-width: 768px) {
	.footer-support-text-wrapper {
		display: none;
	}
	.footer-avatar-support-btn {
		width: 70px;
		padding: 0;
		justify-content: center;
	}
	.footer-avatar-support-btn::before {
		left: auto; /* Centrado en móviles */
	}
}

.footer-avatar-wrapper {
	position: relative;
	width: 38px;
	height: 38px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #ffffff;
	background-color: #ffffff;
}

.footer-avatar-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 14px;
	height: 14px;
	background-color: #25d366;
	border: 1px solid #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.wa-btn-svg, .support-send-btn svg {
	width: 15px !important;
	height: 15px !important;
	flex-shrink: 0 !important;
	transition: transform 0.2s ease;
}


@keyframes wa-wiggle {
	0%   { transform: rotate(0deg); }
	20%  { transform: rotate(-15deg); }
	45%  { transform: rotate(12deg); }
	65%  { transform: rotate(-8deg); }
	80%  { transform: rotate(5deg); }
	100% { transform: rotate(0deg); }
}

.wa-modal-svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* Elemento de balance para mantener los textos exactamente al centro del footer */
.main-footer::before {
	content: '';
	display: block;
	width: 170px;
	flex-shrink: 0;
	order: 1;
}

body.sidebar-collapsed .main-footer {
	margin-left: 70px !important;
}

@media screen and (max-width: 992px) {
	.main-footer {
		margin-left: 0 !important;
		flex-direction: column;
		gap: 10px;
		padding: 12px 16px;
		height: auto !important; /* Permitir crecimiento en móviles */
	}
	.footer-whatsapp-btn {
		order: unset;
	}
	.main-footer .footer-info-group {
		order: unset;
	}
	.main-footer::before {
		display: none;
	}
}

.main-wrapper {
	margin-top: 60px !important;
	height: calc(100% - 60px) !important;
	background-color: var(--system-bg, #edf9f5) !important;
}

.w3-main {
	height: auto !important;
	min-height: calc(100vh - 120px) !important;
	padding-bottom: 75px !important;
}

/* WhatsApp Support Slide Panel */
#whatsappSupportModal {
	position: fixed;
	top: 60px;
	right: 0;
	bottom: 54px; /* Ajustado para que termine justo arriba del footer */
	width: 380px;
	max-width: 100vw;
	background-color: #f0f2f5;
	z-index: 3500;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	font-family: 'Outfit', 'Inter', 'Segoe UI', sans-serif;
	box-shadow: -4px 0 24px rgba(0,0,0,0.18);
	border-radius: 0; /* Bordes rectos solicitados por el usuario */
}

@media screen and (max-width: 992px) {
	#whatsappSupportModal {
		bottom: 110px; /* Ajustado para móviles con footer en columna */
	}
}

#whatsappSupportModal.wa-open {
	transform: translateX(0);
}

#waSlideOverlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.3);
	z-index: 3499;
	display: none;
	animation: fadeInOverlay 0.25s ease;
}

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


.support-modal-header {
	background-color: #005e54;
	color: #ffffff;
	padding: 16px 20px;
	position: relative;
}

.support-modal-close {
	position: absolute;
	right: 16px;
	top: 16px;
	font-size: 24px;
	font-weight: bold;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: color 0.2s;
	line-height: 1;
}

.support-modal-close:hover {
	color: #ffffff;
}

.support-header-profile {
	display: flex;
	align-items: center;
	gap: 12px;
}

.support-avatar {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #0ea84c; /* Fondo verde que envuelve al avatar */
	padding: 5px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.support-avatar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 50%;
	background-color: #25d366;
	z-index: -1;
	animation: wa-pulse 2s infinite ease-out;
}

@keyframes wa-pulse {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

.support-agent-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff; /* Círculo blanco interior */
}

.avatar-badge-wa {
	position: absolute;
	bottom: 0px;
	right: -2px;
	width: 24px;
	height: 24px;
	background-color: #25d366;
	border: 2px solid #005e54;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wa-badge-svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.support-header-text h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
}

.support-header-text p {
	margin: 2px 0 0 0;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 5px;
}

.status-dot {
	width: 6px;
	height: 6px;
	background-color: #4ed964;
	border-radius: 50%;
	display: inline-block;
}

.support-modal-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.support-message-bubble {
	background-color: #ffffff;
	padding: 12px 14px;
	border-radius: 0 12px 12px 12px;
	position: relative;
	max-width: 90%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.support-message-bubble p {
	margin: 0;
	font-size: 13.5px;
	color: #333333;
	line-height: 1.4;
}

.message-time {
	display: block;
	text-align: right;
	font-size: 10px;
	color: #888888;
	margin-top: 4px;
}

.support-input-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background-color: #ffffff;
	padding: 12px;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.support-input-container textarea {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px;
	font-size: 13.5px;
	font-family: inherit;
	resize: none;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.support-input-container textarea:focus {
	border-color: #128c7e;
}

.support-send-btn {
	background-color: #25d366;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color 0.2s, transform 0.1s;
}

.support-send-btn:hover {
	background-color: #128c7e;
}

.support-send-btn:active {
	transform: scale(0.98);
}

/* ==========================================
   Floating WhatsApp Agent Bubble (Public Login Screen)
   ========================================== */
.login-whatsapp-bubble {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 19998;
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0ea84c; /* Fondo verde que envuelve al avatar */
	padding: 5px;
	box-sizing: border-box;
}

.login-whatsapp-bubble::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 50%;
	background-color: #25d366;
	z-index: -1;
	animation: wa-pulse 2s infinite ease-out;
}

.login-whatsapp-bubble:hover {
	transform: scale(1.08) rotate(3deg);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.login-whatsapp-bubble img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff; /* Círculo blanco interior */
}

.login-whatsapp-bubble .badge-wa {
	position: absolute;
	bottom: 0px;
	right: 0px;
	width: 24px;
	height: 24px;
	background-color: #25d366;
	border: 2px solid #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.login-whatsapp-bubble .badge-wa svg {
	width: 13px;
	height: 13px;
	fill: #ffffff;
}

/* ==========================================
   WhatsApp Support UX Improvements
   ========================================== */
.support-typing-indicator {
	display: flex;
	align-items: center;
	gap: 6px;
	background-color: #f0f2f5;
	padding: 12px 18px;
	border-radius: 12px;
	width: fit-content;
	margin-bottom: 12px;
	animation: fadeInIndicator 0.3s ease;
}

.typing-dot {
	width: 8px;
	height: 8px;
	background-color: #90a4ae;
	border-radius: 50%;
	display: inline-block;
	animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes typing-bounce {
	0%, 80%, 100% { 
		transform: scale(0);
	} 40% { 
		transform: scale(1.0);
	}
}

@keyframes fadeInIndicator {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.support-hours-notice {
	background-color: #fff9db;
	color: #665c00;
	border: 1px solid #ffe066;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 11.5px;
	line-height: 1.4;
	margin-top: 10px;
	margin-bottom: 12px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	animation: fadeInIndicator 0.4s ease;
}

.support-hours-notice i {
	color: #f59f00;
	font-size: 13px;
	margin-top: 2px;
}

/* Override slide panel offsets specifically on Login Screen */
.login-body #whatsappSupportModal {
	top: 0 !important;
	bottom: 0 !important;
	z-index: 20000 !important;
}

.login-body #waSlideOverlay {
	z-index: 19999 !important;
}

/* ==========================================
   Mini Support Avatar inside Footer Button
   ========================================== */
.footer-wa-avatar {
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	flex-shrink: 0;
}

.footer-wa-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #ffffff;
}

.footer-wa-badge {
	position: absolute;
	bottom: -1px;
	right: -1px;
	width: 12px;
	height: 12px;
	background-color: #25d366;
	border: 1px solid #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.footer-wa-badge svg {
	width: 7px;
	height: 7px;
	fill: #ffffff;
}

/* Etiquetas de Consulta Rápida (Quick Reply Tags) */
.support-quick-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.quick-tag-btn {
	background-color: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
	border-radius: 16px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	outline: none;
	user-select: none;
}

.quick-tag-btn:hover {
	background-color: #e2e8f0;
	color: #0f172a;
	border-color: #94a3b8;
	transform: translateY(-1px);
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quick-tag-btn:active {
	transform: translateY(0);
}

.quick-tag-btn i {
	font-size: 10px;
	color: #64748b;
	transition: color 0.2s;
}

.quick-tag-btn:hover i {
	color: #128c7e;
}

/* ==========================================
   Burbuja Flotante de WhatsApp para Dashboard Interno
   ========================================== */
.dashboard-wa-bubble {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 19998;
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, opacity 0.3s ease;
	display: none; /* Controlado dinámicamente con JS */
	align-items: center;
	justify-content: center;
	background-color: #0ea84c; /* Fondo verde que envuelve al avatar */
	padding: 5px;
	box-sizing: border-box;
}

.dashboard-wa-bubble::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 50%;
	background-color: #25d366;
	z-index: -1;
	animation: wa-pulse 2s infinite ease-out;
}

.dashboard-wa-bubble:hover {
	transform: scale(1.08) rotate(3deg);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.dashboard-wa-bubble img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff; /* Círculo blanco interior */
}

.dashboard-wa-bubble .badge-wa {
	position: absolute;
	bottom: 0px;
	right: 0px;
	width: 24px;
	height: 24px;
	background-color: #25d366;
	border: 2px solid #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.dashboard-wa-bubble .badge-wa svg {
	width: 13px;
	height: 13px;
	fill: #ffffff;
}

/* ==========================================
   Pre-Identification Form for Login Screen
   ========================================== */
.support-preauth-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background-color: #ffffff;
	padding: 16px;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	animation: fadeInIndicator 0.4s ease;
	margin-bottom: 12px;
}

.preauth-input-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: left;
}

.preauth-input-group label {
	font-size: 11.5px;
	font-weight: 600;
	color: #4a5568;
	display: flex;
	align-items: center;
	gap: 6px;
}

.preauth-input-group label i {
	color: #005e54;
	font-size: 12px;
}

.preauth-input-group input,
.preauth-input-group select {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: all 0.2s ease;
	background-color: #f8fafc;
}

.preauth-input-group input:focus,
.preauth-input-group select:focus {
	border-color: #005e54;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(0, 94, 84, 0.1);
}




