@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  @apply bg-gray-50;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Accessibility - Screen Reader Only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Custom styles for the OKR dashboard */
.progress-bar {
  transition: width 0.5s ease-in-out;
}

.objective-card {
  transition: all 0.3s ease;
}

.objective-card:hover {
  @apply shadow-lg;
}

.krcard {
  @apply transition-all duration-200;
}

.krcard:hover {
  @apply bg-gray-50;
}

.action-item {
  @apply transition-all duration-200;
}

.action-item:hover {
  @apply bg-gray-50;
}

.status-on-track {
  @apply bg-success/10 text-success;
}

.status-at-risk {
  @apply bg-warning/10 text-warning;
}

.status-off-track {
  @apply bg-danger/10 text-danger;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-in-out;
}

/* Custom form styling */
.editable-content {
  @apply border border-transparent rounded px-2 py-1;
}

.editable-content:hover {
  @apply border-gray-200 bg-gray-50;
}

.editable-content:focus {
  @apply border-primary-300 bg-white outline-none;
}
