/* Auth page styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
}

.auth-content {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.8em;
  color: #666;
}

.notice, .alert {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.notice {
  background-color: #e0f7fa;
  color: #00838f;
}

.alert {
  background-color: #ffebee;
  color: #c62828;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.actions {
  margin-top: 20px;
  margin-bottom: 20px;
}

.actions input[type="submit"] {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.actions input[type="submit"]:hover {
  background-color: #1976d2;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.dashboard-menu ul {
  list-style: none;
  padding: 0;
}

.dashboard-menu li {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #e3f2fd;
  border-radius: 4px;
}

.dashboard-menu a {
  color: #1565c0;
  text-decoration: none;
  font-weight: bold;
}

.dashboard-status {
  background-color: #e8f5e9;
  padding: 15px;
  border-radius: 4px;
}

/* Admin table styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table th, 
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.table tr:hover {
  background-color: #f9f9f9;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.85em;
}

.btn-primary {
  background-color: #2196f3;
  color: white;
}

.btn-primary:hover {
  background-color: #1976d2;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #6c757d;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  margin-left: -1.5em;
  vertical-align: top;
}

.form-check-label {
  display: inline-block;
}

/* Card styles */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 500;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

/* Utility classes */
.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.bg-primary {
  background-color: #2196f3!important;
  color: white;
}

.bg-secondary {
  background-color: #6c757d!important;
  color: white;
}

.bg-success {
  background-color: #28a745!important;
  color: white;
}

.bg-danger {
  background-color: #dc3545!important;
  color: white;
}

.bg-warning {
  background-color: #ffc107!important;
  color: #212529;
}

.bg-info {
  background-color: #17a2b8!important;
  color: white;
}
/* The sign-in form (Devise's stock view): this stylesheet was written for it
   and never linked from the auth layout (Jes, Telegram #16920). A narrow
   card instead of one as wide as the admin tables; the inputs inside their
   box; "Remember me" beside its checkbox. */
.auth-content,
.auth-content * {
  box-sizing: border-box;
}

.auth-content:has(> form.new_user) {
  max-width: 26rem;
  margin: 0 auto;
  padding: 24px;
}

.auth-content > h2 {
  margin: 0 0 20px;
}

.auth-content .field input[type="email"],
.auth-content .field input[type="password"] {
  font-size: 16px;
}

.auth-content .field input[type="checkbox"] + label {
  display: inline;
  margin: 0 0 0 4px;
  font-weight: normal;
}
