/* 1. Reset default margins/paddings and ensure box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Make html/body take up full height */
html,
body {
  height: 100%;
}

/* 3. Use flexbox on the body to allow a sticky footer */
body {
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f2f2;
  color: #333;
  line-height: 1.6;
}

/* Navigation Bar */
.nav-bar {
  background: #4caf50;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.nav-bar h2 {
  font-size: 2rem;
  margin: 0;
}

/* Main Container
     flex: 1 makes the container expand to fill available space,
     pushing the footer down if content is short.
  */
.container {
  flex: 1;
  max-width: 1000px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Upload Section */
.upload-section {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-section h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.upload-section input[type="file"] {
  margin: 1rem auto;
  padding: 0.5rem;
  font-size: 1rem;
}

.buttons {
  margin-top: 1.5rem;
}

.buttons button {
  background: #4caf50;
  border: none;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.buttons button:hover {
  background: #45a049;
}

/* Info Section */
.info-section {
  padding: 1.5rem;
  background: #e9f5e9;
  border-left: 4px solid #4caf50;
  border-radius: 4px;
}

.info-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
