// Your existing variables
$bg-light: #f9f9f9;
$bg-card: #fff;
$text-dark: #333;
$border-color: #ddd;
$primary-color: #1a73e8;
$active-tab-bg: #1a73e8;
$active-tab-text: #fff;
$inactive-tab-bg: #f3f3f3;
$inactive-tab-text: #333;
$hover-bg-color: lighten($primary-color, 15%);
$success-color: #28a745;
$danger-color: #dc3545;
$pending-color: #ffc107;

.meetings-container {
  background-color: $bg-card;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 600px; // Adjust as needed
  width: 100%;
  max-width: 800px; // Adjust as needed
  margin: 0 auto;
}

.meetings-header {
  padding: 20px 20px 0;
  background-color: $bg-card;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.meetings-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: $bg-light;
}

.nav-tabs {
  border: none;
  display: flex;
  gap: 10px;
  padding: 10px 0;

  .nav-item {
    .nav-link {
      border: 1px solid;
      border-radius: 12px;
      padding: 0;
      font-size: 14px;
      transition: all 0.3s ease;
      text-align: center;
      white-space: nowrap;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;

      span {
        padding: 8px 12px;
      }

      &.active, &:hover {
        background-color: transparent;
      }

      &#new-meetings-tab {
        color: #2196F3;
        background: white;
        border-color: #2196F3;
        &.active, &:hover {
          background-color: rgba(33, 150, 243, 0.1);
        }
      }

      &#accepted-meetings-tab {
        color: #4CAF50;
        background: white;
        border-color: #4CAF50;
        &.active, &:hover {
          background-color: rgba(76, 175, 80, 0.1);
        }
      }

      &#refused-meetings-tab {
        color: #F44336;
        background: white;
        border-color: #F44336;
        &.active, &:hover {
          background-color: rgba(244, 67, 54, 0.1);
        }
      }

      &#canceled-meetings-tab {
        color: #FFC107;
        background: white;
        border-color: #FFC107;


        &.active, &:hover {
          background-color: rgba(255, 193, 7, 0.1);

        }
      }
    }
  }
}

.meeting-card {
  background-color: $bg-card;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;

  .meeting-header {
    background-color: #e0e0e0;
    padding: 10px 15px;
    font-weight: bold;
    color: $text-dark;
  }

  .meeting-request {
    margin-left: 20px;
    margin-top: 10px;
    font-size: 14px;
    color: $text-dark;
  }

  .meeting-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .meeting-info {
      display: flex;
      align-items: center;

      img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin-right: 15px;
      }

      .meeting-details {
        .meeting-topic {
          font-weight: bold;
          margin-bottom: 5px;
          color: $text-dark;
        }

        .meeting-organizer {
          color: #666;
          font-size: 0.9em;
        }
      }
    }

    .meeting-actions {
      .btn {
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.9em;
        margin-left: 10px;

        &.btn-success {
          background-color: $success-color;
          border-color: $success-color;
        }

        &.btn-danger {
          background-color: $danger-color;
          border-color: $danger-color;
        }
      }
    }
  }
}

.meeting-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  overflow: hidden;

  &__header {
    background-color: #f1f3f4;
    padding: 12px 16px;
    font-size: 14px;
    color: #5f6368;
  }

  &__date {
    font-weight: 500;
  }

  &__request {
    padding: 12px 16px;
    font-size: 14px;
    color: #5f6368;
  }

  &__content {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  &__info {
    display: flex;
    align-items: center;
  }

  &__avatar-group {
    margin-right: 16px;
    position: relative;
    width: 48px;
    height: 48px;
  }

  &__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;

    &:first-child {
      top: 0;
      left: 0;
      z-index: 2;
    }

    &:last-child {
      bottom: 0;
      right: 0;
      z-index: 1;
    }
  }

  &__details {
    flex-grow: 1;
  }

  &__topic {
    font-weight: 500;
    margin-bottom: 4px;
    color: #202124;
  }

  &__participants {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.4;
  }

  &__meta {
    text-align: right;
  }

  &__time {
    display: block;
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 4px;

    i {
      margin-right: 4px;
    }
  }

  &__status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;

    &--new {
      background-color: #fef7e0;
      color: #f9ab00;
    }

    &--accepted {
      background-color: #e6f4ea;
      color: #1e8e3e;
    }

    &--refused {
      background-color: #fce8e6;
      color: #d93025;
    }

    &--canceled {
      background-color: #e8eaed;
      color: #5f6368;
    }
  }
}

