html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

#root {
  min-height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Layout Utilities */
.ant-layout {
  min-height: 100%;
}
.ant-layout-content {
  scroll-behavior: smooth;
}

/* Card Improvements */
.ant-card {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s;
}
.ant-card:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
}

/* Table Improvements */
.ant-table-wrapper .ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
}

/* Text Utilities */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html{text-size-adjust:100%;-webkit-text-size-adjust:100%}
*:focus-visible{outline:2px solid #1677ff;outline-offset:2px}
.backdrop-blur{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}

/* Special Menu Highlights */
.menu-highlight-red {
  background-color: #ffe6e6 !important;
}
.menu-highlight-red .ant-menu-title-content {
  color: #d32f2f !important;
  font-weight: bold;
}
/* Dark mode support - assuming .dark class on body */
.dark .menu-highlight-red {
  background-color: #4a1e1e !important;
}
.dark .menu-highlight-red .ant-menu-title-content {
  color: #ff9999 !important;
}
:root{
  --admin-radius: 10px;
}

body{
  margin: 0;
  background: #f5f5f5;
}

.ant-layout{
  background: transparent;
}

.ant-layout-header{
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.ant-layout-sider{
  scrollbar-gutter: stable;
}

.ant-layout-sider .ant-menu{
  border-inline-end: none !important;
}

.ant-layout-sider .ant-menu-item,
.ant-layout-sider .ant-menu-submenu-title{
  border-radius: 8px;
  margin-inline: 8px;
  width: auto;
}

.ant-layout-sider-collapsed .ant-menu-item,
.ant-layout-sider-collapsed .ant-menu-submenu-title{
  margin-inline: 6px;
}

.ant-breadcrumb{
  max-width: 56vw;
}

.ant-breadcrumb ol{
  flex-wrap: nowrap;
  overflow: hidden;
}

.ant-breadcrumb li{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-card{
  border-radius: var(--admin-radius);
}

.admin-filterbar{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(5,5,5,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-filterbar__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-filterbar__left{
  flex: 1;
  min-width: 260px;
}

.admin-filterbar__right{
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.admin-filterbar__hint{
  margin-top: 8px;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
}

.admin-filterbar__hint-label{
  color: rgba(0,0,0,0.45);
}

.admin-filterbar.is-collapsed{
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-filterbar.is-collapsed .admin-filterbar__left,
.admin-filterbar.is-collapsed .admin-filterbar__hint{
  display: none;
}

.admin-detaildrawer{
  position: relative;
  padding-bottom: 72px;
}

.admin-detaildrawer__title{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-detaildrawer__title-main{
  font-weight: 600;
}

.admin-detaildrawer__title-sub{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
}

.admin-detaildrawer__summary{
  padding: 16px 16px 0;
}

.admin-detaildrawer__content{
  padding: 0 16px 16px;
}

.admin-detaildrawer__tabs .ant-tabs-nav{
  margin: 12px 0 12px;
}

.admin-detaildrawer__footer{
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-top: 1px solid rgba(5,5,5,0.08);
  padding: 10px 16px;
}
