/*
 * Complete ActiveAdmin CSS for Rails 8 with Propshaft
 * Professional styling for all ActiveAdmin components
 */

/* Base reset and typography */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #323537;
  background: #f8f9fa;
}

body.active_admin {
  margin: 0;
  padding: 0;
}

/* Clear floats */
.clearfix:after,
#wrapper:after,
#header:after {
  content: "";
  display: table;
  clear: both;
}

/* Main wrapper */
#wrapper {
  background: white;
  min-height: 100vh;
}

/* Header */
#header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-bottom: 1px solid #2c3e50;
  height: 50px;
  position: relative;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#header h1 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  line-height: 50px;
  margin: 0;
  padding: 0 25px;
  float: left;
  letter-spacing: 0.5px;
}

#header h1 a {
  color: white;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: color 0.2s ease;
}

#header h1 a:hover {
  color: #ecf0f1;
}

/* Navigation menu */
#header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  float: left;
  margin-left: 30px;
}

#header ul li {
  float: left;
  position: relative;
}

/* Utility navigation */
#utility_nav {
  position: absolute;
  right: 25px;
  top: 0;
  height: 50px;
}

#utility_nav li {
  float: left;
  margin-left: 5px;
  list-style: none;
}

#utility_nav a {
  color: #bdc3c7;
  font-size: 12px;
  line-height: 50px;
  text-decoration: none;
  padding: 0 12px;
  border-radius: 3px;
  transition: all 0.2s ease;
  margin: 8px 2px;
  display: block;
}

#utility_nav a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* Title bar */
#title_bar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid #e9ecef;
  height: 60px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#title_bar h2 {
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
  line-height: 60px;
  margin: 0;
  padding: 0 25px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* Breadcrumbs */
.breadcrumb {
  color: #6c757d;
  font-size: 12px;
  margin-bottom: 0;
  padding: 0 25px;
  line-height: 60px;
  float: left;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.breadcrumb a:hover {
  color: #0056b3;
  background: rgba(0,123,255,0.1);
  text-decoration: none;
}

/* Action items */
.action_items {
  position: absolute;
  right: 25px;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
}

.action_items a {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: 1px solid #0056b3;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  text-decoration: none;
  text-transform: uppercase;
  margin-left: 8px;
  display: inline-block;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.action_items a:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  box-shadow: 0 4px 8px rgba(0,123,255,0.4);
  transform: translateY(-1px);
}

/* Main content wrapper */
#main_content_wrapper {
  position: relative;
  display: flex;
}

#main_content_wrapper.with_sidebar {
  margin-right: 0;
}

#main_content {
  flex: 1;
  margin: 0;
  padding: 30px;
  background: white;
  min-height: calc(100vh - 110px);
  margin-right: 300px;
}

/* Sidebar */
#sidebar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 1px solid #dee2e6;
  position: fixed;
  right: 0;
  top: 110px;
  width: 300px;
  height: calc(100vh - 110px);
  box-shadow: -2px 0 8px rgba(0,0,0,0.08);
  z-index: 10;
  overflow-y: auto;
}

.sidebar_section {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0;
  padding: 25px;
}

.sidebar_section h3 {
  color: #495057;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* Filter forms */
.filter_form_field {
  margin-bottom: 20px;
}

.filter_form_field label,
.sidebar_section label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #495057;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter_form_field select,
.filter_form_field input,
.sidebar_section select,
.sidebar_section input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  background: white;
  transition: all 0.2s ease;
}

.filter_form_field select:focus,
.filter_form_field input:focus,
.sidebar_section select:focus,
.sidebar_section input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

/* Buttons */
input[type="submit"],
.button,
button {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border: 1px solid #1e7e34;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(40,167,69,0.3);
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

input[type="submit"]:hover,
.button:hover,
button:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  box-shadow: 0 4px 8px rgba(40,167,69,0.4);
  transform: translateY(-1px);
}

.clear_filters_btn,
.sidebar_section a.clear_filters_btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  border: 1px solid #495057 !important;
  border-radius: 6px !important;
  color: white !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2) !important;
  box-shadow: 0 2px 4px rgba(108,117,125,0.3) !important;
  transition: all 0.2s ease !important;
  letter-spacing: 0.5px !important;
  margin-left: 8px !important;
  display: inline-block !important;
}

.clear_filters_btn:hover,
.sidebar_section a.clear_filters_btn:hover {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
  box-shadow: 0 4px 8px rgba(108,117,125,0.4) !important;
  transform: translateY(-1px) !important;
  color: white !important;
  text-decoration: none !important;
}

