/* Base */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 400px;
  margin: 60px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 200px;
  background-color: #CCC;
  padding: 10px;
  border-radius: 5px;
}

h2 {
  color: #0d1a26;
  text-align: center;
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

input[type=text],
input[type=password] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Buttons */
button.btn-primary {
  width: 100%;
  padding: 12px;
  background: #2A328C;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}

button.btn-secondary {
  padding: 12px;
  background: #2A328C !important;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-top: 10px;
}

.logo-small {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

.message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-top: 10px;
}

/* Dashboard shell */
.dashboard-header {
  background-color: #2A328C;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

.dashboard-content {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-box {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f4f4f4;
  border-left: 5px solid #2A328C;
}

.dashboard-nav a {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 14px;
  background-color: #2A328C;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.dashboard-nav a:hover {
  background-color: #1f265f;
}

/* Primary action button used across pages */
.save-button {
  background-color: #2A328C;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.save-button:hover {
  background-color: #1f265f;
}

.editable-input { 
  border: 1px solid #ccc; 
  padding: 5px; 
}

.edit-button, .save-button, .cancel-button { 
  margin-left: 10px; 
}

/* Pagination */
.pagination a {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  background-color: #2A328C;
  color: white;
}

/* Multi-select filters */
.multi-select[multiple] {
  height: auto;                 /* Expand naturally */
  min-height: calc(1.5em * 10); /* ~10 rows tall */
  overflow-y: auto;             /* Scroll when long */
}

/* Form hint */
.form-hint {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* Unify action button styling */
button.save-button,
a.save-button,
button.delete-button,
a.delete-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  transition: transform .02s ease, filter .15s ease;
  color: #fff;
}

/* Destructive (red) */
.delete-button { background: #dc2626; }
.delete-button:hover { filter: brightness(0.95); }
.delete-button:active { transform: translateY(1px); }

/* Input group polish (used on login and filters) */
.input-group-text a { 
  display: inline-flex; 
  align-items: center; 
  height: 100%; 
}
