/* ==========================================================================
   mXbyte — Pure Black Workspace with Big White Greeting Typography
   ========================================================================== */

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

body.pure-black-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000000 !important;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Ambient Pure Dark Canvas
   -------------------------------------------------------------------------- */
.pure-dark-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #000000;
}

.dark-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.16;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  top: -160px;
  left: 15%;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  bottom: -180px;
  right: 15%;
}

.dark-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 90%);
}

/* --------------------------------------------------------------------------
   Top Minimal Navbar
   -------------------------------------------------------------------------- */
.top-nav-bar {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.nav-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.ceo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.pulse-white {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.nav-links-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-pill-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ceo-nav-highlight {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-weight: 700;
}

.ceo-nav-highlight:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fef08a;
}

.btn-logout-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-pill:hover {
  background: #ef4444;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Master Page Wrapper
   -------------------------------------------------------------------------- */
.page-master-wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 3.5rem 1.75rem 6rem 1.75rem;
  position: relative;
  z-index: 10;
  flex: 1;
}

/* --------------------------------------------------------------------------
   BIG BOLD WHITE GREETING HERO
   -------------------------------------------------------------------------- */
.big-greetings-hero {
  margin-bottom: 3.25rem;
}

.greeting-pre-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.big-white-heading {
  font-size: 3.75rem;
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.white-name-span {
  color: #ffffff !important;
  font-weight: 900;
}

.big-white-subline {
  font-size: 1.05rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.ceo-title-strong {
  color: #ffffff;
  font-weight: 800;
}

.hero-sep {
  color: #475569;
}

.hero-date-str {
  color: #cbd5e1;
  font-weight: 600;
}

.hero-summary-text strong {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3-CARD WORKSPACE GRID
   -------------------------------------------------------------------------- */
.workspace-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.pure-black-card {
  background: rgba(12, 12, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 1.6rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.card-heading-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.card-title-white {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.card-desc-grey {
  font-size: 0.76rem;
  color: #94a3b8;
}

.btn-card-white-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-card-white-action:hover {
  background: #ffffff;
  color: #000000;
}

/* --------------------------------------------------------------------------
   PENDINGS STACK
   -------------------------------------------------------------------------- */
.pendings-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pending-item-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.pending-item-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.pending-item-box.completed {
  opacity: 0.45;
}

.pending-item-box.completed .pending-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.pending-content {
  flex: 1;
}

.pending-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.pending-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proj-badge-mini {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.priority-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.priority-pill.high { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.priority-pill.med { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.priority-pill.low { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.due-str {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   NOTIFICATIONS STACK
   -------------------------------------------------------------------------- */
.notifications-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notif-item-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  transition: all 0.2s ease;
}

.notif-item-box.unread {
  border-left: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.notif-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.notif-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.notif-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.notif-message {
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   NOTES & SCRATCHPAD
   -------------------------------------------------------------------------- */
.black-note-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.black-input-title {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  outline: none;
}

.black-input-title:focus {
  border-color: #ffffff;
}

.black-input-body {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.84rem;
  color: #e2e8f0;
  outline: none;
  resize: vertical;
}

.black-input-body:focus {
  border-color: #ffffff;
}

.btn-black-save-note {
  align-self: flex-end;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-black-save-note:hover {
  background: #e2e8f0;
}

.notes-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 480px;
  overflow-y: auto;
}

.note-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
  transition: all 0.2s ease;
}

.note-card-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.note-card-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-delete-note {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-delete-note:hover {
  color: #f87171;
}

.note-card-body {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  white-space: pre-wrap;
}

.note-card-footer {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-backdrop-black {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop-black.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet-black {
  width: 100%;
  max-width: 500px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal-backdrop-black.active .modal-sheet-black {
  transform: scale(1);
}

.btn-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

.modal-title-white {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.modal-desc-grey {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.black-form-dialog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-label-white {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.dialog-black-input, .dialog-black-select {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0 1.1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
}

.dialog-black-input:focus, .dialog-black-select:focus {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-footer-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-modal-cancel {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-confirm {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-stack-black {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clean-toast {
  background: #0f0f14;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
  .workspace-triad-grid {
    grid-template-columns: 1fr;
  }

  .big-white-heading {
    font-size: 2.75rem;
  }
}
