.left-section {
  width: 40%;
  padding: 2rem;
}
.chat-area {
  width: 60%;
}
.flex {
  display: flex;
}
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-background: #1A1B35;
  --color-text: #E5E7EB;
  --color-primary: #3B82F6;
  --color-primary-light: #60A5FA;
  --color-secondary: #6B7280;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
}

/* 机器人图片样式 */
.robot-image {
  width: 100px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

/* 左侧区域样式 */
.left-section {
  width: 230px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 聊天区域样式 */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 消息气泡样式 */
.message-bubble {
  max-width: 70%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.message-bubble.assistant {
  background-color: rgba(31, 41, 55, 0.8);
  align-self: flex-start;
}

/* 表格样式修复 */
.message-bubble table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  table-layout: fixed; /* Add fixed layout for consistent columns */
  word-break: break-word; /* Prevent long text from breaking layout */
}

.message-bubble th,
.message-bubble td {
  border: 1px solid var(--color-secondary);
  padding: 0.75rem 1.25rem; /* Increase padding for better readability */
  text-align: left;
  vertical-align: top; /* Align content to top */
}

.message-bubble th {
  background-color: var(--color-primary-light);
  color: var(--color-background);
  font-weight: 600; /* Make headers bold */
}

.message-bubble tr:nth-child(even) {
  background-color: rgba(59, 130, 246, 0.12) !important; /* Slightly darker shade */
}

.message-bubble td {
  overflow: hidden; /* Prevent content overflow */
  text-overflow: ellipsis; /* Show ellipsis for truncated text */
  max-width: 20rem; /* Limit cell width on larger screens */
}

.message-bubble .responsive-table {
  display: block; /* Force block layout for mobile */
  overflow-x: auto; /* Enable horizontal scrolling */
  width: 100%;
}

/* 技术背景效果 */
.tech-bg {
  background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}
/* 生产计划模块网格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
  padding: 0 1rem;
  gap: 1rem;
}

.grid-item {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}
/* 左侧导航按钮样式 */
.left-section button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.left-section button:hover {
  background-color: #4a5568 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.left-section button:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

.left-section button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.left-section button:hover::after {
  opacity: 1;
}
