
@use '../abstracts/variables' as *;
@use "../mixins/breakpoints" as *;

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inder&display=swap");

.participant-container {
    background-image: url("/resources/images/background_image.webp") !important;
    height: auto;
    font-family: "poppins", sans-serif;
    padding-top: 95px !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh !important;

    .participant-group-btn{
        .btn{
            @include media-max-sm{
                width: 100% !important;
            }

        }
    }

    .organization-details{
        padding:10px !important;
        margin: 8px;
        border-radius: 10px;
        @include media-min-md{
            margin:20px !important;
            padding:20px !important;
        }
        .sup-head {
            font-size: 11px;
            font-weight: 500;
        }
        .vertical-line{
            border-left: 3px solid $dark-brown;
            height: 60px;
        }
        .organization-info {
            @include media-min-xl {
                font-size: 18px !important;
            }
        }
    }
    .participant-icon-data {
        padding: 0.4rem 0;

        .sales-card {
            min-height: 160px;
        }
        @media screen and (min-width: 1200px) and (max-width: 1258px) {
            .sales-card {
                min-height: 179px;
            }
    }
    }
    .sales-bg{
        background-color: $dark-brown;
    }

    .icon-data-card {
        margin-top: 15px;

        .sales-card {
            min-height: 80px;
        }

        .head {
            padding: 5px;
            color: white;
            font-weight: 500;
            border-radius: 12px 12px 0px 0px;
        }
        .body {
            padding: 5px 8px;
            font-size: 13px;
            font-weight: 500;
            border-radius: 0px 0px 12px 12px;

            .divider {
                width: 1px;
                height: 28px;
                background-color: #000;
            }
        }
    }

    .participant-dashboard-icons {
        width: 35px;
        height: 35px;
    }

    .activity-goal {
        background-color: #ffe2e5;
    }

    .sales-target {
        background-color: #fff4de;
    }

    .referred {
        background-color: #dcfce7;
    }

    .apps-sold {
        background-color: #ffe8fe;
    }

    .ptf-kib {
        background-color: #d7f7f9;
    }

    .participant-total-donation {
        background-color: #e6e2ff;
    }

    .bg-gradient {
        background: linear-gradient(180deg, #3E5099, #512A47) !important;
        padding: 10px;
        min-height: 110px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

        @include media-min-xl {
            min-height: 150px;
        }
    }

    .participant-profile-card{
        background-color: $profile-bg;
        .participant-profile-icon{
            width: 23px;
            height: 22px;
        }
        .participant-profile-title-icon{
            width: 16px;
            height: 19px;
        }
        .participant-profile-title{
            color: $profile-title;
            font-size: 13px;
        }
        .participant-profile-text{
            color: $profile-text;
            font-size: 13px;
        }
    }

    .participant-progress{
        @include media-max-lg{
            width: 97%;
        }
        .participant-progress-bar{
            width: 160px;
            height: 160px;
            position: relative;
            .participant-outer {
                width: 160px;
                height: 160px;
                box-shadow: 6px 6px 10px -1px rgba(0,0,0,0.15);
                padding: 20px;
                border-radius: 50%;
                background-color: white;
                position: relative;
                overflow: hidden;
                --rotation: 0deg; /* Default value */
                --progress-color: white; /* Default color */
                --progress-gradient: conic-gradient(from 0deg, transparent 0%, transparent 100%); /* Default gradient */
            }

            .inner {
                width: 120px;
                height: 120px;
                border-radius: 50%;
                background-color: #3b56a7;
                z-index: 2;
                position: relative;
            }

            .participant-outer::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: var(--progress-gradient);
                border-radius: 50%;
                z-index: 1;
                transform: rotate(var(--rotation));
            }
        }
    }
    // .medal-box-col {
    //     @include media-min-xl {
    //         background-color: white;
    //     }
    // }
    .medal-box {
        .gold-medal {
            margin-top: 10px;
            width: 140px;
            // margin-left:-20px;
        }
        .silver-medal {
            margin-top: 10px;
            width: 140px;
        }
        .bronze-medal {
            margin-top: 10px;
            width: 140px;
        }
        .content-width {
            width: 120px;
        }
    }
    .participant-goal-text {
        font-weight: 500;
        color: #4a586c;

        @media (min-width: 320px) {
            font-size: 15px;
        }

        @media (min-width: 992px) {
            font-size: 12px !important;
        }
    }

    .edit-participant-profile-img {
        width: 70px;
        height: 70px;
    }

    .participant-edit-items {
        font-size: 12px;
    }

    .edit-participant-email,
    .edit-participant-number {
        color: #151d48;
    }

    .zipcode_detail,
    .activity_detail {
        background-color: #fff4de;
        border: 1px solid #0000003d;
    }

    .participant-code_detail,
    .participant-zipcode_detail,
    .participant-activity_detail,
    .participant-organization_detail {
        border: 1px solid #0000003d;
        font-size: 13px;
        color: #6e6e6e;
        font-weight: 500;
        padding: 2rem 1rem;
    }

    // ---------------------------dotted lines connecting four boxes ------------------------//
    .additional-details {
        position: relative;
    }

    .detail-box {
        position: relative;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

    .detail-box:nth-child(1)::after {
        content: "";
        position: absolute;
        width: 0;
        height: 29px;
        border-left: 2.5px dotted grey;
        left: 50%;
        bottom: -31px;
    }
    @include media-min-sm {
        .detail-box:nth-child(1)::before {
            content: "";
            position: absolute;
            height: 0;
            width: 25px;
            border-top: 2.5px dotted grey;
            right: -25px;
            top: 50%;
            transform: translateY(-50%);
        }
    }

    .detail-box:nth-child(3)::after {
        content: "";
        position: absolute;
        height: 0;
        width: 30px;
        border-top: 2px dotted grey;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .detail-box:nth-child(4)::before {
        content: "";
        position: absolute;
        height: 0;
        width: 20px;
        border-top: 2px dotted grey;
        left: -10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .participant-zipcode_detail,
    .participant-activity_detail {
        background-color: $bg-sandal;
    }

    /* Remove right-side line from the zip code box */
    .detail-box.participant-zipcode_detail::before {
        display: none;
    }

    /* Remove bottom line from the organization box */
    .detail-box.participant-organization_detail::after,
    .detail-box.participant-organization_detail::before {
        display: none;
    }

    @include media-min-sm {
        /* Remove bottom line from the activity box */
        .detail-box.participant-activity_detail::after {
            display: none;
        }
    }

    // // @media (min-width: 320px) and (max-width: 576px) {
    // @include media-max-sm {
    //     .detail-box.participant-code_detail::before {
    //         display: none;
    //     }

    //     .detail-box.participant-activity_detail::before {
    //         display: none;
    //     }

    //     // .detail-box.participant-activity_detail::after {
    //     //     display: block;
    //     // }
    // }
    // // @media (min-width: 320px) and (max-width: 576px) {
    // @include media-max-sm {
    //     .detail-box.participant-activity_detail::after {
    //         display: block;
    //     }
    // }

    // ---------------------------dotted lines connecting four boxes ends ------------------------//

    .participant-shareApp-btn,
    .participant-contact-btn {
        background-color: #25279f;
        padding: 0.5rem;
        width: 100%;
        font-size: 13px;
    }

    .participant-sales-training {
        background-color: #fff4de;
        color: #05004e;
        font-size: 0.95rem;
        border-radius: 13px;
    }

    .participant-training-video {
        box-shadow: 0px 4px 4px 0px #00000040;
        font-size: 0.7rem;
        color: #6e6e6e;
        padding: 0.9rem 0.7rem;
        cursor: pointer;
    }

    .participant-training-video-start {
        background-color: #fa5a7d;
    }

    .participant-training-video-sales {
        background-color: #ff947a;
    }

    .particiapnt-training-video-print {
        background-color: #3cd856;
    }

    .participant-training-video-learn {
        background-color: #bf83ff;
    }

    .participant-border-style {
        border: 2px dotted black;
        height: 25px;
        width: 1px;
    }

    .more_info,
    .sales-win-head {
        color: #05004e;
    }

    .participant-medals {
        height: 100%;
        width: 100%;
    }
    .participant-mail-personal-note{
        height: 250px;
        overflow-y: auto;
        background-color: #FFFBFB;
        &:focus{
            outline: none;
        }
        p{
            font-size: 13px;
        }
        .ql-toolbar.ql-snow{
            border: none !important;
            padding: 0 !important;
        }
    }

    // -------------------sponser's table --------------//
    .participant-sponsers-table {
        p{
            color: $dark-blue;
            font-size: 19px;
            font-weight: 700;
        }
        // padding: 0 30px;
        margin: 0 5px;
        tbody,
        td,
        tfoot,
        th,
        thead,
        tr {
            border: none !important;
        }


        .custom-table {
            width: 100%;
            // border-collapse: collapse;
        }

        .custom-table th,
        .custom-table td {
            // text-align: center;
            // width: 13%;
            // color: grey;
            font-size: 13px;
            font-weight: 600;
        }


        .table-body-participant .row-content {
            background-color: $header-clr;
            margin-bottom: 10px; /* Creates space between rows */
            color: #000;

        }

        .table-body-participant .row-content > div {
            padding: 10px;
            box-sizing: border-box;
            border-radius: 8px;
        }
    }

    .participant-export-btn {
        background-color: #96a5b8;
    }

    input.icon-search-participant {
        border: 1px solid #555;
        padding: 9px 2px 9px 40px;
        background: transparent url("/resources/images/search.webp") no-repeat 13px;
        outline: none;
    }

    ::placeholder {
        color: lightgrey;
        font-size: 14px;
    }

    // --------------- pagination ------------------//
    .pagination .page-link {
        border: none;
        background-color: transparent;
        color: #96a5b8;
        font-size: 13px;
        font-weight: 500;
    }

    .pagination .page-item.active .page-link {
        background-color: $bg-sandal;
        color: black;
    }

    .pagination .page-link:hover {
        color: #0056b3;
    }

    .participant-edit-profile {
        color: #fa5a7d;
        font-size: 0.85rem;
    }

    // --------------------------Edit Share Model -------------------//
    .participant-edit-modal {
        .participant-modal-header {
            background-color: #fff4de;
        }

        .modal-participant-edit-dialog {
            max-width: 900px;
        }

        .participant-edit-submit {
            background-color: #25279f;
        }
    }

    // --------------------------share app Modal --------------------//
    .participant-share-modal {
        .participant-pop-up-title {
            font-family: "poppins", sans-serif;
            font-size: 17px;
        }
         .social-btn-facebook{
        display: none;
    }

        .share-content {
            border-radius: 20px;
            width: auto;
        }

        .participant-share-dialog-box {
            max-width: 950px;
        }

        .participant-social-btn {
            width: 100%;

            @media (min-width: 900px) {
                width: 70%;
            }
        }

        .body-para {
            font-family: "poppins", sans-serif;
            line-height: 35px;
            font-weight: 500;
            font-size: 14px;
        }

        .participant-share-email-btn,
        .participant-share-text-btn {
            border: none;
            background-color: #11476D !important;
        }
          .participant-social-share-text-btn {
            border: none;
            background-color: #345094 !important;
        }
    }

    .bg-darkblue {
        background-color: #25279f;
        color: white;
    }

    .bg-sandal {
        background-color: #FFF4DE;
    }

    .participant-send-email-pop {
        .participant-send-email-dialog {
            max-width: 700px !important;

            .participant-mail-note {
                font-size: 13px !important;
                color: grey;
            }

            .participant-textarea-fixed {
                height: 4em;
                overflow-y: auto;
                resize: none;
                font-size: 13px !important;
            }

            .participant-textarea-limit {
                height: 10rem !important;
                overflow-y: auto !important;
                resize: none !important;
                font-size: 13px !important;
            }

            .participant-share-mail-submit {
                font-size: 14px;
            }
        }
    }

    .participant-send-text-pop {
        .participant-text-modal-dialog {
            max-width: 600px !important;
        }

        .input-add-btn {
            background-color: #007bff;
        }

        .input-remove-btn {
            background-color: #fd7e14;
        }
    }

    .participant-contact-popup {
        .participant-contact-supporter {
            max-width: 800px;

            .text-area-scroll {
                height: 8em;
                overflow: auto;
                resize: none;
            }
            .contact-submit-btn {
                background-color: #25279F;
                padding: 0.5rem;
                font-size: 14px;
            }


        }
    }


    .btn-copy {
  border: 1px solid #3B56A7;   /* light green border */
  color: #3B56A7;              /* dark green text */
  background: transparent;     /* transparent background */
  font-size: 14px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.btn-copy:hover {
  background: #eaf3ea;         /* very light green on hover */
  color: #3B56A7;
  border-color: #3B56A7;
}
   .share-box {
  white-space: pre-line;  /* Preserve line breaks */
  font-size: 15px;
  line-height: 1.6;
  height: 260px;              /* stable fixed height (change if needed) */
  max-height: 60vh;           /* responsive cap for small screens */
  overflow-y: auto;           /* show scrollbar when overflow */
  overflow-x: hidden;
}
}

.participant-detail-container{
    background-color: $bg-blue !important;
    height: auto;
    font-family: "poppins", sans-serif;
    padding-top: 95px !important;


    @include media-min-md{
        padding: 0 30px;
    }
    @include media-min-xl{
        padding: 0 50px;
    }
    .bg-green{
        background-color: #b6f3b6;
    }
    .bg-brown{
        background-color: #d9c1d9 !important;
    }


    .green-card-row {
        width: 95%;

        @include media-min-md {
            width: 100%;
        }
        @include media-min-xl {
            width: 100%;
        }
    }

    tbody,
    td,
    tfoot,
    th,
    thead,
    tr {
        border: none !important;
    }

    .custom-table {
        width: 100%;
    }

    .custom-table th,
    .custom-table td {
        // text-align: center;
        // width: 13%;
        color: grey;
        font-size: 13px;
        font-weight: 600;
    }


    .table-body-participant .row-content {
        background-color: $header-clr;
        margin-bottom: 10px; /* Creates space between rows */
        color: #000;

    }

    .table-body-participant .row-content > div {
        padding: 10px;
        box-sizing: border-box;
        border-radius: 8px;
    }




    .icon-data {
        // padding: 0.4rem;
        // margin-top: 15px;
        padding: 0rem 0.5rem;

        @include media-min-md {
            width: 49%;
        }
        @include media-min-xl {
            width: 11%;
        }

        .admin-card {
            min-height: 165px;
        }

        .app-sales-goal {
            background-color: #e2fdff;
        }

        .app-sold {
            background-color: #dedfff;
        }

        .total-sales {
            background-color: #fff9e8;
        }

        .total-donation {
            background-color: #d7f7f9;
        }

        .total-money {
            background-color: #ffe2f9;
        }
        .referred {
            background-color: #dcfce7;
          }
        .dashboard-icons{
            width: 15%;
            @include media-min-sm {
                width: 9%;
            }
            @include media-min-md {
                width: 17%;
            }

            @include media-min-lg {
                width: 15%;
            }

            @include media-min-xl {
                width: 30%;
            }
        }

    }
    .icon-data-card {
        margin-top: 15px;

        .sales-card {
            min-height: 80px;
        }

        .participant-dashboard-icons {
            width: 35px;
            height: 35px;
        }

        .activity-goal {
            background-color: #ffe2e5;
        }

        .sales-target {
            background-color: #fff4de;
        }

        .head {
            padding: 5px;
            color: white;
            font-weight: 500;
            border-radius: 12px 12px 0px 0px;
        }
        .body {
            padding: 5px 8px;
            font-size: 13px;
            font-weight: 500;
            border-radius: 0px 0px 12px 12px;

            .divider {
                width: 1px;
                height: 28px;
                background-color: #000;
            }
        }
    }
    .bg-progress{
        background-color: #efe8e8 !important;
        color: $dark-brown;
        min-height: 165px !important;
        .progress{
            border: 1px solid lightgray;
            .progress-bar{
                background-color: $dark-brown !important;
            }
        }



    }
    .bg-participant-data{
        background-color: #473d70;
        background: linear-gradient(#473d70,#404b8f);
        color: $white;
    }
    .app-sold-text{
        font-size: 14px !important;
    }
}

.input-color{
    background-color: $modal-disable-clr !important;
}
.edit-submit{
    background-color: $dark-blue !important;
}
.edit-profile-btn{
    border: 1px solid $dark-blue !important;
}
.edit-profile-btn:hover{
    color: $dark-blue !important;
}

.organization-image {
    width: 75px;
    height: 75px;
    border-radius: 50%;
}
