﻿  /* Dashboard */

.dashboard-page {
  width: 100%;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 28%
    ),
    radial-gradient(
      circle at 72% 95%,
      rgba(45, 212, 191, 0.2),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #312e81 0%,
      #4f46e5 52%,
      #6d28d9 100%
    );
  border-radius: 1.6rem;
  box-shadow: 0 20px 44px rgba(49, 46, 129, 0.22);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  top: -6rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(255, 255, 255, 0.035),
    0 0 0 6rem rgba(255, 255, 255, 0.025);
}

.dashboard-hero-content,
.dashboard-hero-actions {
  position: relative;
  z-index: 1;
}

.dashboard-date {
  margin-bottom: 0.65rem;
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.045em;
}

.dashboard-hero-description {
  max-width: 39rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.dashboard-workspace-label {
  width: fit-content;
  padding: 0.45rem 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.workspace-status-dot {
  width: 0.48rem;
  height: 0.48rem;
  background: #5eead4;
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(94, 234, 212, 0.16);
}

.dashboard-hero .btn-light {
  min-width: 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #3730a3;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 27, 75, 0.2);
}

.dashboard-hero .btn-light:hover {
  color: #312e81;
  background: #f8fafc;
}

.dashboard-hero .btn-light svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Dashboard statistics */

.dashboard-stats {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat-card {
  min-width: 0;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  color: var(--dk-text);
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-lg);
  box-shadow: var(--dk-shadow-sm);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus-visible {
  color: var(--dk-text);
  border-color: #c7d2fe;
  box-shadow: var(--dk-shadow);
  transform: translateY(-2px);
}

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
}

.stat-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon-primary {
  color: #4338ca;
  background: #e0e7ff;
}

.stat-icon-warning {
  color: #b45309;
  background: #fef3c7;
}

.stat-icon-danger {
  color: #be123c;
  background: #ffe4e6;
}

.stat-icon-success {
  color: #047857;
  background: #d1fae5;
}

.dashboard-stat-card p {
  overflow: hidden;
  margin: 0 0 0.15rem;
  color: var(--dk-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stat-card strong {
  display: block;
  color: var(--dk-navy);
  font-size: 1.65rem;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* Main dashboard panels */

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 0.8fr);
  align-items: start;
  gap: 1.25rem;
}

.dashboard-sidebar {
  display: grid;
  gap: 1.25rem;
}

.dashboard-panel {
  overflow: hidden;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-lg);
  box-shadow: var(--dk-shadow-sm);
}

.panel-header {
  padding: 1.35rem 1.4rem 1.15rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--dk-border);
}

.panel-header.compact {
  padding-bottom: 1rem;
}

.panel-eyebrow {
  margin-bottom: 0.2rem;
  color: var(--dk-primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
}

.panel-header p:not(.panel-eyebrow) {
  margin: 0;
  color: var(--dk-text-muted);
  font-size: 0.85rem;
}

.panel-link {
  flex-shrink: 0;
  padding: 0.4rem 0.55rem;
  color: var(--dk-primary);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.panel-link:hover {
  background: var(--dk-primary-soft);
}

/* Renewals */

.renewal-list {
  display: grid;
}

.renewal-item {
  padding: 1rem 1.35rem;
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto
    auto;
  align-items: center;
  gap: 0.9rem;
  color: var(--dk-text);
  border-bottom: 1px solid var(--dk-border);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.renewal-item:last-child {
  border-bottom: 0;
}

.renewal-item:hover,
.renewal-item:focus-visible {
  color: var(--dk-text);
  background: #f8faff;
}

.renewal-document-icon {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 0.78rem;
}

.renewal-document-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.renewal-item-content {
  min-width: 0;
}

.renewal-item-content h3 {
  overflow: hidden;
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.renewal-item-content p {
  overflow: hidden;
  margin: 0;
  color: var(--dk-text-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.renewal-status {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.renewal-primary {
  color: #4338ca;
  background: #e0e7ff;
}

.renewal-warning {
  color: #92400e;
  background: #fef3c7;
}

.renewal-danger {
  color: #b91c1c;
  background: #fee2e2;
}

.renewal-chevron {
  color: #94a3b8;
  font-size: 1.35rem;
}

.renewal-empty {
  min-height: 16rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.renewal-empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #047857;
  background: #d1fae5;
  border-radius: 1rem;
}

.renewal-empty-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.renewal-empty h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.renewal-empty p {
  margin: 0;
  color: var(--dk-text-muted);
  font-size: 0.85rem;
}

/* Quick actions */

.quick-action-list {
  display: grid;
}

.quick-action-item {
  padding: 0.9rem 1.15rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--dk-text);
  border-bottom: 1px solid var(--dk-border);
  text-decoration: none;
}

.quick-action-item:last-child {
  border-bottom: 0;
}

.quick-action-item:hover,
.quick-action-item:focus-visible {
  color: var(--dk-text);
  background: #f8faff;
}

.quick-action-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.68rem;
}

.quick-action-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-action-icon.primary {
  color: #4338ca;
  background: #e0e7ff;
}

.quick-action-icon.warning {
  color: #b45309;
  background: #fef3c7;
}

.quick-action-icon.neutral {
  color: #475569;
  background: #e2e8f0;
}

.quick-action-item strong,
.quick-action-item small {
  display: block;
}

.quick-action-item strong {
  margin-bottom: 0.08rem;
  font-size: 0.85rem;
}

.quick-action-item small {
  color: var(--dk-text-muted);
  font-size: 0.7rem;
}

.quick-action-item > span:last-child {
  color: #94a3b8;
  font-size: 1.2rem;
}

/* Security card and empty state */

.dashboard-security-card {
  padding: 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #115e59
    );
  border-radius: var(--dk-radius-lg);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
}

.security-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
}

.security-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-security-card h2 {
  margin-bottom: 0.2rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.dashboard-security-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.73rem;
}

.dashboard-empty-state {
  min-height: 24rem;
  padding: 3rem 1.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-lg);
  box-shadow: var(--dk-shadow-sm);
}

.empty-state-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  color: var(--dk-primary);
  background: var(--dk-primary-soft);
  border-radius: 1.3rem;
}

.empty-state-icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-empty-state h2 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.dashboard-empty-state p {
  max-width: 31rem;
  margin-bottom: 1.25rem;
  color: var(--dk-text-muted);
}

/* Dashboard responsive layout */

@media (max-width: 1199.98px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-content-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
  }
}

@media (max-width: 991.98px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .dashboard-hero {
    min-height: 0;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.3rem;
  }

  .dashboard-hero::after {
    top: -9rem;
    right: -8rem;
  }

  .dashboard-hero-actions {
    width: 100%;
  }

  .dashboard-hero .btn-light {
    width: 100%;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .dashboard-stat-card {
    padding: 0.95rem;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
  }

  .stat-arrow {
    display: none;
  }

  .stat-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .dashboard-stat-card p {
    font-size: 0.7rem;
  }

  .dashboard-stat-card strong {
    font-size: 1.4rem;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .renewal-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.9rem 1rem;
  }

  .renewal-status {
    grid-column: 2 / 4;
    width: fit-content;
  }

  .renewal-chevron {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 419.98px) {
  .dashboard-stat-card {
    align-items: flex-start;
  }

  .stat-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
  }

  .stat-icon svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .panel-header {
    padding: 1.1rem;
  }

  .renewal-empty {
    min-height: 14rem;
    padding: 1.5rem 1rem;
    flex-direction: column;
    text-align: center;
  }
}
