/* ========== Global Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f8f9fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #222;
  line-height: 1.5;
}

/* ========== Layout ========== */
.site-header {
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .brand {
  font-weight: 600;
  font-size: 1.2rem;
}

.site-header nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: #10b981;
}

.content {
  padding: 25px 35px;
  max-width: 900px;
  margin: 0 auto;
}

/* ========== Forms ========== */
form {
  background: white;
  padding: 20px;
  border-radius: 6px;
  max-width: 500px;
  border: 1px solid #ddd;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="float"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  margin-top: 20px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: #10b981;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

form button:hover {
  background: #059669;
}

/* ========== Flash Messages ========== */
.flash-container {
  margin-bottom: 20px;
}

.flash {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.flash-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.flash-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* ========== Dashboard ========== */
h1 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
}

a {
  color: #1e40af;
}

a:hover {
  color: #1d4ed8;
}

/* Buttons */
.button {
  padding: 8px 14px;
  background: #1f2937;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 15px;
  display: inline-block;
}

.button:hover {
  background: #374151;
}

/* ========== Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

table thead {
  background: #111827;
  color: #fff;
}

table th,
table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

table tr:hover {
  background: #f3f4f6;
}

table th {
  font-weight: 600;
}

.center-box {
  max-width: 400px;
  margin: auto;
  margin-top: 0;
  background: white;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  /* Flexbox centering of the full page */
  position: relative;
  top: 50vh;
  transform: translateY(-50%);
}

/* Default dashboard/application background */
body {
  background: #f8f9fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #222;
  line-height: 1.5;
}

/* Stadium background ONLY for login/register */
.login-bg {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("../static/browns_stadium.jpg") no-repeat center center fixed !important;
  background-size: cover !important;
}


/* Centered login box */
.center-box {
  max-width: 400px;
  margin: auto;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.92); /* slight transparency for a premium tile look */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);

  position: relative;
  top: 50vh;
  transform: translateY(-50%);
}

.center-box h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #111;
}

/* BUTTON VARIANTS FOR DASHBOARD ACTIONS */
.btn-edit {
  display: inline-block;
  padding: 6px 12px;
  background-color: #10b981;  /* Green */
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-edit:hover {
  background-color: #059669;
}

/* DELETE BUTTON – FINAL VERSION */
button.btn-delete {
  display: inline-block;
  padding: 6px 12px;
  background-color: #ef4444 !important;  /* Red */
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: none !important;

  /* Remove native button styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Remove mobile tap highlight */
  -webkit-tap-highlight-color: transparent;
}

button.btn-delete:hover {
  background-color: #dc2626 !important;
}

/* Remove ALL focus/active outlines, glows, borders */
button.btn-delete:focus,
button.btn-delete:focus-visible,
button.btn-delete:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Firefox inner focus fix */
button.btn-delete::-moz-focus-inner {
  border: 0 !important;
}

/* Inline forms in tables (e.g., Delete button) should not look like full cards */
table td form {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  max-width: none;
}

/* Make Edit and Delete buttons identical height */
.btn-edit,
.btn-delete {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 32px;               /* consistent button height */
  padding: 0 12px;            /* horizontal padding only */
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1;             /* prevents taller anchors */
}

/* Ensure Delete keeps its red background */
.btn-delete {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
}

/* Delete hover */
.btn-delete:hover {
  background-color: #dc2626 !important;
}

/* Edit stays green */
.btn-edit {
  background-color: #10b981 !important;
  color: white !important;
  text-decoration: none !important;
}

/* Edit hover */
.btn-edit:hover {
  background-color: #05966
}

/* Center the Actions header */
th.actions-col {
  text-align: center;
}

/* Inline forms (e.g., header actions) should not look like big white cards */
form.inline-form {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: inline;
}

/* Don't push the button down inside inline forms */
form.inline-form button {
  margin-top: 0;
}






