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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

/* NAV */
nav {
  background-color: #1a252f;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav a {
  color: #bdc3c7;
  text-decoration: none;
  font-weight: 500;
  padding: 18px 20px;
  display: inline-block;
  transition: background-color 0.2s, color 0.2s;
  font-size: 15px;
}

nav a:first-child {
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-right: 10px;
}

nav a:hover {
  background-color: #2c3e50;
  color: white;
}

/* CONTAINER */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 24px;
}

/* HEADINGS */
h1 {
  font-size: 28px;
  color: #1a252f;
  margin-bottom: 24px;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  color: #2c3e50;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

/* LINKS */
a {
  color: #2980b9;
  text-decoration: none;
}

a:hover {
  color: #1a6395;
  text-decoration: underline;
}

/* LISTS */
ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

ul li {
  background: white;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s;
}

ul li:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* CARD */
.card {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.card p {
  margin-bottom: 10px;
  font-size: 15px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* FORMS */
form {
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  max-width: 540px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

input[type='text'],
input[type='email'],
input[type='url'],
input[type='number'],
input[type='date'],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #dce1e7;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
  background-color: white;
}

textarea {
  height: 110px;
  resize: vertical;
}

/* BUTTONS */
button[type='submit'] {
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 11px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}

button[type='submit']:hover {
  background-color: #1a6395;
  transform: translateY(-1px);
}

button[type='submit']:active {
  transform: translateY(0);
}

.btn-delete {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  font-weight: 500;
}

.btn-delete:hover {
  color: #c0392b;
  text-decoration: underline;
}

.btn-restore {
  background: none;
  border: none;
  color: #27ae60;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  font-weight: 500;
}

.btn-restore:hover {
  color: #1e8449;
  text-decoration: underline;
}

/* ACTIONS */
.actions {
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ERROR */
.error {
  background-color: #fdeded;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

/* INDEX HEADER */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h1 {
  margin-bottom: 0;
}

.btn-primary {
  background-color: #2980b9;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #1a6395;
  color: white;
  text-decoration: none;
}

/* BADGE */
.badge {
  display: inline-block;
  background-color: #eaf4fb;
  color: #2980b9;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 4px;
}

/* EMPTY STATE */
.empty {
  color: #999;
  font-style: italic;
  font-size: 14px;
  padding: 12px 0;
}