/* Dashboard Layout Styles */
body {
	font-family: 'Inter', sans-serif;
}

:root {
	--cm-blue: #223A8A;
	--cm-accent-teal: #4ECDC4;
	--cm-accent-red: #F15BB5;
	--ai-purple: #8B5CF6;
}

.bg-cm-blue {
	background-color: var(--cm-blue);
}

.text-cm-blue {
	color: var(--cm-blue);
}

.text-ai {
	color: var(--ai-purple);
}

.sidebar-icon {
	transition: all 0.2s ease-in-out;
}

.sidebar-icon:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: scale(1.1);
}

.active-nav {
	background-color: rgba(255, 255, 255, 0.2);
	border-left: 4px solid white;
}

.main-content {
	transition: all 0.3s ease;
}

/* Estilos Main Dashboard */
main {
	padding-top: 1rem;
}

/* Estilos para datetime-local consistentes */
input[type="datetime-local"] {
	color-scheme: light;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	cursor: pointer;
}

input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hidden-view {
	display: none;
	opacity: 0;
}

.visible-view {
	display: block;
	opacity: 1;
	animation: fadeIn 0.3s ease-in;
}

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

.modal {
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
}

.modal-content {
	background: white;
	border-radius: 12px;
	padding: 24px;
	max-width: 820px;
	width: 92%;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	max-height: 90vh;
	overflow-y: auto;
}

/* Estilos del Chat */
.chat-bubble {
	max-width: 85%;
	padding: 12px 16px;
	border-radius: 15px;
	margin-bottom: 10px;
	font-size: 0.95rem;
	line-height: 1.4;
	position: relative;
}

.chat-outgoing {
	background-color: #dcf8c6;
	border-top-right-radius: 0;
	align-self: flex-end;
}

.chat-incoming {
	background-color: #ffffff;
	border-top-left-radius: 0;
	align-self: flex-start;
	border: 1px solid #e5e7eb;
}

.chat-timestamp {
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 4px;
}

/* Heartbeat Animation */
.heartbeat-container {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #10b981;
	border-radius: 20px;
	border: 2px solid #10b981;
}

.status-indicator {
	width: 8px;
	height: 8px;
	background: #ffffff;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.heartbeat-line {
	width: 60px;
	height: 20px;
	position: relative;
}

.heartbeat-line svg {
	width: 100%;
	height: 100%;
}

.heartbeat-path {
	stroke: #ffffff;
	stroke-width: 2;
	fill: none;
	animation: heartbeat 1.5s ease-in-out infinite;
}

.heartbeat-glow {
	stroke: #ffffff;
	stroke-width: 3;
	fill: none;
	opacity: 0.3;
	animation: heartbeat 1.5s ease-in-out infinite;
}

.heartbeat-text {
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@keyframes heartbeat {
	0% { stroke-dasharray: 0 100; }
	50% { stroke-dasharray: 50 50; }
	100% { stroke-dasharray: 0 100; }
}

/* Notifications */
.notifications-container {
	position: relative;
}

.notifications-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	width: 320px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	border: 1px solid #e5e7eb;
	z-index: 50;
}

/* Loading States */
.loading-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #e5e7eb;
	border-top: 2px solid var(--cm-blue);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
