:root {
  --bg: #f7f9fc;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #2563eb; /* deep blue accent */
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* Left nav */
aside {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 24px;
  box-shadow: var(--shadow);
}
aside .brand {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}
aside nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
aside nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
aside nav a:hover, aside nav a.active {
  background: var(--accent);
  color: #fff;
}

/* Main content */
main {
  flex: 1;
  padding: 40px;
}
h1 {
  font-size: 26px;
  margin-bottom: 16px;
}
p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Image cards */
figure {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}
figure img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
}
figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover {
  background: #1e4ed8;
}
.btn:active {
  transform: scale(0.97);
}
.btn.secondary {
  background: #f3f4f6;
  color: var(--text);
}
.btn.secondary:hover {
  background: #e5e7eb;
}

/* Modal background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}

/* Modal box */
.modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Close button */
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* Error message */
.error {
  color: red;
  margin-top: 10px;
}
