@import './global.css'; .dialog { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; background: transparent; border: none; outline: none; padding: 0; &::backdrop { background: rgba(0, 0, 0, 0.5); } } .modal { background: var(--bg); color: var(--text); border-radius: 8px; width: 90%; max-width: 960px; height: 80vh; display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); } .header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .title { font-size: 18px; font-weight: bold; color: var(--text); margin: 0; } .closeButton { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--text-muted); background: transparent; border: none; border-radius: var(--radius); cursor: pointer; &:hover { color: var(--text); background: var(--bg-hover); } } .body { display: flex; flex: 1; overflow: hidden; } .sidebar { display: flex; flex-direction: column; width: 160px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 8px; gap: 2px; } .content { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; } .footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; } @media (max-width: 600px) { .body { flex-direction: column; } .sidebar { flex-direction: row; width: 100%; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 4px 8px; flex-shrink: 0; scrollbar-width: none; &::-webkit-scrollbar { display: none; } } .footer { padding: 12px 16px; } }