/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require font-awesome
 *= require_tree .
 *= require_self
 */

/* Form Inputs */
.form-input {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  ring: 2px;
  ring-color: rgba(14, 165, 233, 0.2);
}

.form-select {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

.form-select:focus {
  outline: none;
  border-color: #0ea5e9;
  ring: 2px;
  ring-color: rgba(14, 165, 233, 0.2);
}

.form-textarea {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

.form-textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  ring: 2px;
  ring-color: rgba(14, 165, 233, 0.2);
}

.form-checkbox {
  border-radius: 0.25rem;
  border-color: #d1d5db;
  color: #0ea5e9;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.form-checkbox:focus {
  outline: none;
  border-color: #0ea5e9;
  ring: 2px;
  ring-color: rgba(14, 165, 233, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.btn:focus {
  outline: none;
  ring: 2px;
  ring-offset: 2px;
}

.btn-primary {
  background-color: #0284c7;
  color: white;
}

.btn-primary:hover {
  background-color: #0369a1;
}

.btn-primary:focus {
  ring-color: #0ea5e9;
}

.btn-secondary {
  background-color: white;
  color: #374151;
  border-color: #d1d5db;
}

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

.btn-secondary:focus {
  ring-color: #0ea5e9;
}

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

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

.btn-danger:focus {
  ring-color: #ef4444;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.card-body {
  padding: 1.5rem;
}

/* Pagination Styling */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination a,
.pagination .current,
.pagination .previous_page,
.pagination .next_page,
.pagination .disabled {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.pagination a {
  color: #374151;
  background-color: white;
}

.pagination a:hover {
  background-color: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

.pagination .current {
  background-color: #0284c7;
  color: white;
  border-color: #0284c7;
}

.pagination .disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.pagination .disabled:hover {
  background-color: white;
  color: #9ca3af;
}

.pagination .previous_page,
.pagination .next_page {
  font-weight: 600;
}

/* Ensure pagination container is centered */
.pagination-container {
  display: flex;
  justify-content: center;
}
