:root {
  --bg-main: #050816;
  --bg-elevated: rgba(15, 23, 42, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.85);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --danger-soft: rgba(248, 113, 113, 0.15);
}

body.bg-body {
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}
    .logo-circle {
      width: 520px;
      height: 52px;
      border-radius: 999px;
      border: 2px solid rgba(248,250,252,.85);
      padding: 3px;
      background:
        radial-gradient(circle at 20% 0, #38bdf8, transparent 60%),
        radial-gradient(circle at 90% 90%, #22c55e, transparent 55%),
        #020617;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(15,23,42,.85);
    }

    .logo-circle img {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      object-fit: cover;
      display: block;
    }

    /* 2x մեծ տարբերակ՝ վերևի header-ի համար */
    .logo-circle.logo-circle-lg {
      width: 104px;
      height: 104px;
    }


.main {
  flex: 1;
  padding: 1.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #020617 0%, #020617 40%, #020617 100%);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1.25rem;
  color: var(--text-main);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #1d4ed8 60%, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.logo-title {
  font-weight: 600;
  font-size: 1rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.sidebar-nav .nav-item-link {
  display: block;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-nav .nav-item-link:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.sidebar-nav .nav-item-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 0.75rem;
  margin-top: 1.5rem;
}

.content {
  flex: 1;
  padding: 1.5rem 2rem;
}

.content-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}


.content-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.content-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.glass-card {
  background: var(--bg-glass);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  color: var(--text-main);
}

.metric-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-main);
}

.metric-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 600;
}

.metric-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.btn-action {
  border-radius: 999px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.bg-soft {
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

/* Generic badge */
.badge {
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Team badge */
.bg-tag {
  background: rgba(56, 189, 248, 0.16);   /* light blue */
  color: #1d4ed8;                          /* dark blue text */
}

/* Status badge */
.bg-status {
  background: rgba(34, 197, 94, 0.18);     /* light green */
  color: #059669;                          /* green text */
}

/* Category badges */
.badge-cat-sweet {
  background: rgba(129, 140, 248, 0.16);   /* indigo */
  color: #6366f1;
}

.badge-cat-quick {
  background: rgba(52, 211, 153, 0.16);    /* teal/green */
  color: #10b981;
}

.badge-cat-big {
  background: rgba(251, 191, 36, 0.18);    /* amber */
  color: #d97706;
}

.badge-cat-bg {
  background: rgba(148, 163, 184, 0.16);   /* gray */
  color: #64748b;
}

.table-best {
  background: rgba(56, 189, 248, 0.06);
}

.table-hover tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.65);
}

.card-title {
  font-weight: 600;
}

.bullet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  margin-right: 0.4rem;
}

.response-card {
  background: var(--bg-elevated);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
}

.ai-output {
  white-space: pre-wrap;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control {

  border-color: rgba(148, 163, 184, 0.35);

}

.form-control:focus {

  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

@media (max-width: 992px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }
  .content {
    padding: 1.25rem 1.25rem 2rem;
  }
}
/* Access / passcode overlay */
.access-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(0, 0, 0, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.access-overlay.hidden {
  display: none;
}

.access-modal {
  max-width: 420px;
  width: 100%;
}
/* Access / passcode overlay */
.access-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(0, 0, 0, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.access-overlay.hidden {
  display: none;
}

.access-modal {
  max-width: 420px;
  width: 100%;
}

/* Constrain main content width for consistent tables */
.content-body {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Gantt excel-style grid --- */
.gantt-grid-wrapper {
  overflow-x: auto;
  padding-bottom: 4px;
}

.gantt-grid-table {
  min-width: 900px;
  position: relative;
}

.gantt-header-row,
.gantt-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 16px;
  align-items: stretch;
}

.gantt-header-row {
  border-bottom: 1px solid rgba(148,163,184,.4);
  margin-bottom: .5rem;
}

/* Sticky left column */
.gantt-col-task {
  font-size: .8rem;
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: rgba(15,23,42,0.98);
  backdrop-filter: blur(6px);
}

.gantt-header-row .gantt-col-task {
  z-index: 3;
}

.gantt-col-timeline {
  position: relative;
  overflow: hidden;
}

/* Ticks row */
.gantt-ticks-row {
  position: relative;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(to bottom, rgba(15,23,42,1), rgba(15,23,42,0.7));
  box-shadow: inset 0 -1px 0 rgba(148,163,184,.4);
}

.gantt-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  border-left: 1px solid rgba(148,163,184,.35);
  font-size: .7rem;
  color: #9ca3af;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
  justify-content: center !important;
  padding-bottom: 2px;
  text-align: center !important;
}


.gantt-tick span {
  display: inline-block;
}

/* Rows (եթե արդեն PATCH 2 ես արել, սա թող նույն տեղում մնա) */
.gantt-row + .gantt-row {
  margin-top: .25rem;
}

/* Track & bars */
.gantt-track {
  position: relative;
  height: 26px;
  border-radius: 6px;
  background-image: linear-gradient(
    to right,
    rgba(15,23,42,0.85) 1px,
    transparent 1px
  );
  background-size: 28px 100%;
  background-color: rgba(15,23,42,.95);
  overflow: hidden;
}

.gantt-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  opacity: .98;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.7), 0 6px 12px rgba(15,23,42,0.6);
}

