/* Modern Dark/Glassmorphism CSS for Sangmon Dashboard */

:root {
  --bg-color: #0b071a;
  --panel-bg: rgba(20, 15, 38, 0.6);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #ff007f;
  --accent-grad: linear-gradient(135deg, #8a2be2 0%, #ff007f 100%);
  --text-primary: #ffffff;
  --text-secondary: #a3a1cc;
  --green-glow: #00ffaa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Prompt', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background blob animations */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}
.blob-1 {
  width: 400px;
  height: 400px;
  background: #8a2be2;
  top: -50px;
  right: -50px;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: #ff007f;
  bottom: -100px;
  left: -100px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Glassmorphism card template */
.card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(138, 43, 226, 0.2);
}

/* Header style */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 15px 30px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-glow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

.avatar-svg {
  width: 100%;
  height: 100%;
}

.logo-text h1 {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-online {
  background: rgba(0, 255, 170, 0.1);
  color: var(--green-glow);
  border: 1px solid rgba(0, 255, 170, 0.2);
}

.pulse {
  width: 8px;
  height: 8px;
  background-color: var(--green-glow);
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 255, 170, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0);
  }
}

/* Main layouts */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

/* Left panel status styles */
.section-title {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid var(--accent-color);
  padding-left: 10px;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.card-inner {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background 0.3s;
}

.card-inner:hover {
  background: rgba(255, 255, 255, 0.08);
}

.status-icon-wrapper {
  background: rgba(138, 43, 226, 0.15);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.status-info h3 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.status-text {
  font-size: 12px;
  font-weight: 600;
}

.text-green {
  color: var(--green-glow);
}

.meta-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 15px;
}

.meta-info h3 {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.meta-line:last-child {
  margin-bottom: 0;
}

.meta-label {
  color: var(--text-secondary);
}

.meta-val {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chat Simulator design */
.chat-section {
  display: flex;
  flex-direction: column;
  height: 480px;
  padding: 0;
  overflow: hidden;
}

.chat-header {
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-title h3 {
  font-size: 15px;
  font-weight: 600;
}

.chat-title p {
  font-size: 11px;
  color: var(--text-secondary);
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Chat bubble styling */
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.chat-message.bot-msg {
  align-self: flex-start;
}

.chat-message.user-msg {
  align-self: flex-end;
}

.bubble {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

.bot-msg .bubble {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.user-msg .bubble {
  background: var(--accent-grad);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.time {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
  align-self: flex-end;
}

.bot-msg .time {
  align-self: flex-start;
  margin-left: 5px;
}

/* Chat input footer */
.chat-footer {
  display: flex;
  padding: 15px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

#chatInput {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 15px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}

#chatInput:focus {
  border-color: var(--accent-color);
}

#sendBtn {
  background: var(--accent-grad);
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

#sendBtn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 10px;
}
