:root {
  --primary: #1a73e8;
  --primary-hover: #155ab6;
  --bg: #f4f4f4;
  --fg: #202124;
  --border: #ddd;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
}

.container {
  max-width: 800px;
  margin: 30px auto;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

h1 {
  font-size: 26px;
  color: var(--fg);
}

button#newProjectBtn,
.modal-actions button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
button#newProjectBtn:hover,
.modal-actions button:hover {
  background-color: var(--primary-hover);
}

.project-list {
  list-style: none;
  padding: 0;
}

.project-item {
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.project-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.project-item a {
  text-decoration: none;
  color: var(--fg);
  display: block;
}

.project-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.project-meta {
  font-size: 12px;
  color: #5f6368;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.show {
  display: flex;
}
.modal-content {
  background-color: #fff;
  padding: 24px;
  width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.modal-content h2 {
  margin-top: 0;
  font-size: 18px;
}
.modal-content label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}
.modal-content input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}
.toggle-group {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.id-preview {
  font-family: monospace;
  background: #f1f3f4;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
