/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; padding: 2rem; }
h1 { margin-bottom: 1.5rem; }

/* Navigation */
.back-link { display: inline-block; margin-bottom: 1rem; color: #1a73e8; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; padding: 0.5rem 1rem; background: #1a73e8; color: #fff; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; font-size: 0.875rem; }
.btn:hover { background: #1557b0; }
.btn-secondary { background: #666; }
.btn-secondary:hover { background: #555; }
.btn-group { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.actions { margin-bottom: 1rem; }

/* Table */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e0e0e0; }
th { background: #fafafa; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; color: #666; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9f9f9; cursor: pointer; }
.empty { text-align: center; padding: 2rem; color: #999; }

/* Form */
.form-card { background: #fff; padding: 1.5rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-width: 500px; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.875rem; }
input, select { width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.875rem; }
input:focus, select:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }
.error { color: #d93025; font-size: 0.8rem; margin-top: 0.25rem; display: none; }

/* Detail card */
.detail-card { background: #fff; padding: 1.5rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-width: 600px; }
.detail-row { display: flex; padding: 0.75rem 0; border-bottom: 1px solid #eee; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; width: 120px; flex-shrink: 0; color: #666; font-size: 0.875rem; text-transform: uppercase; }
.detail-value { flex: 1; font-size: 0.95rem; }

/* Badges */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge-blue { background: #e8f0fe; color: #1a73e8; }
.badge-green { background: #e6f4ea; color: #137333; }

/* Status messages */
.not-found { text-align: center; padding: 3rem; color: #999; }
.not-found h2 { margin-bottom: 0.5rem; color: #666; }
.loading { text-align: center; padding: 3rem; color: #999; }