/* Tables */
table.index_table {
  border: 1px solid #dee2e6;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

table.index_table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  color: #495057;
  font-size: 12px;
  font-weight: 700;
  padding: 15px 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

table.index_table th:first-child {
  border-top-left-radius: 8px;
  padding-left: 20px;
}

table.index_table th:last-child {
  border-top-right-radius: 8px;
  border-right: none;
  padding-right: 20px;
}

table.index_table th a {
  color: #495057;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

table.index_table th a:hover {
  color: #007bff;
}

table.index_table td {
  border-bottom: 1px solid #f1f3f4;
  border-right: 1px solid #f1f3f4;
  padding: 15px 12px;
  vertical-align: middle;
  background: white;
  transition: all 0.2s ease;
}

table.index_table td:first-child {
  padding-left: 20px;
}

table.index_table td:last-child {
  border-right: none;
  padding-right: 20px;
}

table.index_table tr:hover td {
  background: #f8f9fa;
  border-color: #e9ecef;
}

table.index_table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

table.index_table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* Table links */
table.index_table a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

table.index_table a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* General links styling */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Navigation links in header */
#header ul li a {
  color: #bdc3c7;
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 50px;
  padding: 0 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 3px;
  margin: 8px 2px;
}

#header ul li a:hover,
#header ul li.current a {
  color: white;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Action links in tables */
.table_actions {
  white-space: nowrap;
}

.table_actions a {
  margin-right: 12px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.table_actions a:first-child {
  color: #007bff;
  background: rgba(0,123,255,0.1);
}

.table_actions a:first-child:hover {
  background: rgba(0,123,255,0.2);
}

.table_actions a:nth-child(2) {
  color: #28a745;
  background: rgba(40,167,69,0.1);
}

.table_actions a:nth-child(2):hover {
  background: rgba(40,167,69,0.2);
}

.table_actions a:last-child {
  color: #dc3545;
  background: rgba(220,53,69,0.1);
}

.table_actions a:last-child:hover {
  background: rgba(220,53,69,0.2);
}

/* Batch actions */
.batch_actions_selector {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.batch_actions_selector select {
  margin-right: 15px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 8px 12px;
  background: white;
}

.batch_actions_selector a {
  color: #007bff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.batch_actions_selector a:hover {
  color: #0056b3 !important;
  background: rgba(0,123,255,0.1) !important;
  text-decoration: none !important;
}

/* Scopes (tabs above table) */
.scopes {
  margin-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

.scopes .scope {
  display: inline-block;
  margin-right: 20px;
}

.scopes .scope a {
  color: #6c757d !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 10px 15px !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.2s ease !important;
  display: block !important;
}

.scopes .scope a:hover,
.scopes .scope.selected a {
  color: #007bff !important;
  border-bottom-color: #007bff !important;
  text-decoration: none !important;
}

/* Table header actions */
.table_tools {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table_tools a {
  color: #007bff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.table_tools a:hover {
  color: #0056b3 !important;
  background: rgba(0,123,255,0.1) !important;
  text-decoration: none !important;
}

/* Checkboxes */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #007bff;
  cursor: pointer;
}

/* Status tags */
.status_tag {
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.status_tag.yes,
.status_tag.published {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}

.status_tag.no,
.status_tag.unpublished {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(220,53,69,0.3);
}

/* Flash messages */
.flash {
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-weight: 500;
}

.flash.notice {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-left-color: #17a2b8;
  color: #0c5460;
}

.flash.alert,
.flash.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
  border-left-color: #dc3545;
  color: #721c24;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  background: white;
  border: 1px solid #dee2e6;
  color: #495057;
  display: inline-block;
  margin: 0 3px;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.pagination a:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination .current {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border-color: #0056b3;
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

/* Download links */
.download_links {
  margin-top: 20px;
  text-align: right;
  padding: 15px 0;
  border-top: 1px solid #e9ecef;
}

.download_links a {
  margin-left: 15px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: #007bff !important;
  text-decoration: none !important;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  border: 1px solid #007bff;
  background: rgba(0,123,255,0.05);
}

.download_links a:hover {
  background: rgba(0,123,255,0.15) !important;
  text-decoration: none !important;
  color: #0056b3 !important;
  border-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

/* Index footer links */
.index_footer .download_links a {
  border: none;
  background: transparent;
  padding: 4px 8px;
  margin-left: 10px;
}

.index_footer .download_links a:hover {
  background: rgba(0,123,255,0.1) !important;
  transform: none;
  box-shadow: none;
}

/* Forms */
form fieldset {
  border: none;
  margin: 0 0 25px 0;
  padding: 0;
}

form fieldset legend {
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

form fieldset ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

form fieldset ol li {
  margin: 0 0 20px 0;
  padding: 0;
}

form fieldset ol li label {
  color: #495057;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

form fieldset ol li input[type="text"],
form fieldset ol li input[type="password"],
form fieldset ol li input[type="email"],
form fieldset ol li textarea,
form fieldset ol li select {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 15px;
  width: 100%;
  box-sizing: border-box;
  background: white;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
}

form fieldset ol li input[type="text"]:focus,
form fieldset ol li input[type="password"]:focus,
form fieldset ol li input[type="email"]:focus,
form fieldset ol li textarea:focus,
form fieldset ol li select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

/* Login form */
#login {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 50px;
  margin: 80px auto;
  max-width: 450px;
  border: 1px solid #e9ecef;
}

#login h2 {
  color: #2c3e50;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

#login form fieldset ol li input[type="submit"] {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: 1px solid #0056b3;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

#login form fieldset ol li input[type="submit"]:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  box-shadow: 0 6px 16px rgba(0,123,255,0.4);
  transform: translateY(-2px);
}

/* Dashboard sections */
.dashboard_section {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 25px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard_section h3 {
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

/* Dashboard welcome section */
.dashboard_welcome {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Dashboard statistics */
.dashboard_stats {
  padding: 15px 0;
}

.stat_item {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 6px;
  border: 1px solid #e9ecef;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.stat_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat_number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
}

.stat_label {
  display: block;
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Dashboard panels */
.panel {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.panel h3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  color: #495057;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 15px 20px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.panel_contents {
  padding: 20px;
}

/* Dashboard tables */
.dashboard_section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.dashboard_section table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard_section table td {
  border-bottom: 1px solid #f1f3f4;
  padding: 12px 15px;
  vertical-align: middle;
  font-size: 13px;
}

.dashboard_section table tr:hover td {
  background: #f8f9fa;
}

/* Dashboard action buttons */
.dashboard_actions {
  margin-top: 30px;
}

.action_buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action_buttons a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 160px;
}

.action_buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
  text-decoration: none;
}

/* Price statistics */
.price_stats {
  padding: 15px 0;
}

.price_stats .stat_item {
  text-align: left;
  padding: 10px 15px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

/* Responsive dashboard */
@media (max-width: 768px) {
  .dashboard_welcome {
    padding: 20px 15px;
    text-align: left;
  }

  .action_buttons {
    flex-direction: column;
  }

  .action_buttons a {
    min-width: auto;
    width: 100%;
  }

  .stat_item {
    margin-bottom: 10px;
  }

  .panel_contents {
    padding: 15px;
  }
}

/* Result summary */
.index_footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-top: -1px;
}

.index_footer .pagination_information {
  color: #6c757d;
  font-size: 13px;
  font-weight: 500;
}

.index_footer .download_links {
  margin: 0;
  padding: 0;
  border: none;
}

/* Footer */
#footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 20px 25px;
  text-align: center;
  color: #6c757d;
  font-size: 12px;
}

#footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

#footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
  #main_content_wrapper {
    flex-direction: column;
  }

  #main_content_wrapper.with_sidebar {
    margin-right: 0;
  }

  #main_content {
    margin-right: 0;
    padding: 20px;
  }

  #sidebar {
    position: static;
    width: 100%;
    height: auto;
    top: auto;
    border-left: none;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    order: 1;
  }

  #header ul {
    display: none;
  }

  .action_items {
    position: static;
    margin-top: 10px;
    height: auto;
  }

  #title_bar h2 {
    font-size: 20px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  #login {
    margin: 20px;
    padding: 30px;
  }

  #header h1 {
    font-size: 16px;
    padding: 0 15px;
  }

  #utility_nav {
    right: 15px;
  }

  #title_bar h2 {
    font-size: 18px;
    padding: 0 15px;
  }

  #main_content {
    padding: 15px;
  }

  table.index_table {
    font-size: 12px;
  }

  table.index_table th,
  table.index_table td {
    padding: 10px 8px;
  }

  table.index_table th:first-child,
  table.index_table td:first-child {
    padding-left: 12px;
  }

  table.index_table th:last-child,
  table.index_table td:last-child {
    padding-right: 12px;
  }
}

/* Print styles */
@media print {
  #header,
  #sidebar,
  .action_items,
  .batch_actions_selector,
  .download_links {
    display: none !important;
  }

  #main_content_wrapper {
    margin-right: 0 !important;
  }

  body {
    background: white !important;
  }

  table.index_table {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}
