/* Global Styles */
body {
  background: #f7f7f7;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}
a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Containers */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Login container */
.login-container {
  width: 90%;
  max-width: 420px;
  margin: 120px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Headings */
h1, h2, h3 { margin: 0 0 20px; text-align: center; }

/* Forms */
form label { display: block; margin-top: 15px; font-weight: bold; }
form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
  width: 100%; padding: 10px; margin-top: 5px;
  border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box;
}
form button, .btn {
  display: inline-block;
  padding: 10px 16px; background: #007bff; border: none; color: #fff;
  margin-top: 16px; border-radius: 9999px; font-size: 15px; cursor: pointer;
}
form button:hover, .btn:hover { background: #0056b3; }

/* Secondary/Destructive Buttons */
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #545b62; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #b52a38; }
.btn-success { background: #28a745; }
.btn-success:hover { background: #1f7f35; }

/* Layout helpers */
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt-0{margin-top:0}.mt-10{margin-top:10px}.mt-20{margin-top:20px}
.mb-0{margin-bottom:0}.mb-10{margin-bottom:10px}.mb-20{margin-bottom:20px}

/* Tables */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}
table, th, td { border: 1px solid #e5e7eb; }
th, td { padding: 12px; text-align: left; }
th { background-color: #f2f2f2; }

/* Messages */
.success { color: #28a745; margin: 15px 0; text-align: center; }
.error { color: #d9534f; margin: 15px 0; text-align: center; }

/* Pagination */
.pagination { text-align: center; margin: 30px 0; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 12px; margin: 0 4px;
  border: 1px solid #ddd; border-radius: 9999px; color: #007bff;
}
.pagination span.current { background: #007bff; color: #fff; border-color: #007bff; }

/* Detail box */
.detail-box {
  background: #fafafa; padding: 15px; border: 1px solid #ddd; border-radius: 12px; margin-top: 10px;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: none; align-items: center; justify-content: center; z-index: 9999;
}
.modal {
  background: #fff; border-radius: 12px; width: 90%; max-width: 560px;
  padding: 22px 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; }
.modal-close { cursor: pointer; font-size: 20px; font-weight: bold; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
