/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Color Palette - Premium Slate & Neon Indigo */
  --bg-main: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --color-primary: #6366F1; /* Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.15);
  --color-success: #10B981; /* Emerald */
  --color-success-glow: rgba(16, 185, 129, 0.1);
  --color-warning: #F59E0B; /* Amber */
  --color-warning-glow: rgba(245, 158, 11, 0.1);
  --color-danger: #EF4444; /* Rose */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  background-color: #ffffff;
  color: #1f2733;
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
}

/* Premium Typography classes */
.font-display {
  font-family: var(--font-display);
}

/* Smooth Transitions */
.transition-all {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Top bar shown immediately when navigating between app pages. */
.nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 500;
  overflow: hidden;
  pointer-events: none;
  background: rgba(37, 99, 235, 0.12);
}

.nav-progress-bar::before {
  content: "";
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
  animation: nav-progress 1.1s ease-in-out infinite;
}

@keyframes nav-progress {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

/* CKEditor: give the editable area a comfortable height + rounded corners */
.rich-editor .ck-editor__editable {
  min-height: 170px;
  max-height: 360px;
}
.rich-editor .ck.ck-editor__main > .ck-editor__editable {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.rich-editor .ck.ck-toolbar {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
/* Restore list markers inside the editor: the global `* { padding: 0 }` reset
   collapses the left padding that ol/ul markers (1,2,3 / bullets) sit in, so
   they get clipped and disappear. Re-add indentation + markers for the editor
   content (and rendered email HTML that reuses `.ck-content`). */
.rich-editor .ck-content ol,
.rich-editor .ck-content ul,
.ck-content ol,
.ck-content ul {
  padding-left: 1.75rem;
  margin: 0.4rem 0;
}
.rich-editor .ck-content ol,
.ck-content ol {
  list-style: decimal outside;
}
.rich-editor .ck-content ul,
.ck-content ul {
  list-style: disc outside;
}
.rich-editor .ck-content li,
.ck-content li {
  display: list-item;
}

/* Email row: reveal the delete button only on hover / keyboard focus. */
.email-row .email-del {
  opacity: 0;
  transition: opacity 0.12s ease, background 0.12s ease;
}
.email-row:hover .email-del,
.email-row:focus-within .email-del {
  opacity: 1;
}
.email-row .email-del:hover {
  background: #fdecec;
}

/* Contacts list: drop the emails/last-contact meta column on narrow screens. */
@media (max-width: 560px) {
  .contact-meta {
    display: none;
  }
}

/* Toast slide-in */
.toast-enter {
  animation: toast-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Planner (Tasks) interactive UI ─────────────────────────── */
/* Kanban board: always-visible horizontal scrollbar so it's clear the
   columns scroll on narrower screens. */
.kanban-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c3cbd6 #eef1f5;
}
.kanban-scroll::-webkit-scrollbar {
  height: 10px;
}
.kanban-scroll::-webkit-scrollbar-track {
  background: #eef1f5;
  border-radius: 999px;
}
.kanban-scroll::-webkit-scrollbar-thumb {
  background: #c3cbd6;
  border-radius: 999px;
  border: 2px solid #eef1f5;
}
.kanban-scroll::-webkit-scrollbar-thumb:hover {
  background: #a9b3c1;
}
.tk-card {
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
  animation: tk-rise 0.22s ease both;
}
.tk-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
  border-color: #cdd4dd;
  transform: translateY(-1px);
}
.tk-icon-btn {
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.tk-icon-btn:hover {
  background: #f2f5f9;
}
.tk-icon-btn:active {
  transform: scale(0.92);
}
.tk-check {
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.tk-check:hover {
  border-color: #16a34a;
}
.tk-check:active {
  transform: scale(0.88);
}
.tk-primary {
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.tk-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.tk-primary:active:not(:disabled) {
  transform: translateY(1px);
}
.tk-chip {
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.tk-form {
  animation: tk-expand 0.2s ease both;
  overflow: hidden;
}
@keyframes tk-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tk-expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Urgent task attention border — cards, board tiles, team cards */
@keyframes task-urgent-blink {
  0%,
  100% {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.45), 0 0 12px rgba(220, 38, 38, 0.28);
  }
  50% {
    border-color: rgba(220, 38, 38, 0.28);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
  }
}

@keyframes task-urgent-row-blink {
  0%,
  100% {
    outline-color: #dc2626;
    box-shadow: inset 3px 0 0 #dc2626;
    background-color: rgba(254, 226, 226, 0.55);
  }
  50% {
    outline-color: rgba(220, 38, 38, 0.25);
    box-shadow: inset 3px 0 0 rgba(220, 38, 38, 0.25);
    background-color: transparent;
  }
}

.task-urgent {
  border: 2px solid #dc2626 !important;
  animation: task-urgent-blink 1.35s ease-in-out infinite;
}

tr.task-urgent {
  border: none !important;
  outline: 2px solid #dc2626;
  outline-offset: -2px;
  animation: task-urgent-row-blink 1.35s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .task-urgent,
  tr.task-urgent {
    animation: none;
    border-color: #dc2626 !important;
    outline-color: #dc2626;
    box-shadow: inset 3px 0 0 #dc2626;
  }
}

/* Hide Next.js Dev Overlay / Error portal in development */
nextjs-portal,
#nextjs-hud,
nextjs-hud,
#data-nextjs-toast,
[data-nextjs-toast],
[data-nextjs-dialog-overlay],
div[style*="z-index: 9999"],
div[style*="z-index:9999"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}


