/* =========================================================
 * dt.dashboard.css
 * Diji Customer Portal Dashboard
 * MSN-style hero + news feed
 * ======================================================= */

.dt-dashboard {
  position: relative;
  width: 100%;
  max-width: none;
}

/* Keep dashboard aligned inside the existing shell */
#Dashboard .dt-dashboard.dt-page-inset {
  padding: 1.25rem;
  margin-top: 0 !important;
  background: transparent !important;
}

/* Remove Bootstrap row side effects inside dashboard only */
#Dashboard .dt-dashboard .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#Dashboard .dt-dashboard .col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================================
 * HERO
 * ======================================================= */

.dt-msn-hero-shell {
  position: relative;
  margin-bottom: 1.15rem;
}

.dt-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.dt-hero-slide {
  display: none;
  position: relative;
  min-height: 300px;
}

.dt-hero-slide.is-active {
  display: block;
}

.dt-hero-slide-link {
  display: block;
  position: relative;
  text-decoration: none !important;
  color: inherit;
}

.dt-hero-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  background: #020617;
}

.dt-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 2rem 4.3rem 2.35rem;
  color: #ffffff;
  background:
    linear-gradient(
      to top,
      rgba(2, 6, 23, 0.82) 0%,
      rgba(2, 6, 23, 0.48) 38%,
      rgba(2, 6, 23, 0.10) 72%,
      rgba(2, 6, 23, 0.02) 100%
    );
  pointer-events: none;
}

.dt-hero-overlay-inner {
  max-width: 620px;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
}

.dt-hero-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.dt-hero-title {
  margin: 0 0 0.35rem;
  color: #ffffff !important;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.dt-hero-subtitle {
  max-width: 620px;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.94rem;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.dt-hero-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.36rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(249, 115, 22, 0.34));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.dt-hero-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #fed7aa, #f97316);
  color: #111827;
  font-size: 0.78rem;
}

/* Hero arrows */
.dt-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.55);
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  touch-action: manipulation;
}

.dt-hero-prev {
  left: 1rem;
}

.dt-hero-next {
  right: 1rem;
}

.dt-hero-arrow:hover {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.04);
}

/* Hero dots */
.dt-hero-pager {
  position: absolute !important;
  left: 50% !important;
  bottom: 1rem !important;
  z-index: 6 !important;
  transform: translateX(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.38rem !important;
  padding: 0.38rem 0.62rem !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.56) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.dt-hero-dot {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  min-height: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  cursor: pointer !important;
  transition: width 0.2s ease, background 0.2s ease, transform 0.18s ease !important;
}

.dt-hero-dot:hover {
  transform: scale(1.16);
  background: rgba(255, 255, 255, 0.72) !important;
}

.dt-hero-dot.active {
  width: 28px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  transform: none !important;
}

/* =========================================================
 * FEED HEADER
 * ======================================================= */

.dt-feed-section {
  position: relative;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.dt-feed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.dt-feed-title {
  margin: 0 0 0.2rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.dt-feed-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.dt-feed-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dt-feed-count {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.20);
  color: #312e81;
  font-size: 0.76rem;
  font-weight: 800;
}

.dt-feed-view-all {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #475569;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.dt-feed-view-all:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.65);
}

/* =========================================================
 * MSN-LIKE FEED LAYOUT
 * ======================================================= */

.dt-msn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.dt-msn-main-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.85rem;
}

/* Cards */
.dt-feed-card {
  position: relative;
  min-height: 230px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(226, 232, 240, 0.90);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dt-feed-card--feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 475px;
}

.dt-feed-card--wide {
  grid-column: span 2;
  min-height: 245px;
}

.dt-feed-card-link {
  display: block;
  height: 100%;
  min-height: inherit;
  color: inherit;
  text-decoration: none !important;
}

.dt-feed-card-media {
  position: absolute;
  inset: 0;
  background: #0b1220;
}

.dt-feed-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  filter: saturate(1.04) contrast(1.02);
}

.dt-feed-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.45), rgba(2, 6, 23, 0) 42%),
    radial-gradient(circle at 90% 18%, rgba(99, 102, 241, 0.38), rgba(2, 6, 23, 0) 45%),
    linear-gradient(135deg, #0f172a, #111827);
}

