@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #F7F9FB;
  color: #2C3437;
}

#root {
  min-height: 100vh;
}

/* Arabic font class — applied on RTL */

[dir='rtl'] body,
[lang='ar'] body {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
}

/* Ant Design overrides */

.ant-layout {
  background: #F7F9FB !important;
}

/* Smooth sidebar transition */

.ant-layout-sider {
  transition: all 0.2s ease !important;
}

/* Scrollbar styling */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F7F9FB;
}

::-webkit-scrollbar-thumb {
  background: #C2C6D4;
  border-radius: 3px;
}

/* Instant calendar event tooltip */

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  z-index: 9999;
  pointer-events: none;
  max-width: 420px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: #ACB3B7;
}
