*, *::before, *::after {
    box-sizing: border-box;
  }

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
  }
  
  .container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  h1, h2 {
    text-align: center;
    color: #333;
  }
  
/* Form Container */
form {
    display: flex;
    flex-direction: column;
  }
  
  /* Form Groups */
  form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  /* Form Labels */
  form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
  }
  
  /* Form Inputs, Selects, and Textareas */
  form input,
  form select,
  form textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Ensure all inputs have the same height */
  form input,
  form select,
  form textarea {
    height: 40px;
  }
  
  /* Remove default appearance for selects */
  form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="%23777" d="M0 0l5 5 5-5H0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 5px;
  }
  
  /* Form Inputs Focus State */
  form input:focus,
  form select:focus,
  form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
  }
  
  /* Form Buttons */
  form button {
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 40px;
    font-size: 16px;
  }
  
  /* Form Buttons Hover State */
  form button:hover {
    background-color: #0056b3;
  }
  
  /* Optional: Disabled Button State */
  form button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
  }
  
  #notification p {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
  }
  
  th {
    background-color: #f2f2f2;
    color: #333;
  }
  
  tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  button.toggle-form {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 16px;
  }
  
  button.toggle-form:hover {
    background-color: #218838;
  }

  /* app/assets/stylesheets/application.css */

/* Existing Styles... */

.hidden {
    display: none;
  }
  
  /* Modal Overlay */
  .dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's on top */
  }
  
  /* Dialog Content */
  .dialog-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  /* Help Button */
  .help-button {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px; /* Space below the button */
  }
  
  .help-button:hover {
    background-color: #e0a800;
  }
  
  /* Close Button */
  .close-button {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .close-button:hover {
    background-color: #c82333;
  }
  
  /* Optional: Prevent background scrolling when modal is open */
  .modal-open {
    overflow: hidden;
  }
  .hidden {
    display: none;
  }

  .field_with_errors {
    border-color: #dc3545;
    background-color: #f8d7da;
  }

  /* Sort Button Styles */
.sort-button {
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
  }
  
  .sort-button:hover {
    background-color: #0056b3;
  }

/* app/assets/stylesheets/application.css */

/* Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    justify-content: center; /* Center the pagination horizontally */
    margin-top: 20px; /* Space above the pagination */
  }
  
  /* Pagination List */
  .pagination {
    display: flex;
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
  }
  
  /* Pagination Items */
  .pagination li {
    margin: 0 3px; /* Reduced space between pagination buttons */
  }
  
  /* Pagination Links and Spans */
  .pagination a,
  .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px; /* Reduced padding for a more compact look */
    text-decoration: none;
    color: #007bff; /* Bootstrap primary blue */
    border: 1px solid #dee2e6; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
    font-size: 13px; /* Slightly smaller font size */
    transition: background-color 0.2s, color 0.2s; /* Smooth transitions */
    min-width: 32px; /* Ensure buttons aren't too narrow */
  }
  
  /* Hover Effect for Links */
  .pagination a:hover {
    background-color: #e2e6ea; /* Slightly darker gray on hover */
    color: #0056b3; /* Darker blue text on hover */
  }
  
  /* Active Page Styling */
  .pagination .active span {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border-color: #007bff; /* Blue border */
    cursor: default; /* Disable pointer */
    pointer-events: none; /* Prevent interaction */
  }
  
  /* Disabled Links Styling */
  .pagination .disabled span {
    color: #6c757d; /* Gray text */
    border-color: #dee2e6; /* Light gray border */
    cursor: not-allowed; /* Show not-allowed cursor */
    background-color: #f8f9fa; /* Very light gray background */
  }
  
  /* Gap (Ellipsis) Styling */
  .pagination .gap span {
    color: #6c757d; /* Gray text */
    border: none; /* No border */
  }
  
  /* Responsive Adjustments */
  
  /* Tablets and Small Desktops */
  @media (max-width: 992px) and (min-width: 601px) {
    .pagination a,
    .pagination span {
      padding: 6px 9px;
      font-size: 12px;
    }
  
    .pagination li {
      margin: 0 2px;
    }
  }
  
  /* Mobile Devices */
  @media (max-width: 600px) {
    .pagination a,
    .pagination span {
      padding: 5px 8px;
      font-size: 11px;
    }
  
    .pagination li {
      margin: 0 1px;
    }
  
    /* Adjust max-width for very small screens */
    .pagination-wrapper {
      max-width: 100%;
    }
  }
  