.dt-feed-card-fallback span {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.dt-feed-card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.95rem;
  color: #ffffff;
  background:
    linear-gradient(
      to top,
      rgba(2, 6, 23, 0.94) 0%,
      rgba(2, 6, 23, 0.72) 34%,
      rgba(2, 6, 23, 0.18) 68%,
      rgba(2, 6, 23, 0.02) 100%
    );
}

.dt-feed-kicker {
  margin-bottom: 0.32rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt-feed-card-title {
  margin: 0;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.dt-feed-card--feature .dt-feed-card-title {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.12;
}

.dt-feed-card-summary {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-feed-card--feature .dt-feed-card-summary {
  max-width: 92%;
  font-size: 0.95rem;
  -webkit-line-clamp: 3;
}

.dt-feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.76rem;
  font-weight: 650;
}

.dt-feed-card-action {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
}

.dt-feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.95);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

/* =========================================================
 * RIGHT RAIL
 * ======================================================= */

.dt-msn-rail {
  position: sticky;
  top: 1rem;
}

.dt-rail-card {
  overflow: hidden;
  border-radius: 0.9rem;
  background: #111827;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.dt-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dt-rail-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 850;
}

.dt-rail-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.dt-rail-list {
  display: flex;
  flex-direction: column;
}

.dt-rail-item {
  display: block;
  padding: 0.8rem 0.9rem;
  color: #ffffff;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.16s ease;
}

.dt-rail-item:last-child {
  border-bottom: 0;
}

.dt-rail-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dt-rail-item-title {
  display: block;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.3;
}

.dt-rail-item-date {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
}

/* =========================================================
 * EMPTY STATE
 * ======================================================= */

.dt-empty {
  border-radius: 0.95rem;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.85);
  padding: 1.15rem;
}

.dt-empty-title {
  color: #0f172a;
  font-weight: 850;
  margin-bottom: 0.2rem;
}

.dt-empty-sub {
  color: #64748b;
  font-size: 0.9rem;
}

/* =========================================================
 * RESPONSIVE
 * ======================================================= */

@media (max-width: 1280px) {
  .dt-msn-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .dt-msn-main-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dt-feed-card--feature {
    grid-column: span 2;
  }

  .dt-feed-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .dt-hero-img {
    height: 260px;
  }

  .dt-hero-slide {
    min-height: 260px;
  }

  .dt-msn-layout {
    grid-template-columns: 1fr;
  }

  .dt-msn-rail {
    position: static;
  }

  .dt-msn-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dt-feed-card--feature {
    min-height: 360px;
  }
}

@media (max-width: 767.98px) {
  #Dashboard .dt-dashboard.dt-page-inset {
    padding: 0.85rem;
  }

  .dt-hero-img {
    height: 230px;
  }

  .dt-hero-slide {
    min-height: 230px;
  }

  .dt-hero-overlay {
    padding: 1.1rem 3.25rem 1.8rem;
  }

  .dt-hero-overlay-inner {
    padding: 0.75rem 0.9rem;
  }

  .dt-hero-title {
    font-size: 1.1rem;
  }

  .dt-hero-subtitle {
    font-size: 0.8rem;
  }

  .dt-hero-arrow {
    width: 36px;
    height: 50px;
    font-size: 1.25rem;
  }

  .dt-hero-prev {
    left: 0.6rem;
  }

  .dt-hero-next {
    right: 0.6rem;
  }

  .dt-feed-section {
    padding: 0.85rem;
  }

  .dt-feed-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dt-feed-actions {
    justify-content: flex-start;
  }

  .dt-msn-main-grid {
    grid-template-columns: 1fr;
  }

  .dt-feed-card,
  .dt-feed-card--feature,
  .dt-feed-card--wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 245px;
  }

  .dt-feed-card--feature .dt-feed-card-title {
    font-size: 1.22rem;
  }
}

/* =========================================================
 * SAFETY: prevent dashboard from affecting other tabs
 * ======================================================= */

#AssignedStaff .dt-feed-section,
#Leave .dt-feed-section,
#Calendar .dt-feed-section {
  all: unset;
}