
body,
.admin__Wrapper {
  font-size: 15px !important;
  line-height: 1.6 !important;
}


.admin__Header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border-bottom: none !important;
  font-size: 16px !important;
}


h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

h2 {
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

.admin__ShowAction,
[data-testid="show-action"] {
  font-size: 16px !important;
}

.admin__ShowAction .admin__PropertyLabel,
.admin__ShowAction label {
  font-size: 17px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  color: #2d3748 !important;
}

.admin__ShowAction .admin__PropertyValue,
.admin__ShowAction .admin__PropertyInShow {
  font-size: 16px !important;
  line-height: 1.7 !important;
  padding: 12px 0 !important;
}

.admin__EditAction,
.admin__NewAction,
[data-testid="edit-action"],
[data-testid="new-action"] {
  font-size: 15px !important;
}

.admin__EditAction label,
.admin__NewAction label {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  color: #2d3748 !important;
  display: block !important;
}

label {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: #2d3748 !important;
  display: block !important;
}

.admin__ListAction label {
  font-size: 15px !important;
}

.admin__Sidebar {
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05) !important;
}

.admin__Box {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px !important;
  overflow: visible !important;
  font-size: 15px !important;
}

table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 8px 8px 0 0 !important;
  overflow: hidden !important;
}

table thead th {
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 16px !important;
  border: none !important;
  font-size: 15px !important;
}

table tbody {
  overflow: visible !important;
}

table tbody tr {
  transition: all 0.2s ease !important;
  border-bottom: 1px solid #e9ecef !important;
  overflow: visible !important;
}

table tbody tr:hover {
  background-color: #f8f9fa !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

table tbody td {
  padding: 14px 16px !important;
  border: none !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

[data-testid="actions-dropdown"] {
  position: unset !important;
}

div:has([data-testid="actions-dropdown"]),
.adminjs_ButtonGroupItem:has([data-testid="actions-dropdown"]) {
  position: unset !important;
}

.adminjs_DropDownMenu,
[class*="adminjs_DropDownMenu"],
[class*="DropDownMenu"],
section[class*="DropDownMenu"] {
  z-index: 10000 !important;
  position: absolute !important;
  top: 46px !important;
  right: 16px !important;
}

[class*="DropDown-Stick"]:not([class*="DropDownMenu"]),
[class*="DropDownButton"]:not([class*="DropDownMenu"]),
button[class*="DropDown"]:not([class*="DropDownMenu"]),
a[class*="DropDown"]:not([class*="DropDownMenu"]) {
  z-index: 1 !important;
  position: relative !important;
}

table tbody td [class*="DropDown-Stick"]:not([class*="DropDownMenu"]),
table tbody td button[class*="DropDown"]:not([class*="DropDownMenu"]),
table tbody td a[class*="DropDown"]:not([class*="DropDownMenu"]) {
  z-index: 1 !important;
  position: relative !important;
}

/* Keep datepicker visible in edit/new drawers */
[data-testid="edit-action"],
[data-testid="new-action"],
.admin__EditAction,
.admin__NewAction {
  overflow: visible !important;
}

[data-testid="edit-action"] form,
[data-testid="new-action"] form,
.admin__EditAction form,
.admin__NewAction form {
  min-height: calc(100vh - 170px) !important;
  display: flex !important;
  flex-direction: column !important;
}

[data-testid="edit-action"] form > *:last-child,
[data-testid="new-action"] form > *:last-child,
.admin__EditAction form > *:last-child,
.admin__NewAction form > *:last-child {
  margin-top: auto !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  background: #fff !important;
  padding-top: 12px !important;
}

[data-css*="DatePicker"],
[class*="DatePicker"],
[class*="datepicker"],
[class*="react-datepicker"] {
  z-index: 12000 !important;
}

[data-css*="drawer"],
[data-css*="Drawer"],
[class*="Drawer"],
[class*="drawer"],
[data-testid*="drawer"],
[data-testid*="action"],
[class*="Action"] {
  overflow: visible !important;
}

.react-datepicker-popper,
[class*="react-datepicker-popper"] {
  z-index: 25000 !important;
}

.react-datepicker,
[class*="react-datepicker"] {
  z-index: 25001 !important;
}

button {
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  font-size: 15px !important;
  padding: 10px 20px !important;
}

button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.admin__Badge {
  border-radius: 12px !important;
  padding: 4px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.admin__Navigation a {
  border-radius: 8px !important;
  margin: 4px 8px !important;
  transition: all 0.2s ease !important;
  font-size: 15px !important;
  padding: 10px 16px !important;
}

.admin__Navigation a:hover {
  background-color: rgba(102, 126, 234, 0.1) !important;
  transform: translateX(4px) !important;
}

.admin__Navigation a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.admin__Modal {
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.admin__Toast {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(10px) !important;
}

.admin__FilterDrawer {
  border-radius: 16px 0 0 16px !important;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1) !important;
}

.admin__Loader {
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.admin__Section {
  margin-bottom: 24px !important;
  padding: 20px !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.admin__Section h1,
.admin__Section h2,
.admin__Section h3 {
  color: #2d3748 !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid !important;
  border-image: linear-gradient(to right, #667eea, #764ba2) 1 !important;
  display: inline-block !important;
}

.admin__Pagination {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 24px !important;
}

.admin__Pagination button {
  min-width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
}

.admin__Pagination button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

p {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

ul,
ol {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

li {
  margin-bottom: 6px !important;
}

@media (max-width: 768px) {
  body,
  .admin__Wrapper {
    font-size: 14px !important;
  }
  
  .admin__Box {
    padding: 16px !important;
  }
  
  table {
    font-size: 14px !important;
  }
  
  table thead th,
  table tbody td {
    padding: 10px !important;
    font-size: 14px !important;
  }
  
  h1 {
    font-size: 26px !important;
  }
  
  h2 {
    font-size: 22px !important;
  }
  
  h3 {
    font-size: 18px !important;
  }
  
  button {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}

::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 10px !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  [data-css*="image-selector"] [style*="grid"],
  [data-css*="image-upload-selector"] [style*="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  [data-css*="image-selector"] [style*="grid"],
  [data-css*="image-upload-selector"] [style*="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 8px !important;
  }
}