/* OCA Team Dashboard: Base reset, scrollbars, keyframes */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  color-scheme: light dark;
}

body {
  background: var(--bg, #F4F1E9);
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink-1, #1A1F26);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

textarea {
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* Custom scrollbars */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* Text selection */
::selection {
  background: var(--coral);
  color: #fff;
}

/* Focus ring: teal, 2px, 2px offset, 8px radius */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Keyframe: typing indicator dots */
@keyframes pulse {
  0%, 80%, 100% { opacity: .25; }
  40%           { opacity: 1;   }
}

/* Keyframe: attention bell badge ripple */
@keyframes bell-ping {
  0%   { box-shadow: 0 0 0 0   rgba(159, 10, 55, .45); }
  70%  { box-shadow: 0 0 0 10px rgba(159, 10, 55, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(159, 10, 55, 0);   }
}

html[data-theme="dark"] .has-attention {
  animation: bell-ping-dark 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes bell-ping-dark {
  0%   { box-shadow: 0 0 0 0   rgba(197, 72, 95, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(197, 72, 95, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(197, 72, 95, 0);   }
}

.has-attention {
  animation: bell-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
