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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Header */
header {
  background: #27ae60;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-around;
  background: #2c3e50;
  padding: 10px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Container */
.container {
  padding: 15px;
}

/* Card style */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form */
form input, form textarea, form select, form button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
form button {
  background: #27ae60;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover {
  background: #219150;
}

/* Table (mobile-friendly) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
table th, table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.9rem;
}
table th {
  background: #27ae60;
  color: #fff;
}

/* Summary */
.summary {
  font-weight: bold;
  color: #27ae60;
  margin-top: 15px;
  text-align: right;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  nav a {
    margin: 8px 0;
    font-size: 1rem;
  }
  table, thead, tbody, th, td, tr {
    display: block;
  }
  table tr {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
  }
  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    text-align: left;
  }
}

/* Back button */
.back-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #2c3e50;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s;
}
.back-btn:hover {
  background: #1a252f;
}

/* Bottom navigation bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2c3e50;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}
.bottom-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  flex: 1;
}
.bottom-nav a i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

