@import '../colors';

ion-content {
    --background: white;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 3% 0 0%;
    height: 70px;
    position: sticky;
    left: 0;
    top: 0;
    background-color: lighten($blue-grey, 35%);
    z-index: 2;
    width: 100%;
    align-items: center;
    box-shadow: 0px 0px 5px $dark-blue;
    
    button {
        background-color: transparent;
        border: none;
    }
    
    .nav button {
        color: $blue-grey;
        display: flex;
        align-items: center;

        ion-icon {
            font-size: 24px;
        }
        
        span {
            margin-left: 5px;
            font-size: 0.9rem;
            font-size: 14px;
        }
    }

    header {
        flex-grow: 1;
        padding: 0 10px;
        font-size: 16px;
        color: darken($blue-grey, 30%);
        font-weight: 500;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        span {
            font-weight: 500;
            color: $blue-grey;
            font-size: 12px;
        }
    }
}

ion-searchbar {
    margin: 10px 0;       
}

ion-list {
    margin-bottom: 60px;

    ion-item {
        --padding-start: 5%;
        --padding-end: 5%;
    }

    ion-button {
        margin: 0;
        --border-width: 2px;
        --border-radius: 5px;
        width: 40px;
        height: 40px;
        transform: scale(0.9);
        
        &.active {
            --background: #01b868;
            --color: white;
            --border-color: #00ad62;

            ion-icon {
                font-size: 30px;

                &:nth-child(2) {
                    display: block;
                }

                &:nth-child(1) {
                    display: none;
                }
            }
        }

        ion-icon {
            font-size: 20px;

            &:nth-child(2) {
                display: none;
            }
        }        
    }
}

.confirm-button {
    position: fixed;
    bottom: 0;
    left: 0;
    --color: white;
    margin: 0;
    width: 100%;
    height: 50px;
    --background: #01b868;
}