/*
 * Global stylesheet for the Martial Arts Promotions Tracker UI.
 *
 * This file defines a simple, consistent design system that is
 * reused across all pages of the application. It sets a base
 * font, colours, spacing, and component styles so that tables,
 * forms and buttons share a coherent look and feel. Adjust these
 * values to suit your personal taste or gym branding.
 */

/* Base layout and typography */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
  margin: 20px;
}

/* Card container used to group content with subtle shadow */
.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 1rem;
}

/* Header section for page title and actions */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Tag/badge styling */
.tag {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 4px;
  margin-top: 2px;
  border-radius: 4px;
  background-color: #e9ecef;
  color: #343a40;
  font-size: 12px;
}

/* Smaller button variant */
.btn-small {
  font-size: 12px;
  padding: 4px 8px;
}

/* Constrain content to a reasonable width and centre it */
.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: #343a40;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: #fff;
}

th, td {
  padding: 8px;
  border: 1px solid #dee2e6;
  text-align: left;
}

th {
  background-color: #e9ecef;
  font-weight: 600;
}

/* Zebra striping for table rows */
tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Links */
a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Reusable button styling for links and inputs */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  background-color: #007bff;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color 0.15s ease-in-out;
}

.btn:hover {
  background-color: #0069d9;
}

/* Form controls */
form label {
  display: block;
  margin-bottom: 0.5rem;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form input[type="email"],
form input[type="password"],
form textarea {
  padding: 6px 8px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin-top: 0.25rem;
  box-sizing: border-box;
}

form input[type="submit"],
form button[type="submit"] {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
  background-color: #0069d9;
}

/* Fieldset and legend styling */
fieldset {
  border: 1px solid #dee2e6;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

legend {
  padding: 0 10px;
  font-weight: bold;
  color: #495057;
}

/* Error messages */
.error {
  color: #dc3545;
  margin-bottom: 1rem;
}