:root {
  --bg: #f7f9fc;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #2563eb;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-header {
  text-align: center;
  margin: 20px 0;
}

.page-header h1 {
  margin: 0;
  font-size: 2em;
}

.page-header p {
  margin: 0;
  font-size: 1.2em;
  color: #555;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
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; }

.page-header {
  text-align: center;
  margin-bottom: 30px;
}
.page-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--muted);
  font-size: 16px;
}


/* 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;
  border-radius: var(--radius);
}
figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Action buttons under each card */
.card-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* General 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; }

/* Custom file input wrapper */
.file-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

/* Hide the native file input */
.file-upload input[type="file"] {
  position: absolute;
  left: -9999px;
}

/* Styled "Choose File" button */
.file-upload-label {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.file-upload-label:hover { background: #1e4ed8; }
.file-upload-label:active { transform: scale(0.97); }

/* Filename text next to button */
.file-upload-text {
  font-size: 14px;
  color: var(--muted);
}

/* Return Home button styling */
.return-home {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.return-home:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #43A047, #1B5E20);
}
