@import "../_variables";

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal {
  width: 60rem;
  max-width: 90vw;
  height: 80vh;
  max-height: 720px;
  background: var(--primary-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  animation: slideUp 0.2s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--secondary-bg);
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;

  .sidebarTitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
  }

  .navItems {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .navItem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary-text);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;

    .navIcon {
      font-size: 15px;
      flex-shrink: 0;
    }

    &:hover {
      background: var(--surface-hover);
      color: var(--primary-text);
    }
  }

  .navItemActive {
    @extend .navItem;
    background: var(--surface-active);
    color: var(--primary-text);
  }
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contentHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;

  .contentTitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    letter-spacing: -0.02em;
  }

  .contentDescription {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 2px;
  }

  .closeButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--secondary-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;

    &:hover {
      background: var(--surface-hover);
      color: var(--primary-text);
    }
  }
}

.contentBody {
  flex: 1;
  overflow-y: auto;
  padding: 0;

  &::-webkit-scrollbar {
    width: 5px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;

    &:hover {
      background: var(--border-default);
    }
  }
}
