@use "../variables" as *;
@use "../colors" as *;

.dashboard-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 0;
}

.dashboard-content {
  width: 100%;
  margin: 0;
  background: white;
  min-height: 100vh;
}

.dashboard-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
  
  h1 {
    font-size: 1.25rem;
    font-weight: $font-weight-medium;
    color: var(--color-neutral-900);
    margin: 0;
  }
}

.dashboard-body {
  padding: 2rem;
}

.section {
  margin-bottom: 2.5rem;
  
  &-title {
    font-size: 0.875rem;
    font-weight: $font-weight-semibold;
    color: var(--color-neutral-900);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  
  .label {
    color: var(--color-neutral-700);
    font-weight: $font-weight-regular;
  }
  
  .value {
    color: var(--color-neutral-900);
    font-weight: $font-weight-regular;
  }
}

.token-section {
  margin-bottom: 1.5rem;
  
  .token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    
    h4 {
      font-size: 0.875rem;
      font-weight: $font-weight-medium;
      color: var(--color-neutral-900);
      margin: 0;
    }
  }
  
  .token-content {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--color-neutral-800);
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    
    &.collapsed {
      max-height: 60px;
      overflow: hidden;
      position: relative;
      
      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(transparent, #f8f9fa);
      }
    }
  }
  
  .toggle-btn {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-primary-600);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    
    &:hover {
      color: var(--color-primary-700);
    }
  }
}

.copy-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: white;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: var(--color-neutral-700);
  cursor: pointer;
  transition: all 0.2s;
  
  &:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
  }
  
  .v-icon {
    font-size: 14px;
    margin-right: 4px;
  }
}

.payload-section {
  .payload-content {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--color-neutral-800);
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

@media (max-width: $breakpoint-mobile) {
  .dashboard-body {
    padding: 1rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    
    .label {
      font-weight: $font-weight-semibold;
    }
  }
}
