* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0A1628;
  --primary-blue: #1E3A5F;
  --accent-gold: #C9A961;
  --accent-gold-light: #F5D76E;
  --accent-blue: #3B82F6;
  --accent-blue-dark: #1D4ED8;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --success-green: #10B981;
  --danger-red: #EF4444;
  --sidebar-width: 260px;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  height: 100vh;
}

/* ===== 左侧菜单栏 ===== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
  margin-bottom: 15px;
}

.logo-svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 10px rgba(245, 215, 110, 0.3));
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-gold-light);
  text-shadow: 0 0 20px rgba(245, 215, 110, 0.2);
}

.brand-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0 10px;
}

.sidebar-nav li {
  margin-bottom: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(201, 169, 97, 0.2) 100%);
  color: var(--accent-gold-light);
  border-left: 3px solid var(--accent-gold);
}

.nav-icon {
  font-size: 18px;
}

.nav-text {
  flex: 1;
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 15px 10px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.version {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.powered-by {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
}

/* ===== 主内容区域 ===== */
.main-content-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

/* 顶部标题栏 */
.top-header {
  background: var(--bg-card);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  flex: 1;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.header-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-blue);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.provider-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.provider-selector label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.provider-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.provider-select:hover {
  border-color: var(--accent-blue);
}

.provider-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.provider-status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 内容区域 */
.content-area {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 聊天界面 ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  background: var(--bg-light);
}

.message {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.avatar {
  font-size: 36px;
  flex-shrink: 0;
}

.message .content {
  flex: 1;
  padding: 18px 22px;
  border-radius: 18px;
  line-height: 1.7;
  font-size: 15px;
}

.user-message .content {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  color: white;
  border-bottom-right-radius: 6px;
}

.bot-message .content {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 6px;
}

.bot-message .content p {
  margin-bottom: 10px;
}

.bot-message .content p:last-child {
  margin-bottom: 0;
}

.bot-message .content ul, .bot-message .content ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.chat-input {
  display: flex;
  gap: 12px;
  padding: 20px 25px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.domain-select {
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg-light);
  cursor: pointer;
  min-width: 120px;
  transition: border-color 0.3s ease;
}

.domain-select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.text-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
  background: var(--bg-light);
}

.text-input:focus {
  border-color: var(--accent-blue);
}

.send-btn, .submit-btn {
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.send-btn:hover, .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.send-btn:disabled, .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn.danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.submit-btn.danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ===== 表单卡片 ===== */
.form-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-group.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.form-group.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.form-group.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-light);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
  min-height: 120px;
  background: var(--bg-light);
}

.form-textarea:focus {
  border-color: var(--accent-blue);
}

.submit-btn {
  width: 100%;
  margin-top: 20px;
}

.btn-group {
  display: flex;
  gap: 15px;
}

.btn-group .submit-btn {
  flex: 1;
  margin-top: 0;
}

/* ===== 结果容器 ===== */
.result-container {
  margin-top: 30px;
  padding: 25px;
  background: var(--bg-light);
  border-radius: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.result-container h3 {
  color: var(--accent-blue);
  margin-bottom: 15px;
  font-size: 18px;
}

.result-container p {
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--text-primary);
}

.result-container ul, .result-container ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

.result-container li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.result-container strong {
  color: var(--text-primary);
}

/* ===== 加载动画 ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 文件管理样式 ===== */
.file-section {
  margin-bottom: 40px;
  padding: 25px;
  background: var(--bg-light);
  border-radius: 15px;
}

.file-section h3 {
  color: var(--accent-blue);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.upload-area {
  position: relative;
  border: 2px dashed var(--accent-blue);
  border-radius: 15px;
  padding: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(59, 130, 246, 0.03);
}

.upload-area:hover {
  border-color: var(--accent-blue-dark);
  background: rgba(59, 130, 246, 0.05);
}

.upload-area.dragover {
  border-color: var(--accent-gold);
  background: rgba(201, 169, 97, 0.05);
  transform: scale(1.02);
}

#file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

.upload-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 15px;
}

.upload-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 15px;
}

.upload-hint {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

.file-list-container {
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.file-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-blue);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-icon {
  font-size: 32px;
}

.file-details h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
}

