/* Studio OS - Teal Multi-Tenant Workspace Styles */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Utility & Card Polish */
.card-surface {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-teal {
  background-color: var(--teal-600);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-teal:hover {
  background-color: var(--teal-700);
}
.btn-teal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background-color: #ffffff;
  color: var(--slate-800);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--slate-200);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}
.btn-outline:hover {
  background-color: var(--slate-50);
  border-color: #cbd5e1;
}

.input-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  font-size: 0.875rem;
  color: var(--slate-900);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-field:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Kanban Board Horizontal Scroll */
.kanban-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: flex-start;
}
.kanban-col {
  min-width: 280px;
  max-width: 280px;
  background: var(--slate-100);
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--slate-200);
}

/* Modal & Drawer Backdrop */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  height: 100%;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .desktop-sidebar {
    display: none;
  }
  .desktop-sidebar.mobile-open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 270px;
  }
}
