/* MeetingMate UI Styles - clean, product-like */
:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#1f2937;
  --accent:#3b82f6;
  --accent-2:#22c55e;
  --danger:#ef4444;
  --success:#16a34a;
  --border:rgba(0,0,0,0.08);
}
*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC", "Microsoft YaHei", Arial, "Noto Sans CJK SC", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(59,130,246,0.04), transparent 60%),
              radial-gradient(1200px 800px at 90% -10%, rgba(34,197,94,0.03), transparent 60%),
              var(--bg);
  color: var(--text);
}
.header{
  position: sticky; top:0; z-index:10; backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.75); border-bottom:1px solid var(--border);
}
.nav{
  max-width:1080px; margin:0 auto; padding:14px 16px; display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:0.5px;}
.brand .dot{width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 0 8px rgba(81,107,255,0.4)}
.small{font-size:12px; color:var(--muted)}
.container{max-width:1080px; margin:22px auto; padding:0 16px;}
.grid{display:grid; grid-template-columns: 1fr; gap:16px}
@media(min-width: 980px){ .grid{grid-template-columns: 1.2fr 0.8fr} }
.card{
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.0));
  border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow:0 6px 24px rgba(0,0,0,0.06);
}
.card h3{margin:0 0 12px 0; font-size:18px;}
.row{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.input, input[type="text"]{
  background:#ffffff; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:10px 12px; outline:none;
}
.btn{appearance:none; border:none; border-radius:10px; padding:10px 14px; color:#fff; cursor:pointer; font-weight:600; letter-spacing:.2px;
  background: linear-gradient(135deg, #4f8ef7, #7aa8ff); box-shadow: 0 6px 18px rgba(81,107,255,0.25);
}
.btn.secondary{background: linear-gradient(135deg, #e5e7eb, #f3f4f6); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.06)}
.btn.ghost{background:transparent; border:1px solid var(--border); color:var(--muted)}
.btn:disabled{opacity:.55; cursor:not-allowed}
.tag{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:#f1f5f9; border:1px solid var(--border); color:var(--muted); font-size:12px}
.hr{height:1px; background:var(--border); margin:12px 0}
.statusbar{display:flex; align-items:center; justify-content:space-between; gap:12px}
.progress{position:relative; height:10px; background:#f1f5f9; border:1px solid var(--border); border-radius:999px; overflow:hidden; flex:1}
.progress .bar{position:absolute; left:0; top:0; bottom:0; width:0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow:0 0 12px rgba(34,197,94,0.25)}
.steps{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.step{font-size:12px; padding:6px 10px; border-radius:999px; border:1px dashed var(--border); color:var(--muted)}
.step.active{border-style:solid; color:#0f172a; background:rgba(59,130,246,0.10)}
.step.done{border-style:solid; color:#166534; background:rgba(22,163,74,0.12)}
.kv{display:grid; grid-template-columns: 120px 1fr; gap:8px;}
.log{background:#f9fafb; border:1px solid var(--border); border-radius:10px; padding:10px; color:#334155; height:160px; overflow:auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}
.tabs{display:flex; gap:8px; margin-bottom:12px}
.tab{padding:8px 12px; border-radius:999px; border:1px solid var(--border); color:var(--muted); cursor:pointer}
.tab.active{color: var(--accent); background:#e8f0fe; border-color:rgba(81,107,255,0.35)}
.hidden{display:none !important}
.list{display:flex; flex-direction:column; gap:10px; margin-top:8px}
.item{display:flex; align-items:center; justify-content:space-between; padding:12px; border:1px solid var(--border); border-radius:10px; background:#ffffff}
.item .meta{display:flex; flex-direction:column; gap:4px}
.link{color:#2563eb; text-decoration:none}
.footer{color:var(--muted); font-size:12px; text-align:center; margin-top:24px}

/* 权限控制相关样式 */
.user-section {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.user-role {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 8px;
  background: rgba(59,130,246,0.1);
  border-radius: 12px;
}

/* 审批面板样式 */
.approval-panel {
  max-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.approval-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.approval-tabs .tab {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.approval-tabs .tab.active {
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.2);
}
.approval-list {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
}
.approval-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #ffffff;
  transition: all 0.2s;
}
.approval-item:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.approval-info {
  margin-bottom: 8px;
}
.approval-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 14px;
}
.approval-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.approval-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.status-pending {
  background: #fef3c7;
  color: #d97706;
}
.status-approved {
  background: #d1fae5;
  color: #059669;
}
.status-rejected {
  background: #fee2e2;
  color: #dc2626;
}
.approval-actions {
  display: flex;
  gap: 8px;
}
.btn-approve {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}
.btn-reject {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}
.loading-message, .error-message, .empty-message {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}
.error-message {
  color: var(--danger);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-section {
    flex-direction: column;
    gap: 8px;
  }
  .user-info {
    align-items: center;
  }
  .approval-meta {
    flex-direction: column;
    gap: 4px;
  }
  .approval-actions {
    justify-content: center;
  }
}
