/* assets/css/dashboard.css */
.dashboard-mockup {
  border-radius: var(--radius-xl);
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 211, 102, 0.08);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot-red { background: #FF5F56; }
.window-dot-yellow { background: #FFBD2E; }
.window-dot-green { background: #27C93F; }

.window-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 20px;
}

.dashboard-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Sidebar Mockup */
.mock-sidebar {
  width: 64px;
  background: rgba(255, 255, 255, 0.01);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.mock-sidebar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mock-sidebar-icon.active,
.mock-sidebar-icon:hover {
  color: var(--color-whatsapp);
  background: rgba(37, 211, 102, 0.08);
}

/* Main Content Mockup */
.mock-content {
  flex: 1;
  display: flex;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

/* Chat view mockup */
.mock-chat-list {
  width: 35%;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mock-chat-item {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.mock-chat-item.active,
.mock-chat-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  position: relative;
  flex-shrink: 0;
}

.mock-avatar.online::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-whatsapp);
  border: 2px solid #090d16;
  border-radius: 50%;
}

.mock-chat-info {
  flex: 1;
  min-width: 0;
}

.mock-chat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mock-chat-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-chat-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mock-chat-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat window active thread */
.mock-chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 100%), #0b0f19;
}

.mock-chat-window-header {
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.mock-chat-messages {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mock-msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  animation: fadeIn 0.3s ease forwards;
}

.mock-msg.incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.mock-msg.outgoing {
  align-self: flex-end;
  background: rgba(37, 211, 102, 0.15);
  color: #F8FAFC;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-bottom-right-radius: 4px;
}

.mock-msg.ai-reply {
  align-self: flex-end;
  background: rgba(139, 92, 246, 0.15);
  color: #F8FAFC;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-bottom-right-radius: 4px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Typing bubble animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

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

.mock-chat-footer {
  height: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mock-input {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.mock-btn-send {
  width: 32px;
  height: 32px;
  background: var(--color-whatsapp);
  border: none;
  border-radius: 50%;
  color: #090D16;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Floating widgets */
.floating-cards-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.float-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: cardFloat 6s infinite alternate ease-in-out;
  pointer-events: auto;
}

.float-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.1);
  color: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card-content p {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.float-card-content span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Placements */
.float-card-1 {
  top: 15%;
  left: -8%;
  border-left: 3px solid var(--color-whatsapp);
}

.float-card-2 {
  bottom: 20%;
  right: -8%;
  border-left: 3px solid var(--color-purple);
  animation-delay: -2s;
}

.float-card-2 .float-card-icon {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-purple);
}

.float-card-3 {
  bottom: -5%;
  left: 15%;
  border-left: 3px solid var(--color-cyan);
  animation-delay: -4s;
}

.float-card-3 .float-card-icon {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-cyan);
}

/* Analytics component details */
.analytics-view {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-widget-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.analytics-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
}

.analytics-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.analytics-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.analytics-chart-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding-top: 20px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.chart-bar-fill {
  width: 60%;
  background: var(--gradient-accent);
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-out;
  min-height: 5px;
}

.chart-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

@keyframes cardFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@media (max-width: 991px) {
  .float-card-1 { left: 5px; }
  .float-card-2 { right: 5px; }
  .float-card-3 { bottom: 5px; }
}
