
/* ==========================================================================
   Branestar Home Page / Executive Dashboard — 28.08.2026 Master Styles
   ========================================================================== */

.home-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 0 32px 0;
  box-sizing: border-box;
}

/* ── 1. Executive Welcome Greeting Banner ── */
.home-welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.08) 0%, transparent 60%);
}

.home-welcome-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.home-welcome-greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-welcome-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-welcome-user {
  color: #FFFFFF;
}

.home-welcome-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: waveAnimation 2s infinite ease-in-out;
}

@keyframes waveAnimation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.home-welcome-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10B981;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 9999px;
}

.home-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  display: inline-block;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.home-welcome-sub {
  margin: 0;
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.5;
  max-width: 680px;
}

.home-welcome-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.home-welcome-meta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
}

.home-welcome-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-welcome-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-welcome-meta-label i, .home-welcome-meta-label svg {
  width: 12px;
  height: 12px;
}

.home-welcome-meta-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.home-welcome-meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .home-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .home-welcome-right {
    width: 100%;
  }
  .home-welcome-meta-card {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── 2. Business Health Horizontal Cards Grid ── */
.home-section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-health-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 1400px) {
  .home-health-horizontal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .home-health-horizontal-grid {
    grid-template-columns: 1fr;
  }
}

.home-health-hero-card {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-health-gauge {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-health-gauge svg {
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.home-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.home-gauge-fill {
  fill: none;
  stroke: #10B981;
  stroke-width: 8;
  stroke-linecap: round;
}

.home-gauge-inner-val {
  position: absolute;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.home-health-hero-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-health-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: 9999px;
  width: max-content;
}

.home-health-hero-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.home-dim-card {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-dim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-dim-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #D1D5DB;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-dim-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.home-dim-icon-dot.rev { background: #10B981; }
.home-dim-icon-dot.acq { background: #3B82F6; }
.home-dim-icon-dot.cus { background: #A78BFA; }
.home-dim-icon-dot.ops { background: #F59E0B; }
.home-dim-icon-dot.mkt { background: #F43F5E; }

.home-dim-change {
  font-size: 11px;
  font-weight: 700;
}
.home-dim-change.up { color: #10B981; }
.home-dim-change.stable { color: #9CA3AF; }

.home-dim-score-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.home-dim-score-val {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.home-dim-score-max {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
}

.home-dim-bar-track {
  width: 100%;
  height: 4px;
  background: #23252B;
  border-radius: 9999px;
  overflow: hidden;
}

.home-dim-bar-fill {
  height: 100%;
  border-radius: 9999px;
}
.home-dim-bar-fill.green { background: #10B981; }
.home-dim-bar-fill.blue { background: #3B82F6; }
.home-dim-bar-fill.purple { background: #A78BFA; }
.home-dim-bar-fill.amber { background: #F59E0B; }
.home-dim-bar-fill.rose { background: #F43F5E; }

/* ── 3. ChatGPT Style Conversational Intelligence Copilot ── */
.home-chatgpt-section {
  width: 100%;
  margin-top: 4px;
}

.home-chatgpt-container {
  display: flex;
  flex-direction: column;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.45), 0 6px 18px -2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}

.home-chatgpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #101114;
  gap: 16px;
  flex-wrap: wrap;
}

.home-chatgpt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-chatgpt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0052FF 0%, #3B82F6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35);
  flex-shrink: 0;
}
.home-chatgpt-avatar i, .home-chatgpt-avatar svg {
  width: 18px;
  height: 18px;
}

.home-chatgpt-title-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-chatgpt-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-chatgpt-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.home-chatgpt-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0052FF;
  background: rgba(0, 82, 255, 0.12);
  border: 1px solid rgba(0, 82, 255, 0.25);
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.home-chatgpt-status {
  font-size: 11.5px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-chatgpt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-chatgpt-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chatgpt-header-btn:hover {
  background: #22242A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}
.home-chatgpt-header-btn i, .home-chatgpt-header-btn svg {
  width: 13px;
  height: 13px;
}

.home-chatgpt-messages-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  max-height: 440px;
  min-height: 220px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #141518;
}

.home-chat-msg {
  display: flex;
  gap: 12px;
  max-width: 100%;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-chat-msg.user {
  flex-direction: row-reverse;
}

.home-chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
}
.home-chat-msg-avatar.ai {
  background: linear-gradient(135deg, #0052FF 0%, #3B82F6 100%);
  color: #FFFFFF;
}
.home-chat-msg-avatar.ai i, .home-chat-msg-avatar.ai svg {
  width: 15px;
  height: 15px;
}
.home-chat-msg-avatar.user {
  background: #374151;
  color: #FFFFFF;
}

.home-chat-msg-bubble {
  max-width: 82%;
  background: #1C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
}
.home-chat-msg.user .home-chat-msg-bubble {
  background: #0052FF;
  border-color: #0052FF;
  color: #FFFFFF;
}

.home-chat-msg-sender {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-chat-msg.user .home-chat-msg-sender {
  color: rgba(255, 255, 255, 0.8);
  justify-content: flex-end;
}
.home-chat-msg-time {
  font-weight: 500;
  opacity: 0.7;
}

.home-chat-msg-content {
  font-size: 13.5px;
  line-height: 1.5;
  color: #E5E7EB;
}
.home-chat-msg.user .home-chat-msg-content {
  color: #FFFFFF;
}

.home-chat-starters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .home-chat-starters-grid { grid-template-columns: 1fr; }
}

.home-chat-starter-card {
  background: #15161A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chat-starter-card:hover {
  background: #202228;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.home-chat-starter-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-chat-starter-icon i, .home-chat-starter-icon svg {
  width: 14px;
  height: 14px;
}

.home-chat-starter-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-chat-starter-text strong {
  font-size: 12px;
  color: #FFFFFF;
}
.home-chat-starter-text span {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.3;
}

.home-chatgpt-input-container {
  padding: 14px 20px 18px 20px;
  background: #101114;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-chatgpt-context-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-chatgpt-context-pills::-webkit-scrollbar { display: none; }

.home-chat-context-pill {
  padding: 4px 10px;
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: #9CA3AF;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.home-chat-context-pill:hover {
  background: #22242A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.home-chatgpt-input-card {
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.home-chatgpt-input-card:focus-within {
  border-color: #0052FF;
  box-shadow: 0 0 0 1px #0052FF;
}

.home-chatgpt-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  resize: none;
  min-height: 24px;
  max-height: 160px;
  line-height: 1.5;
}
.home-chatgpt-textarea::placeholder {
  color: #6B7280;
}

.home-chatgpt-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-chatgpt-tools-left, .home-chatgpt-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-chatgpt-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #9CA3AF;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chatgpt-tool-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
.home-chatgpt-tool-btn i, .home-chatgpt-tool-btn svg {
  width: 13px;
  height: 13px;
}

.home-chatgpt-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0052FF;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chatgpt-send-btn:hover {
  background: #0046E0;
  transform: scale(1.05);
}
.home-chatgpt-send-btn i, .home-chatgpt-send-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.home-chatgpt-footer-disclaimer {
  font-size: 10.5px;
  color: #6B7280;
  text-align: center;
}

.home-chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.home-chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9CA3AF;
  animation: typingDot 1.4s infinite ease-in-out both;
}
.home-chat-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.home-chat-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}


.home-dim-icon-dot.biz { background: #0052FF; }
.home-dim-icon-dot.rev { background: #10B981; }
.home-dim-icon-dot.brand { background: #8B5CF6; }
.home-dim-icon-dot.acq { background: #06B6D4; }
.home-dim-icon-dot.cus { background: #F59E0B; }
.home-dim-icon-dot.rep { background: #EC4899; }

.home-dim-bar-fill.blue { background: #0052FF; }
.home-dim-bar-fill.green { background: #10B981; }
.home-dim-bar-fill.purple { background: #8B5CF6; }
.home-dim-bar-fill.cyan { background: #06B6D4; }
.home-dim-bar-fill.amber { background: #F59E0B; }
.home-dim-bar-fill.rose { background: #EC4899; }
