/* ========================= */
/* Global Reset - Removes default margin, padding and sets box-sizing to border-box for all elements */
/* ========================= */
:root {
  --primary-color: #007bff;
  --primary-color-dark: #0056b3;
  --text-color: #333;
  --text-color-light: #666;
  --bg-color: #f0f0f0;
  --white-color: #fff;
  --border-color: #ddd;
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

/* ========================= */
/* Body - Sets global font, background color and text color */
/* ========================= */
body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ========================= */
/* Navbar Styles - Basic top navigation bar with a subtle border */
/* ========================= */
.navbar {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.navbar .navbar-brand {
  font-size: 1.125rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.navbar img {
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
}

/* ========================= */
/* Main Card - Central container for the form */
/* ========================= */
.card {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  max-width: 700px;
  margin: 1.875rem auto;
  box-shadow: var(--card-shadow);
}

/* ========================= */
/* Headings - Simple centered heading with margin */
/* ========================= */
h1 {
  font-size: 1.5rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 0.9375rem;
}

/* ========================= */
/* Paragraph Text */
/* ========================= */
p {
  font-size: 0.875rem;
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* ========================= */
/* Form - Spacing and layout for labels, inputs and select boxes */
/* ========================= */
form {
  margin-top: 0.9375rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3125rem;
  color: #555;
}

input[type="file"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.625rem;
  margin-bottom: 0.9375rem;
  border: 1px solid var(--border-color);
  border-radius: 0.3125rem;
  background-color: var(--white-color);
}

/* ========================= */
/* Buttons - Simple styled buttons with padding */
/* ========================= */
button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0.625rem 0.9375rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--primary-color-dark);
}

/* ========================= */
/* Additional Options Section - Hidden by default */
/* ========================= */
.additional-options {
  background-color: #f8f8f8;
  border: 1px solid var(--border-color);
  padding: 0.9375rem;
  border-radius: 0.3125rem;
  display: none;
  margin-top: 0.9375rem;
}

/* Class to show the additional options section */
.show-options {
  display: block;
}

/* ========================= */
/* Image Preview - Hidden by default, shown when image is uploaded */
/* ========================= */
.image-preview {
  display: none;
  max-width: 100%;
  max-height: 300px;
  margin-top: 0.625rem;
  border: 1px solid var(--border-color);
  background-color: #f9f9f9;
  padding: 0.3125rem;
  border-radius: 0.3125rem;
}

/* Class to show image preview */
.image-preview.show {
  display: block;
}

/* ========================= */
/* Footer - Simple footer with small text and border */
/* ========================= */
footer {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-color-light);
  margin-top: 1.875rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border-color);
}

footer p {
  margin: 0;
}

/* ========================= */
/* Responsive Design - Adjust padding and font size on smaller screens */
/* ========================= */
@media (max-width: 768px) {
  .card {
    padding: 0.9375rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  button {
    width: 100%; /* Full-width buttons for smaller screens */
  }
}