*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

nav {
  background: #1a1a2e;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav a { color: #ccc; text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: #fff; }
nav .logout { margin-left: auto; color: #e77; }

main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }

h1 { margin-bottom: 1.5rem; color: #1a1a2e; }

/* Login */
.login-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; gap: 1rem;
}
.login-page form {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: #fff; padding: 2rem; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); min-width: 300px;
}

/* Forms */
label { font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="file"] {
  padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.95rem;
}
button {
  padding: 0.5rem 1rem; border: none; border-radius: 4px;
  background: #1a1a2e; color: #fff; cursor: pointer; font-size: 0.9rem;
}
button:hover { background: #16213e; }
button.danger { background: #c0392b; }
button.danger:hover { background: #a93226; }

.upload-form, .request-form {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fff; padding: 1.25rem; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 2rem;
}

.error { color: #c0392b; font-size: 0.9rem; }
.empty { color: #888; font-style: italic; }

/* Table */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f9f9f9; font-size: 0.85rem; text-transform: uppercase; color: #666; }
td a { color: #2980b9; text-decoration: none; }
td a:hover { text-decoration: underline; }

.inline-form { display: inline-flex; gap: 0.25rem; align-items: center; }
.inline-form input[type="text"] { padding: 0.25rem 0.5rem; font-size: 0.85rem; width: 180px; }
.inline-form button { padding: 0.25rem 0.5rem; font-size: 0.8rem; }

/* Request list */
.request-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.request-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 1rem 1.25rem; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-left: 4px solid #2980b9;
}
.request-list li.fulfilled { border-left-color: #27ae60; opacity: 0.7; }
.request-info { display: flex; flex-direction: column; gap: 0.2rem; }
.request-title { font-weight: 600; }
.request-desc { font-size: 0.9rem; color: #666; }
.request-meta { font-size: 0.8rem; color: #999; }
.request-actions { display: flex; gap: 0.5rem; }


/* Stats */
.stats-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-card {
  background: #fff; padding: 1.5rem 2rem; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex;
  flex-direction: column; align-items: center; min-width: 160px; flex: 1;
}
.stat-value { font-size: 2rem; font-weight: 700; color: #1a1a2e; }
.stat-label { font-size: 0.85rem; color: #888; margin-top: 0.25rem; }
