/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* Body */
body {
  background-color: #f3f6fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  background-color: #0046d5;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: 600;
}

.nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
  transition: 0.3s;
}

.nav a:hover,
.nav .active {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Card */
.view-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.view-card h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #222;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

th, td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f0f2f5;
  color: #333;
  font-weight: 600;
}

/* Button */
.edit-btn {
  background-color: #0046d5;
  color: white;
  border: none;
  padding: 7px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.edit-btn:hover {
  background-color: #0031a5;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  padding: 7px 15px;
  border-radius: 6px;
  text-decoration: none;
  margin-left: 10px;
  transition: background 0.3s ease;
}

.delete-btn:hover {
  background-color: #c0392b;
}

.export-btn {
  background-color: #28a745;
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.export-btn:hover {
  background-color: #218838;
}


/* Download Report Button */
.download-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 20px;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #e68900;
}

/* Edit Section */
#editSection {
  background: #f9f9f9;
  margin-top: 30px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#editSection h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #0046d5;
}

#editSection input {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.2s;
}

#editSection input:focus {
  border-color: #0046d5;
  outline: none;
}

#updateBtn {
  display: block;
  margin: 20px auto 0;
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#updateBtn:hover {
  background-color: #218838;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    margin-top: 10px;
  }

  table {
    min-width: 100%;
  }

  .view-card {
    padding: 20px;
  }

  .edit-btn {
    padding: 6px 12px;
  }

  .download-btn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 20px;
  }

  #editSection input {
    width: 95%;
  }

  #updateBtn {
    width: 95%;
  }
}