.file-details p {
  margin: 6px 0 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.file-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-btn.download {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  color: white;
}

.file-btn.download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.file-btn.delete {
  background: #FEE2E2;
  color: #DC2626;
}

.file-btn.delete:hover {
  background: #FECACA;
}

/* ===== 导入区域样式 ===== */
.import-section {
  margin-bottom: 10px;
}

.import-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--text-primary);
}

.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.drop-zone-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.drop-zone-text {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.drop-zone-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.preview-count {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.preview-table-container {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.preview-table th {
  position: sticky;
  top: 0;
  background: var(--sidebar-blue);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.preview-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.preview-table tr:hover td {
  background: white;
}

.preview-table tbody tr:hover td {
  background: var(--bg-light);
}

.preview-fields {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.field-label {
  font-weight: 500;
}

.detected-fields {
  display: inline-block;
  margin-left: 8px;
}

.detected-fields .field-tag {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
}

.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.secondary-btn {
  padding: 10px 24px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.result-summary {
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.result-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.class-result-card {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
}

.class-result-card .class-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.class-result-card .class-stats {
  color: var(--text-secondary);
}

.class-result-card.elective {
  border-left: 3px solid #10B981;
}

.result-errors {
  margin-top: 12px;
  padding: 12px 16px;
  background: #FEF2F2;
  border-radius: 8px;
  font-size: 13px;
  color: #DC2626;
}

.result-errors ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

/* ===== 数据列表样式 ===== */
.data-list {
  margin-top: 25px;
}

.data-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.data-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-blue);
}

.data-item-info {
  flex: 1;
}

.data-item-info h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
}

.data-item-info p {
  margin: 8px 0 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.data-item-actions {
  display: flex;
  gap: 10px;
}

.data-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.data-btn.edit {
  background: #DBEAFE;
  color: #1D4ED8;
}

.data-btn.edit:hover {
  background: #BFDBFE;
}

.data-btn.delete {
  background: #FEE2E2;
  color: #DC2626;
}

.data-btn.delete:hover {
  background: #FECACA;
}

/* ===== 考勤打卡样式 ===== */
.attendance-section {
  margin-bottom: 40px;
  padding: 25px;
  background: var(--bg-light);
  border-radius: 15px;
}

.attendance-section h3 {
  color: var(--accent-blue);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.qrcode-container {
  margin-top: 25px;
  text-align: center;
  padding: 25px;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

#qrcode-image {
  margin: 0 auto;
  max-width: 320px;
  padding: 20px;
}

#qrcode-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#qrcode-status {
  margin-top: 15px;
  padding: 15px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

#checkin-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

#checkin-result.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

#checkin-result.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===== 表格样式 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th, .data-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.data-table tr:hover {
  background: rgba(59, 130, 246, 0.03);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ===== 错误样式 ===== */
.error {
  color: #DC2626;
  background: #FEF2F2;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }
  
  .form-group.grid-4,
  .form-group.grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-stats {
    gap: 15px;
  }
  
  .stat-item {
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content-wrapper {
    margin-left: 0;
  }
  
  .top-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .header-right {
    width: 100%;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .provider-selector {
    justify-content: center;
  }
  
  .header-stats {
    width: 100%;
    justify-content: space-around;
  }
  
  .form-group.grid-2,
  .form-group.grid-3,
  .form-group.grid-4,
  .form-group.grid-5 {
    grid-template-columns: 1fr;
  }
  
  .chat-input {
    flex-direction: column;
  }
  
  .domain-select {
    width: 100%;
    min-width: auto;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .content-area {
    padding: 20px 15px;
  }
  
  .form-card {
    padding: 20px;
  }
}

/* ===== 弹窗样式 ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #1e293b;
  font-size: 20px;
}

.modal-content .form-group {
  margin-bottom: 16px;
}

.modal-content .form-group label {
  display: block;
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.data-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.data-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.data-btn.edit {
  background: #e0f2fe;
  color: #0369a1;
}

.data-btn.edit:hover {
  background: #bae6fd;
}

.data-btn.move {
  background: #fef3c7;
  color: #92400e;
}

.data-btn.move:hover {
  background: #fde68a;
}

.data-btn.delete {
  background: #fee2e2;
  color: #991b1b;
}

.data-btn.delete:hover {
  background: #fecaca;
}