/* Գույներն թող նույնը մնան */
.gantt-bar-demo1 {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
}

.gantt-bar-demo2 {
  background: linear-gradient(to right, #a855f7, #6366f1);
}

.gantt-bar-demo3 {
  background: linear-gradient(to right, #22c55e, #16a34a);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.legend-demo1 {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
}
.legend-demo2 {
  background: linear-gradient(to right, #a855f7, #6366f1);
}
.legend-demo3 {
  background: linear-gradient(to right, #22c55e, #16a34a);
}

/* tiny progress bar */
.tiny-progress {
  height: 6px;
  border-radius: 999px;
  background-color: rgba(15,23,42,.9);
}
.tiny-progress .progress-bar {
  border-radius: inherit;
}


/* --- New Gantt layout --- */
.gantt-grid-wrapper {
  overflow-x: auto;
}
.gantt-grid-table {
  min-width: 900px;
}
.gantt-header-row,
.gantt-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 16px;
  align-items: stretch;
}
.gantt-header-row {
  border-bottom: 1px solid rgba(148,163,184,.4);
  margin-bottom: .5rem;
}
.gantt-col-task {
  font-size: .8rem;
}
.gantt-col-timeline {
  position: relative;
}
.gantt-ticks-row {
  position: relative;
  height: 32px;
}
.gantt-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  border-left: 1px solid rgba(148,163,184,.35);
  font-size: .7rem;
  color: #9ca3af;
  padding-left: 2px;
  white-space: nowrap;
}
.gantt-tick span {
  display: inline-block;
}
.gantt-row + .gantt-row {
  margin-top: .25rem;
}
.gantt-track {
  position: relative;
  height: 26px;
  border-radius: 6px;
  background-image: linear-gradient(to right, rgba(15,23,42,0.85) 1px, transparent 1px);
  background-size: 40px 100%;
  background-color: rgba(15,23,42,.95);
  overflow: hidden;
}
.gantt-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  opacity: .95;
}
.gantt-bar-demo1 {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
}
.gantt-bar-demo2 {
  background: linear-gradient(to right, #a855f7, #6366f1);
}
.gantt-bar-demo3 {
  background: linear-gradient(to right, #22c55e, #16a34a);
}
/* --- Gantt header pills --- */
.gantt-card-header {
  font-size: 0.8rem;
  color: #9ca3af;
}

.gantt-pill-group {
  row-gap: 0.25rem;
}

.gantt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(96,165,250,.35), rgba(15,23,42,.96));
  border: 1px solid rgba(148,163,184,.45);
  backdrop-filter: blur(8px);
}

.gantt-pill-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .65rem;
  color: #9ca3af;
}

.gantt-pill-value {
  font-weight: 500;
  color: #e5e7eb;
}

.gantt-card-header-right .legend-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .65rem;
  color: #6b7280;
}
/* --- Gantt rows & typography --- */
.gantt-row {
  padding: 2px 0;
}

