@media screen and (min-width: 481px){

    .groups-modal {
        display: none; 
        position: fixed; 
        z-index: 10; 
        padding-top: 10vh; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        background-color: rgba(0,0,0,0.6); 
      }
      
      .groups-modal-content {
        position: relative;
        width: 40%;
        max-height: 75vh;
        min-height: 300px;
        background-color: var(--white);
        margin: auto;
        padding: 2em;
        border: 1px solid var(--purple-100);
        border-radius: 8px;
        overflow: scroll;
      }
    
    .create-groups-holder {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        width: 100%;
        min-height: 200px;
        border-radius: 10px; 
        padding: 20px;
        border: 1px solid var(--purple-200);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .create-groups-holder.no-groups { 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        width: 100%;
        min-height: 200px;
        border-radius: 10px; 
        padding: 20px;
        border: 1px solid var(--purple-200);
        background-color: var(--purple-100);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .group-form-wrapper { 
        position: relative;
        display: inline-block;
    }

    .group-form {
        display: flex;
        flex-direction: column;
        background: var(--purple-100);
        box-shadow: 2px 5px 10px rgba(0,0,0,0.25);
        border-radius: 12px;
        border: 1px solid var(--purple-200);
        padding: 12px;
        margin-top: 10px;
        width: auto;
        min-width: 150px;
        position: absolute;
        top: 20px;
        right: 0;
        z-index: 101;
      }
    
    .group-form-button-holder {
        width: 100%;
        justify-content: space-between;
        display: flex;
        gap: 12px;
    }

    .groups-input {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 5px 6px;
        border-style: solid;
        border-width: 1px;
        border-color:#fff;
        background-color: #fff;
        border-radius: 7px;
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: var(--purple-400);
        border: 1px solid var(--purple-200);
        margin-bottom: 10px;
    }

    .groups-input:focus { 
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        outline: none;
        border: 1px solid var(--purple-400);
    }

    .groups-input::placeholder { 
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: var(--grey-300);
    }
    
    .groups-input-label {
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--grey-350);
        margin-bottom: 5px;
    }

    .groups-color-options {
        display: flex;
        gap: 6px;
        margin-bottom: 15px;
    }

    .groups-color-dot {
        width: 16px;
        height: 16px;
        display: inline-block;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border 0.2s ease;
    }
      
    .groups-color-dot.selected {
        border-color: var(--grey-500);
    }
      
    .groups-color-dot.purple { background-color: var(--purple-300); }
    .groups-color-dot.green { background-color: var(--green-300); }
    .groups-color-dot.blue { background-color: var(--blue-300); }
    .groups-color-dot.orange { background-color: var(--orange-200); }
    .groups-color-dot.red { background-color: var(--red-200); }
    .groups-color-dot.gray { background-color: var(--grey-350); }

    .groups-color-dot-label {
        display: inline-block;
        cursor: pointer;
        position: relative;
    }
      
    .groups-color-dot-label input[type="radio"] {
        display: none;
    }

    .groups-color-dot-label input[type="radio"]:checked + .groups-color-dot {
        border-color: var(--grey-500);
        box-shadow: 0px 0px 4px rgba(0,0,0,0.50);
    }

    .groups-modal-header {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .groups-modal-subheader {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .groups-line-item-wrapper {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        border-bottom: 1px dashed var(--purple-200);
    }

    .groups-line-item {
        display: flex;
        justify-content: space-between;
        width: 100%; 
        padding: 8px 0;
        border-top: 1px dashed var(--purple-200);
    }

    .groups-line-item-left { 
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .groups-line-item-right { 
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .groups-pill { 
        width: auto;
        padding: 2px 6px;
        border-radius: 7px;
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        /* transition: all 0.3s ease; */
    }

    .groups-pill.red {
        color: var(--red-300);
        background-color: var(--red-100);
    }

    .groups-pill.green {
        color: var(--green-400);
        background-color: var(--green-100);
    }

    .groups-pill.purple {
        color: var(--purple-400);
        background-color: var(--purple-200);
    }

    .groups-pill.blue {
        color: var(--blue-300);
        background-color: var(--blue-100);
    }

    .groups-pill.gray {
        color: var(--grey-400);
        background-color: var(--grey-200);
    }

    .groups-pill.orange {
        color: var(--orange-300);
        background-color: var(--orange-100);
    }

    .groups-pill.none {
        color: var(--grey-300);
        background-color: var(--white);
    }

    .assign-groups-header {
        width:100%;
        display: flex;
        justify-content: space-between;
        background-color: var(--purple-100);
        border-radius: 5px 5px 0 0;
        padding: 15px 60px 15px 25px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .groups-metric-wrapper { 
        width: 100%; 
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 12px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        margin-top: 20px;
        max-height: 195px;
        overflow-y: auto;
    }

    .groups-metric-item {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--purple-200);
        border-radius: 6px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .group-metric-item-header {
        width: auto;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px;
    }

    .group-metric-count-holder {
        padding: 1px 3px;
        border-radius: 3px;
        background-color: var(--purple-100);
        font-family: 'Lexend', sans-serif;
        font-size: 10px;
        line-height: 14px;
        font-weight: 400;
        text-align: left;
        margin-block-start: 0;
        margin-block-end: 0;
        color: var(--grey-350);
    }

    .groups-metric-label { 
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        line-height: 14px;
        font-weight: 400;
        text-align: left;
        margin-block-start: 0;
        margin-block-end: 0;
        color: var(--grey-350);
    }

    .groups-metric-label.red {color: var(--red-300);}
    .groups-metric-label.green {color: var(--green-300);}
    .groups-metric-label.purple {color: var(--purple-300);}
    .groups-metric-label.blue {color: var(--blue-300);}
    .groups-metric-label.orange {color: var(--orange-200);}
    .groups-metric-label.gray {color: var(--grey-400);}

    .groups-metric-holder { 
        width: auto;
        display: flex;
        gap: 8px;
    }
}

@media screen and (max-width: 480px){

    .groups-modal {
        display: none; 
        position: fixed; 
        z-index: 10; 
        padding-top: 5vh; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        background-color: rgba(0,0,0,0.6); 
      }
    
      .groups-modal-content {
        position: relative;
        width: 85%;
        max-height: 80vh;
        min-height: 300px;
        background-color: var(--white);
        margin: auto;
        padding: 1em;
        border: 1px solid (var(--purple-100));
        border-radius: 8px;
        overflow: scroll;
      }
    
    
    .create-groups-holder {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        width: 100%;
        min-height: 200px;
        border-radius: 10px; 
        padding: 20px;
        border: 1px solid var(--purple-200);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .create-groups-holder.no-groups { 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        width: 100%;
        min-height: 175px;
        border-radius: 10px; 
        padding: 20px 30px;
        border: 1px solid var(--purple-200);
        background-color: var(--purple-100);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .group-form-wrapper { 
        position: relative;
        display: inline-block;
    }

    .group-form {
        display: flex;
        flex-direction: column;
        background: var(--purple-100);
        box-shadow: 2px 5px 10px rgba(0,0,0,0.25);
        border-radius: 12px;
        border: 1px solid var(--purple-200);
        padding: 12px;
        margin-top: 10px;
        width: auto;
        min-width: 150px;
        position: absolute;
        top: 20px;
        right: 0;
        z-index: 101;
      }
    
    .group-form-button-holder {
        width: 100%;
        justify-content: space-between;
        display: flex;
        gap: 12px;
    }

    .groups-input {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 5px 6px;
        border-style: solid;
        border-width: 1px;
        border-color:#fff;
        background-color: #fff;
        border-radius: 7px;
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: var(--purple-400);
        border: 1px solid var(--purple-200);
        margin-bottom: 10px;
    }

    .groups-input:focus { 
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        outline: none;
        border: 1px solid var(--purple-400);
    }

    .groups-input::placeholder { 
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: var(--grey-300);
    }
    
    .groups-input-label {
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--grey-350);
        margin-bottom: 5px;
    }

    .groups-color-options {
        display: flex;
        gap: 6px;
        margin-bottom: 15px;
    }

    .groups-color-dot {
        width: 16px;
        height: 16px;
        display: inline-block;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border 0.2s ease;
    }
      
    .groups-color-dot.selected {
        border-color: var(--grey-500);
    }
      
    .groups-color-dot.purple { background-color: var(--purple-300); }
    .groups-color-dot.green { background-color: var(--green-300); }
    .groups-color-dot.blue { background-color: var(--blue-300); }
    .groups-color-dot.orange { background-color: var(--orange-200); }
    .groups-color-dot.red { background-color: var(--red-200); }
    .groups-color-dot.gray { background-color: var(--grey-350); }

    .groups-color-dot-label {
        display: inline-block;
        cursor: pointer;
        position: relative;
    }
      
    .groups-color-dot-label input[type="radio"] {
        display: none;
    }

    .groups-color-dot-label input[type="radio"]:checked + .groups-color-dot {
        border-color: var(--grey-500);
        box-shadow: 0px 0px 4px rgba(0,0,0,0.50);
    }

    .groups-modal-header {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .groups-modal-subheader {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .groups-line-item-wrapper {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        border-bottom: 1px dashed var(--purple-200);
    }

    .groups-line-item {
        display: flex;
        justify-content: space-between;
        width: 100%; 
        padding: 6px 0;
        border-top: 1px dashed var(--purple-200);
    }

    .groups-line-item-left { 
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .groups-line-item-right { 
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .groups-pill { 
        width: auto;
        padding: 2px 6px;
        border-radius: 7px;
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        /* transition: all 0.3s ease; */
    }

    .groups-pill.red {
        color: var(--red-300);
        background-color: var(--red-100);
    }

    .groups-pill.green {
        color: var(--green-400);
        background-color: var(--green-100);
    }

    .groups-pill.purple {
        color: var(--purple-400);
        background-color: var(--purple-200);
    }

    .groups-pill.blue {
        color: var(--blue-300);
        background-color: var(--blue-100);
    }

    .groups-pill.gray {
        color: var(--grey-400);
        background-color: var(--grey-200);
    }

    .groups-pill.orange {
        color: var(--orange-300);
        background-color: var(--orange-100);
    }

    .groups-pill.none {
        color: var(--grey-300);
        background-color: var(--white);
    }

    .assign-groups-header {
        width:100%;
        display: flex;
        justify-content: space-between;
        background-color: var(--purple-100);
        border-radius: 5px 5px 0 0;
        padding: 15px 45px 15px 20px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .groups-metric-wrapper { 
        width: 100%; 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        margin-top: 20px;
        max-height: 300px;
        overflow-y: auto;
    }

    .groups-metric-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--purple-200);
        border-radius: 6px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .group-metric-item-header {
        width: auto;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px;
    }

    .group-metric-count-holder {
        padding: 1px 3px;
        border-radius: 3px;
        background-color: var(--purple-100);
        font-family: 'Lexend', sans-serif;
        font-size: 10px;
        line-height: 14px;
        font-weight: 400;
        text-align: left;
        margin-block-start: 0;
        margin-block-end: 0;
        color: var(--grey-350);
    }

    .groups-metric-label { 
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        line-height: 14px;
        font-weight: 400;
        text-align: left;
        margin-block-start: 0;
        margin-block-end: 0;
        color: var(--grey-350);
    }

    .groups-metric-label.red {color: var(--red-300);}
    .groups-metric-label.green {color: var(--green-300);}
    .groups-metric-label.purple {color: var(--purple-300);}
    .groups-metric-label.blue {color: var(--blue-300);}
    .groups-metric-label.orange {color: var(--orange-200);}
    .groups-metric-label.gray {color: var(--grey-400);}

    .groups-metric-holder { 
        width: auto;
        display: flex;
        gap: 8px;
    }


 }