@import "../../../customer-service-styles.scss";

.ios-container {
  max-width: 100%;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: $background-tertiary;
}

.ios-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: $background-primary;
  border-bottom: 1px solid $border-color;
  position: sticky;
  top: 0;
  z-index: 10;

  h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto;
  }
}

.ios-back-btn {
  background: none;
  border: none;
  padding: 8px;
  z-index: 11;
}

.ios-content {
  padding: 16px;
}

.search-bar {
  position: relative;
  margin-bottom: 16px;

  input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: 10px;
    border: 1px solid $border-color;
    background-color: $background-secondary;
    font-size: 16px;

    &::placeholder {
      color: $text-tertiary;
    }
  }

  svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: $text-tertiary;
  }
}

.consultation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consultation-card {
  background-color: $background-primary;
  border-radius: 12px;
  padding: 16px;
  box-shadow: $shadow-sm;
  transition: transform 0.2s ease;

  &:active {
    transform: scale(0.98);
  }
}

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

.customer-info {
  display: flex;
  align-items: center;
  gap: 12px;

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: $primary-color;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }

  h3 {
    font-size: 16px;
    margin: 0;
    color: $text-primary;
  }

  .time {
    font-size: 14px;
    color: $text-tertiary;
    margin: 4px 0 0;
  }
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;

  &.urgent {
    background-color: rgba($danger-color, 0.1);
    color: $danger-color;
  }

  &:not(.urgent) {
    background-color: rgba($success-color, 0.1);
    color: $success-color;
  }
}

.content {
  color: $text-secondary;
  margin: 0 0 16px;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  gap: 8px;

  .ios-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;

    &.outline {
      background-color: transparent;
      border: 1px solid $primary-color;
      color: $primary-color;
    }

    &:not(.outline) {
      background-color: $primary-color;
      color: white;
    }
  }
}