@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;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background-color: $background-secondary;
  color: $text-secondary;
  font-size: 14px;
  transition: all 0.2s ease;

  &.active {
    background-color: $primary-color;
    color: white;
  }
}

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

.exception-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;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 8px;

  .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 6px;

    &.pending {
      background-color: $warning-color;
    }

    &.processing {
      background-color: $primary-color;
    }

    &.resolved {
      background-color: $success-color;
    }
  }

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

.date {
  font-size: 14px;
  color: $text-tertiary;
}

.card-body {
  margin: 12px 0;

  p {
    margin: 8px 0;
    line-height: 1.5;
    color: $text-secondary;

    strong {
      color: $text-primary;
    }
  }
}

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

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

    &.warning {
      background-color: $warning-color;
      color: white;
    }

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