import styled from "styled-components";

export const AdminRolesCreateContainer = styled.div`
  .hr_line {
    border-radius: 31px;
    background: #d9d9d9;
    height: 100vh;
    width: 1px;
  }

  .arp_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    .arp_title {
      color: #1c2434;
      font-size: 18px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
      span {
        display: flex;
        align-items: center;
      }
    }

    .arp_ref {
      color: #64748b;
      font-size: 16px;
      font-weight: 600;
      line-height: normal;
      display: flex;
      align-items: center;
      gap: 8px;

      span {
        color: #3c50e0;
      }

      .slash {
        color: #64748b;
      }
    }
  }

  .arp_create_row {
    display: flex;
    width: 100%;

    .arp_detail_one {
      width: 40%;
    }

    .arp_role_list {
      width: 58%;
    }
  }
`;

export const RoleNameContainer = styled.div`
  padding-right: 31px;

  .rl_title {
    color: #c6cccc;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .rl_perm_txt {
    color: #4a4d4d;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
  }
  .rl_perm_subtxt {
    color: #adb2b2;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.32px;
    margin-bottom: 16px;
  }
  .role_list_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;

    .rlr_col {
      padding: 8px;
      height: 28px;
      border-radius: 44px;
      border: 1px solid #099;
      background: rgba(0, 194, 194, 0.1);
      display: flex;
      gap: 10px;
      align-items: center;
      color: #099;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.24px;

      span {
        border-radius: 100%;
        background: #00c2c2;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.24px;
      }
    }

    .rlr_others {
      margin-left: 6px;
      color: #099;
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
    }
  }

  .admins_row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;

    .adm_others {
      margin-left: 6px;
      color: #00c2c2;
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
    }

    .adm_img_group {
      position: relative;
      display: flex;
      align-items: center;
      max-width: 90px;
      width: 100%;

      .adr_img {
        width: 38px;
        height: 38px;
        border-radius: 100%;
        border: 1px solid #c6cccc;
        background: #c6cccc;

        &:nth-child(2) {
          position: absolute;
          left: 26px;
        }
        &:nth-child(3) {
          position: absolute;
          left: 53px;
        }
        img {
          width: 100%;
          border-radius: 100%;
        }
      }
    }
  }
`;

export const PermissionsContainer = styled.div`
  padding-left: 25px;

  .pm_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;

    .pm_title {
      color: #4a4d4d;
      font-size: 24px;
      font-weight: 700;
      line-height: normal;
    }
  }
`;

export const PermissionsAccordion = styled.div`
  border-radius: 12px;
  background: #f5f7f7;
  padding: 12px;
  margin-bottom: 20px;
  transition: 0.3 all;

  .rc-accordion-toggle {
    position: relative;
    display: flex;
    justify-content: space-between;
    color: #636666;
    align-items: center;
    font-size: 16px;
    font-weight: 700;

    span {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .rc_sl {
      display: flex;
      gap: 8px;
      align-items: center;
      .adm_check > span {
        border-radius: 8px;
      }

      .rc-accordion-icon {
        margin-left: 12px;
      }
    }
  }

  .rc-collapse {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;

    .rc_body_main {
      border-bottom: 1px solid #d9d9d9;
      padding: 10px 0;

      .rcb_header {
        color: #616161;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        display: flex;
        align-items: center;
        gap: 16px;
        justify-content: space-between;
        margin-bottom: 12px;
      }

      .rcb_body {
        display: flex;
        gap: 20px;
        justify-content: space-between;

        .rcb_lang_list {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          gap: 8px;

          .rcb_lang_box {
            border-radius: 48px;
            background: #dfe5e5;
            padding: 6px;
            height: 31px;
            display: flex;
            align-items: center;
            gap: 6px;
          }
        }
        .sel_lang_dropdown {
          width: 230px;
          height: 44px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 10px 20px;
          color: #adb2b2;
          font-size: 16px;
          font-weight: 400;
          letter-spacing: 0.32px;
          border-radius: 12px;
          border: 1px solid #c6cccc;
          background: #fff;
        }
      }
    }
  }
  .rc-collapse.show {
    height: auto;
  }

  .rc-accordion-toggle.active .rc-accordion-icon {
    transform: rotate(180deg);
  }
`;

export const AdminsContainer = styled.div`
  padding-left: 25px;

  .ad_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;

    .ad_title {
      color: #4a4d4d;
      font-size: 24px;
      font-weight: 700;
      line-height: normal;
    }
  }

  .ad_filter_row {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    justify-content: space-between;

    .ad_drop_filter {
      position: relative;
    }

    .ad_filter_box {
      border-radius: 12px;
      border: 1px solid #c6cccc;
      background: #fff;
      min-width: 170px;
      height: 44px;
      padding: 10px 20px;
      display: flex;
      gap: 10px;
      align-items: center;
      color: #636666;
      font-size: 14px;
      font-weight: 600;
    }

    .ad_filter_body {
      position: absolute;
      top: 50px;
      left: 0;
      min-width: 170px;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.1);
      height: 236px;
      padding: 8px;
      .afb_item {
        padding: 8px;
        color: #1c1c1c;
        font-family: "Inter";
        font-size: 14px;
        font-weight: 400;
      }
    }
  }

  .ad_body {
    .ad_list_row {
      display: flex;
      padding: 14px 0;
      align-items: center;
      border-bottom: 1px solid #dfe5e5;

      .adl_box {
        margin-right: 16px;
        .adm_check > span {
          border-radius: 8px;
        }
      }

      .adl_wrapper {
        display: flex;
        gap: 8px;
        align-items: center;
        .adl_img {
          width: 38px;
          height: 38px;
          background: #c6cccc;
          border-radius: 100%;
          img {
            width: 100%;
            border-radius: 100%;
          }
        }

        .adl_title {
          color: #03091d;
          font-size: 16px;
          font-weight: 600;
          margin-bottom: 2px;
        }

        .adl_stat {
          padding: 1px 6px;
          border-radius: 37px;
          background: #f5f7f7;
          color: #949999;
          font-size: 12px;
          font-weight: 600;
          cursor: pointer;
        }
      }
    }
  }
`;