.gantt-row .gantt-col-task,
.gantt-row .gantt-col-timeline {
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gantt-row-odd .gantt-col-task,
.gantt-row-odd .gantt-col-timeline {
  background-color: rgba(15,23,42,0.65);
}

.gantt-row-even .gantt-col-task,
.gantt-row-even .gantt-col-timeline {
  background-color: rgba(15,23,42,0.4);
}

.gantt-row:hover .gantt-col-task,
.gantt-row:hover .gantt-col-timeline {
  background-color: rgba(30,64,175,0.78);
  box-shadow: 0 0 0 1px rgba(129,140,248,.55);
  transform: translateY(-1px);
}

.gantt-title {
  font-size: 0.86rem;
  font-weight: 500;
  color: #e5e7eb;
}

.gantt-meta {
  margin-top: 2px;
  font-size: 0.72rem;
}


.card-body .small.text-muted,
.content-body .small.text-muted {
  font-size: 0.78rem;
  color: var(--text-soft) !important;
}
.textdate{
color: green;
}

/* -------------------------------------------------------------------------- */
/* Public-site "featured" UI components (landing / book / articles / contact)  */
/* -------------------------------------------------------------------------- */

:root{
  --brand-deep: #1F2A44;
  --brand-accent: #F59E0B;
  --glass-2: rgba(15, 23, 42, 0.72);
  --glass-3: rgba(255,255,255,0.06);
}

.ui-featured{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.25), transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(34,197,94,.22), transparent 48%),
    linear-gradient(180deg, rgba(31,42,68,.95) 0%, rgba(31,42,68,.72) 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  overflow: hidden;
}

.ui-featured .ui-accent{
  height: 6px;
  background: var(--brand-accent);
}

.ui-featured-inner{
  padding: 18px 18px 16px;
}

.ui-kicker{
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(226,232,240,.78);
}

.ui-title{
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: rgba(226,232,240,.98);
}

.ui-subtitle{
  margin: 8px 0 0;
  color: rgba(226,232,240,.82);
  font-size: 14px;
  line-height: 1.45;
}

.ui-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ui-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid rgba(255,255,255,.14);
}

.ui-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.ui-btn-primary{
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.40);
  color: rgba(255,255,255,.96);
}

.ui-btn-primary:hover{
  background: rgba(245,158,11,.24);
  border-color: rgba(245,158,11,.52);
}

.ui-btn-ghost{
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.95);
}

.ui-btn-ghost:hover{
  background: rgba(255,255,255,.10);
}

.ui-link{
  color: rgba(226,232,240,.78);
  text-decoration: none;
  font-weight: 600;
}

.ui-link:hover{
  color: rgba(245,158,11,.95);
}

.ui-grid{
  display:grid;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 820px){
  .ui-grid.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-grid.cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ui-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 12% 0%, rgba(56,189,248,.16), transparent 50%),
    linear-gradient(180deg, rgba(17,24,39,.70) 0%, rgba(17,24,39,.50) 100%);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  padding: 14px;
  transition: transform .16s ease, border-color .16s ease, filter .16s ease;
  height: 100%;
}

.ui-card:hover{
  transform: translateY(-2px);
  border-color: rgba(245,158,11,.35);
  filter: brightness(1.03);
}

.ui-card-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ui-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(245,158,11,.95);
}

.ui-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.25);
  color: rgba(245,158,11,.95);
}

.ui-badge.soft{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(226,232,240,.78);
}

.ui-card h3{
  margin: 0;
  font-size: 16px;
  color: rgba(226,232,240,.98);
  letter-spacing: -.01em;
}

.ui-card p{
  margin: 8px 0 0;
  color: rgba(226,232,240,.78);
  font-size: 13px;
  line-height: 1.45;
}

.ui-card-actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

/* Contact modal — shared (used on home + book + articles) */
.contact-modal{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(56,189,248,.18), transparent 52%),
    radial-gradient(circle at 90% 90%, rgba(34,197,94,.16), transparent 55%),
    rgba(17,24,39,.92);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  color: rgba(226,232,240,.98);
}

.contact-modal .modal-header{
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px 12px;
}

.contact-modal .modal-title{
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(226,232,240,.92);
  margin: 0;
}

.contact-modal .modal-body{
  padding: 14px 16px 16px;
}

.contact-modal .modal-body p{
  margin: 0 0 12px;
  color: rgba(226,232,240,.82);
  font-size: 13.5px;
  line-height: 1.45;
}

.contact-email-row{
  display:flex;
  align-items:center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.contact-email{
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(226,232,240,.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-copy-btn{
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.14);
  color: rgba(255,255,255,.96);
}

.contact-copy-btn:hover{
  background: rgba(245,158,11,.22);
  border-color: rgba(245,158,11,.52);
}

.contact-modal small{
  color: rgba(226,232,240,.70);
}

