@import "../helpers/variables";
@import "../helpers/mixins";

$big-footer-height: 250px;
$small-footer-height: 50px;

$appBorderRadius: 8px;

html {
    height: 100%;
}

body {
    position: relative;
    min-height: 100%;

    $background-color: $body-bg;

    &.state-app_wallet {
        height: 100%;
        overflow: hidden;
    }

    &.state-app_setup,
    &.state-app_loggedout,
    &.state-app_bannedip {
        @extend .fill-height-or-more;

        padding-bottom: $big-footer-height * 2;

        @media (min-width: $screen-md-min) {
            padding-bottom: $big-footer-height;
        }
    }
}

.dsb {
    display: block;
}

.dsib {
    display: inline-block;
}

.oh {
    overflow: hidden;
}

a:focus {
    outline: none !important;
}

.pointer {
    cursor: pointer;
}

.bodyViewContainer {
    height: 100%;
}

.row-no-padding {
    @for $i from 0 through 12 {
        .col-xs-#{$i} {
            padding-left: 0px;
            padding-right: 0px;
        }

        .col-sm-#{$i} {
            padding-left: 0px;
            padding-right: 0px;
        }

        .col-md-#{$i} {
            padding-left: 0px;
            padding-right: 0px;
        }

        .col-lg-#{$i} {
            padding-left: 0px;
            padding-right: 0px;
        }
    }
}

.height-100 {
    height: 100%;
}

.min-width-zero {
    min-width: 0;
}

.header-inline {
    display: inline-block;
}

.flex-container {
    @include display-flex;
}

.fill-height-or-more {
    @include display-flex;
    @include flex-direction(column);

    min-height: 100%;

    > div {
        // these are flex items

        // flex: 1; same as:
        // flex-grow: 1;
        // flex-shrink: 1;
        // flex-basis: auto;
        // flex: 1 1 auto;
        flex: 1;

        @include display-flex;
        @include flex(1);
        @include flex-direction(column);
        @include justify-content(flex-start);

        > div {
            // also flex items
       
        }
    }
}

.footer {
    -webkit-font-smoothing: antialiased;
    width: 100%;
    padding-top: 28px;
    padding-bottom: 28px;

    @include networkPrimaryDark("background-color");

    clear: both;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    height: $big-footer-height * 2;

    @media (min-width: $screen-md-min) {
        height: $big-footer-height;
    }

    .copyright {
        .copyright-logo {
            width: 130px;
            height: 22px;
            background: url("../img/logo-btc-reverse.png");
            background-repeat: no-repeat;
            background-size: 130px 22px;
        }

        .copyright-text {
            font-size: 12px;
            line-height: 36px;
            color: #888;
        }
    }

    .links-list {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .links-column {
        float: left;
        width: 190px;
    }

    .links-category {
        color: #ddd;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .links-list-item a {
        color: #888;
        font-size: 14px;
        line-height: 2;
    }

    .platform-swtich {
        font-size: 16px;
        line-height: 22px;
        white-space: nowrap;

        .bticon {
            color: #ddd;
            vertical-align: middle;
            position: static;
            margin: 0px;
            padding: 0px;
            width: 10px;
        }

        a {
            color: #ddd;
        }
    }
}

.state-app_wallet {
    .footer {
        height: $small-footer-height;
        overflow: hidden;
        -webkit-transition: height 0.5s ease;
        -moz-transition: height 0.5s ease;
        -o-transition: height 0.5s ease;
        transition: height 0.5s ease;

        &:hover {
            height: $big-footer-height;
        }
    }
}

.mainMenu {
    background-color: $black-light;
    height: 100%;

    .wallets-list-holder {
        padding: 30px 18px 16px;

        .wallets-list {
            .dropdown-menu {
                min-width: 100%;
                max-height: 260px;
                overflow-y: auto;
                border-radius: 0;
                padding: 0;
                font-size: 17px;
                line-height: 24px;

                a {
                    padding: 6px 16px;
                }
            }

            .btn {
                text-align: left;
                background-color: #666;
                color: white;
                border-color: #666;
                border-radius: 0;
                padding: 12px 16px;
                font-size: 18px;
                font-weight: 400;

                .text {
                    float: left;
                    width: calc(100% - 16px);
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }
    }

    .sidebar-nav {
        list-style: none;
        width: 100%;
        height: 30%;
        min-height: 300px;
        padding: 0;

        li {
            a {
                display: block;
                text-decoration: none;
                color: $lightgray-light;
                padding: 20px 20px 20px 30px;
                font-weight: $normal;
                font-size: 18px;
                position: relative;
                border: 0px;

                &:hover, &:active, &:focus {
                    text-decoration: none;
                    color: $white;
                    background: none;
                    background-color: $grey;
                }

                &:hover {
                    text-decoration: none;
                }

                .bticon {
                    width: auto;
                    margin: 0px;
                    padding: 0px;
                    display: inline;
                }
            }

            &.sidebar-brand {
                text-align: left;
                padding: 20px;

                a {
                    padding: 0px;
                    height: 80px;
                    font-size: 18px;
                    line-height: 60px;
                    background: none;

                    img {
                        border: 1px solid $darkgray-light;
                    }
                }
            }

            &.active {
                a {
                    font-weight: $bold;

                    @include networkPrimaryBG("background-color");
                }
            }
        }
    }

    .socialMediaButtons {
        position: absolute;
        bottom: 75px;
        left: 0px;
        width: 100%;
        margin: 20px 20px;
        text-align: left;

        a {
            color: $muted;
            text-decoration: none;
        }
    }

    .appStoreButtons {
        position: absolute;
        bottom: 0px;
        left: 0px;
        width: 100%;
        margin: 20px 20px;

        a {
            color: $muted;
            padding: 4px 6px;
            display: block;
            text-decoration: none;
        }
    }

    .securityProgressBar {
        position: absolute;
        bottom: 105px;
        left: 0px;
        width: 100%;
        margin: 20px 20px;

        a {
            color: $muted;
            padding: 4px 6px;
            display: block;
            text-decoration: none;
        }
    }
}

.stick-to-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

$appHeaderHeight: 80px;

.appWrapper {
    position: relative;
    height: calc(100% - 60px);
    min-height: 400px;

    .appContainer {
        height: 100%;
        padding: 0;
        position: relative;

        .app-left-col, .app-right-col {
            height: 100%;
            position: relative;
        }

        .app-left-col {
            float: left;
            width: 25%;
        }

        .app-right-col {
            float: right;
            width: 75%;
            border-right: 1px solid $muted;
            margin: 0 0 0 -1px;
        }

        .app-body {
            height: calc(100% - #{$appHeaderHeight});
            overflow-y: auto;
            overflow-x: hidden;
            background-color: $white;

            .app-body-container {
                position: relative;
                min-height: 100%;
                padding-bottom: 50px;

                .appPage {
                    padding: 10px 40px 20px 40px;
                }
            }
        }
    }
}

//--- Scaffolding ---
.opacity-50 {
    opacity: 0.5;
}

.opacity-30 {
    opacity: 0.3;
}

.margin-t {
    margin-top: 0.5rem;
}

.margin-b {
    margin-bottom: 0.5rem;
}

.padding-t {
    padding-top: 0.5rem;
}

.padding-t-big {
    padding-top: 2rem;
}

.padding-b {
    padding-bottom: 0.5rem;
}

.no-padding {
    padding: 0;
}

.no-margin {
    margin: 0;
}

.blur-me {
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    filter: blur(3px);
    transition: filter 0.8s linear;
    -webkit-transition: -webkit-filter 0.8s linear;
}

.spin-me {
    -webkit-animation: spin 1s infinite linear;
    -moz-animation: spin 1s infinite linear;
    -o-animation: spin 1s infinite linear;
    animation: spin 1s infinite linear;
}

.capitalise {
    text-transform: capitalize;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.sentence-case {
    display: inline-block; // required for ::first-letter to work

    &::first-letter {
        text-transform: uppercase;
    }
}

.text-bad {
    color: $bad-red;
}

.text-good {
    color: $good-green;
}

.text-warning {
    color: $sunflower-dark;
}

.text-neutral {
    color: #666;
}

.text-white {
    color: $white;
}

.text-ellipsis {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.alert-default {
    background-color: $lightgray-light;
    border: 1px solid $border-color;
}

.password-mask {
    -webkit-text-security: disc;
}

//ng-animate is enabled by default on EVERYTHING...any transition on an element will defer ng-if/ng-show
//when this is giving issues (like with buttons that have a transition for the active state), add this class to bypass
.no-animate {
    @include transition(none 0s !important);

    &.ng-animate {
        @include transition(none 0s !important);
    }
}

.item-no-border {
    border: none;
}

.item-no-border-b {
    border-bottom: none;
}

//remove the number spinner (to help with UI dev in browser)
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.sectionTop {
    background-color: $pageBG;
    border-bottom: 4px solid $neon;
    padding: 40px 0px;
}

.sectionTitle {
    padding: 20px 20px 0px 20px;
    background-color: $white;

    h1 {
        padding: 25px 0px 25px 0px;
        margin: 0px;
        color: $darkgray-light;
        font-size: 26px;
        font-weight: $semi-bold;
    }
}

$display-token-size: 50px;

.display-token {
    position: relative;
    width: $display-token-size;
    height: $display-token-size;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.13);
    text-decoration: none;
    overflow: hidden;
    border-radius: 50%;

    &.received {
        border: 2px solid $blue;
    }

    &.sent {
        border: 2px solid $red;
    }

    .token-text {
        position: relative;
        z-index: 100;
        color: $white;
        text-align: center;
        font-size: round($display-token-size / 2.3);
        line-height: $display-token-size;
        text-transform: uppercase;
        font-weight: 200;
        text-shadow: 0 0 0 $white, 0 -1px 1px rgba(0, 0, 0, 0.35);
        opacity: .5;
    }

    .avatar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-position: 50% 50%;
        background-size: cover;
        z-index: 1;
    }

    &.contact-token {
        background-color: #bcbcbc;
    }
}

.form {
    .form-group {
        .control-label {
            &::first-letter {
                text-transform: uppercase;
            }

            font-weight: $semi-bold;
            font-size: 16px;
        }

        .form-control {
            box-shadow: none;
            border-radius: 1px;
        }

        .input-group {
            position: relative;

            .input-group-addon {
                &.currency {
                    border: 0;
                    border-top: 1px solid inherit;
                    border-bottom: 1px solid inherit;
                    background: transparent;
                    position: absolute;
                    right: 90px;
                    width: auto;
                    text-align: right;
                    top: 0;
                    z-index: 999;
                    padding: 0;
                    margin: 0;
                    line-height: 42px;
                }

                .altCurrency {
                    margin: 0;
                    font-weight: $normal;
                    font-size: 14px;
                    text-align: right;

                    @include networkPrimaryBG("color");
                }
            }

            .dropdown {
                border-left: none;

                .btn-alt {
                    border: 1px solid $border-color;
                    border-left: 0;
                    border-radius: 0;
                    padding: 0 15px;
                    background: transparent;
                    color: $darkgray-dark;
                }
            }
        }

        .dropdown-scrollable {
            max-height: 350px;
            overflow: auto;
        }

        p {
            margin: 0px;
            font-size: 16px;
        }
    }

    .form-group-buttons {
        margin-top: 20px;
        padding: 0px;
        margin-bottom: 0px;

        .btn-alt, a {
            margin-right: 20px;
        }
    }
}

.progress {
    margin: 10px 0px;
}

.password-input {
    position: relative;

    .password-check {
        position: absolute;
        right: 0px;
        bottom: 0px;
        font-size: 32px;
    }
}

.password-checker {
    padding: 3px 5px;
    border: 1px solid $border-color;
    border-top: 0px;
    font-size: 11px;

    &.password-checker-score-0,
    &.password-checker-score-1 {
        background-color: $alert-danger-bg;
    }

    &.password-checker-score-2 {
        background: $alert-warning-bg;
    }

    &.password-checker-score-3,
    &.password-checker-score-4 {
        background-color: $alert-success-bg;
    }
}

.state-app_setup,
.state-app_bannedip,
.state-app_lostlock {
    &.state-app_setup_wallet,
    &.state-app_setup_backup {
        h1 {
            margin-top: 120px;
            font-weight: $normal;
            font-size: 32px;
        }

        hr {
            border-color: #ccc;
        }

        h4 {
            font-size: 18px;
            font-weight: $semi-bold;
            color: $black-light;
        }

        p {
            font-size: 18px;
            font-weight: $normal;
        }

        .progress {
            margin-top: 0px;
        }
    }

    .custom-select {
        position: relative;
        border: 1px solid $border-color;

        .custom-select-choice {
            .custom-select-arrow {
                position: absolute;
                top: 50%;
                margin-top: -10px;
                right: 10px;
            }

            .custom-option {
                background: $lightgray-light;
                cursor: pointer;
                padding-right: 50px;
            }
        }

        .custom-option {
            padding: 10px;
            display: block;
            cursor: pointer;

            .custom-option-title {
                font-weight: 400;
                display: inline-block;
            }

            .custom-option-subtitle {
                margin: 0px;
                font-size: 0.9em;
            }

            .custom-option-fee {
                float: right;
                line-height: 36px;

                &.extra-top {
                    padding-top: 12px;
                }
            }

            .error {
                color: $alert-danger-text;
                padding: 4px;
                font-size: $font-size-small;
                border-radius: 4px;
                text-align: center;
                line-height: 1.1em;

                &.extra-top {
                    padding-top: 12px;
                }
            }

            &:hover, &:active, &:focus, &.active {
                background: $lightgray-light;
                cursor: pointer;
            }
        }

        .custom-select-menu {
            display: block;
            margin: 0px;
            padding: 0px;
            position: absolute;
            top: -1px;
            left: -1px;
            right: -1px;
            background-color: white;
            z-index: 1;
            border: 1px solid $border-color;

            .custom-option {
                border-bottom: 1px solid #eee;
            }
        }
    }

    .base-view {
        @extend .fill-height-or-more;
    }

    .appWrapper {
        padding: 50px 0px;
    }

    .pageTitle {
        margin-top: 20px;
    }

    .formContainer {
        background-color: $white;
        padding: 0px 20px 20px 20px;
        margin: 0px 0px;
        border: 1px solid $muted;

        .form {
            padding: 0px 0px;
            margin-top: 20px;
            display: block;
        }
    }

    .smallButtons {
        margin: 20px auto;

        a {
            display: block;
            padding: 0px 0px 4px 0px;
        }
    }

    .extraMarginBottom {
        margin-bottom: 40px;
    }

    .backupWrapper {
        margin-top: 20px;
        background-color: $white;
        padding: 20px 40px;
        border: 1px solid $muted;

        h1 {
            margin: 0px;
            padding-bottom: 15px;
        }

        h2 {
            margin: 0px;
        }

        p {
            padding: 0px;
            font-size: 16px;
            font-weight: $normal;
            text-shadow: none;
            margin: 0px;

            .label {
                font-weight: $semi-bold;
                display: inline-block;
                padding: 0px 4px;
                font-size: 12px;
                line-height: 19px;
                margin-right: 4px;
            }
        }

        .downloadBackupBtn {
            margin-top: 20px;
            width: 100%;
        }

        form {
            border-top: 1px solid $border-color;
            margin-top: 0px;
            padding: 0px 0px;

            .checkbox {
                font-weight: $semi-bold;
                font-size: 16px;
            }
        }
    }
}

.state-app_lostlock {
    .btns {
        margin-top: 50px;
    }
}

.state-app_loggedout {
    .loggedoutWrapper {
        text-align: center;
        padding: 80px 0px 20px 0px;

        .alert {
            h2 {
                margin: 0px;
            }
        }

        p {
            padding: 20px 0px 20px 0px;
            font-size: $font-size-large;
        }

        .appstoreimages {
            margin-bottom: 100px;
        }
    }
}

.announcementWrapper {
    text-align: center;
    height: 900px;
    margin-top: 38px;
    font-size: 16px;
    color: #222549;

    @media (max-width: 480px) {
        height: 1700px;
    }

    &-title {
        height: 30px;
        font-size: 30px;
        font-weight: 600;
        color: #222549;
        line-height: 30px;
        margin-bottom: 14px;
    }

    &-date {
        height: 16px;
        font-size: 16px;
        color: #222549;
        line-height: 16px;
        padding-bottom: 38px;
        border-bottom: 1px solid rgba(153, 153, 153, 0.09);
    }
}

.announcement {
    background-color: #EFAD4E;
    padding: 22px 0;

    div {}
}

.state-app_wallet {
    .base-view {
        @extend .height-100;
    }

    .topSummary {
        background-color: $sunflower-light;
        box-shadow: inset 0px -9px 22px -13px #888;

        .profile {
            padding: 20px 0 20px 0;

            .profile-img-container {
                height: 100%;

                .profile-img {
                    height: 100%;
                    width: auto;
                    max-height: 84px;
                    max-width: 84px;
                    border: 1px solid #999;
                }
            }

            h1 {
                font-size: 28px;
                font-weight: 400;
                margin: 0px;
                padding: 0px;
                line-height: 34px;
                margin-top: 20px;
            }

            .subheading {
                font-size: 14px;
                color: #666;
            }

            .balance {
                margin-top: 15px;

                h1 {
                    font-size: 28px;
                    font-weight: $semi-bold;
                    color: $black-light;
                    margin: 0px;
                    padding: 0px;
                    line-height: 42px;
                }

                h2 {
                    font-size: 22px;
                    color: #333;
                    font-weight: $bluejeans-dark;
                    margin: 0px;
                    padding: 0px;
                    line-height: 24px;
                }
            }
        }
    }

    .summaryControls {
        padding: 30px 0px 30px 0px;

        .nav-pills {
            padding: 0px 0px 0px 0px;
            margin: 0px;

            li {
                border-radius: 0px;

                a {
                    border: 1px solid #dadada;
                    border-bottom: 2px solid #ccc;
                    background: none;
                    color: $black-light;
                    text-transform: capitalize;
                    font-size: 14px;
                    line-height: 18px;
                    font-weight: $semi-bold;
                    background-color: $white;
                    border-radius: 0px;
                }

                &.active {
                    a {
                        background-color: $darkgray-dark;
                        color: $white;
                    }
                }
            }
        }
    }

    &.state-app_wallet_summary {
        $divider-height: 35px;

        .wallet-alerts {
            .alert {
                border-radius: 0px;
                border-top: 0px;
                margin-bottom: 0px;
            }
        }

        .loadingSpinner {
            display: block;
            padding: 60px 0px 100px 0px;
        }

        .tx-list {
            .item-transaction {
                padding: 10px 30px;

                &.item-buybtc-pending-order {
                    cursor: default !important;
                }

                .transaction-info {
                    position: relative;
                    display: inline-block;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    color: $darkgray-light;
                    font-size: 18px;
                    line-height: 21px;
                    margin: 10px 0px;
                    font-weight: $normal;

                    .tx-type {
                        display: block;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        padding: 8px 0px 0px 0px;
                    }

                    .timestamp {
                        font-size: 14px;
                        color: $text-muted;
                        padding: 0px 0px 0px 0px;
                    }
                }

                .pending {
                    font-size: 14px;
                    color: #aaa;
                    padding: 20px 0px;
                }

                .value {
                    font-size: 18px;
                    line-height: 38px;
                    padding: 20px 0px;
                    font-weight: $normal;

                    &.received {
                        color: $green;
                    }

                    &.sent {
                        color: $darkgray-light;
                    }
                }

                &:hover, &:active, &:focus {
                    background-color: #f7f7f7;
                    cursor: pointer;
                }
            }

            .item-divider {
                &.isFirst {
                    padding-top: 10px;
                }

                .date-group {
                    display: block;
                    width: 100%;
                    padding: 10px 30px;
                    font-weight: $normal;
                    color: $text-muted;
                    font-size: 16px;
                    border-bottom: 0px;
                }
            }
        }
    }

    &.state-app_wallet_receive_address-lookup {
        .spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            z-index: 3;
            margin-top: -17px;
            margin-left: -52px;
        }

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            background-color: rgba(255, 255, 255, 0.6);
        }

        .searchBox {
            margin-top: 30px;
            margin-bottom: 15px;

            label {
                font-weight: normal;

                @include user-select(none);
            }

            input[type="text"] {
                padding: 10px;
                border: solid 1px #dcdcdc;
                transition: box-shadow 0.3s, border 0.3s;
                width: 55%;
                height: 40px;
            }

            input[type="text"]:focus {
                border: solid 1px #707070;
                box-shadow: 0 0 5px 1px #969696;
            }

            .searchCheckbox {
                margin-left: 20px;
                margin-top: 10px;
            }
        }

        .pagination-centered {
            text-align: center;

            ul.pagination li a {
                min-width: 50px;
            }
        }

        .colCounter {
            width: 3.5%;
        }

        .colAddress {
            width: 38%;
        }

        .colCurrLabel {
            width: 23%;
            word-wrap: break-word;
            word-break: break-all;
            text-align: center;
        }

        .colEditLabel {
            width: 3.5%;
            text-align: right;

            .bticon-hide {
                color: transparent;
            }

            .pointer-clickable {
                cursor: pointer;
            }
        }

        .colTxCount {
            width: 7%;
        }

        .colBalance {
            width: 17%;
        }

        .positive-balance {
            color: $dark-green;
            font-weight: bold;
        }
    }

    //--- send screens ---
    &.state-app_wallet_send, &.state-app_wallet_receive {
        form {
            padding: 0px 0px 0px 0px;
        }

        & > form {
            background-color: $white;
            padding: 15px 0 0;
        }

        .qr-code-display-section {
            background-color: $white;
            padding: 20px 0;
        }

        .qr-code-holder {
            width: 227px;
            height: 227px;
            border: 1px solid $muted;
        }

        .receivePaymentStatus {
            float: right;
            padding-top: 10px;
            color: #999;

            &.text-success {
                color: $green;
            }
        }

        .address {
            font-size: 16px;
            font-weight: $semi-bold;
            background-color: $lightgray-light;
            border: 1px solid $muted;
            padding: 10px;
        }

        .amount {
            //    font-size: 18px;
       
        }

        .custom-select {
            position: relative;
            border: 1px solid $border-color;

            .custom-select-choice {
                .custom-select-arrow {
                    position: absolute;
                    top: 50%;
                    margin-top: -10px;
                    right: 10px;
                }

                .custom-option {
                    background: $lightgray-light;
                    cursor: pointer;
                    padding-right: 50px;
                }
            }

            .custom-option {
                padding: 10px;

                .custom-option-title {
                    font-weight: 400;
                    display: inline-block;
                }

                .custom-option-subtitle {
                    margin: 0px;
                    font-size: 0.9em;
                }

                .custom-option-fee {
                    float: right;
                    line-height: 36px;

                    &.extra-top {
                        padding-top: 12px;
                    }
                }

                .error {
                    color: $alert-danger-text;
                    padding: 4px;
                    font-size: $font-size-small;
                    border-radius: 4px;
                    text-align: center;
                    line-height: 1.1em;

                    &.extra-top {
                        padding-top: 12px;
                    }
                }

                &:hover, &:active, &:focus, &.active {
                    background: $lightgray-light;
                    cursor: pointer;
                }
            }

            .custom-select-menu {
                display: block;
                margin: 0px;
                padding: 0px;
                position: absolute;
                top: -1px;
                left: -1px;
                right: -1px;
                background-color: white;
                z-index: 1;
                border: 1px solid $border-color;
            }
        }

        .btn-address-lookup {
            float: right;
        }
    }

    //--- settings screens ---
    &.state-app_wallet_settings {
        .checkbox {
            padding: 20px 0px;
        }

        .contact-token {
            width: 60px;
            height: 60px;
            line-height: 60px;
            font-size: 20px;
        }

        .phone-status {
            display: block;
            color: #666;
            font-size: 14px;
        }

        .spin-me {
            display: inline-block;
            -webkit-transform-origin: 74% 46%;
            transform-origin: 74% 46%;
        }

        //profile image select and crop
        .profile-image.contact-token {
            top: -2px;
            width: 120px;
            height: 120px;
            margin-right: 20px;
            line-height: 120px;
            font-size: 60px;
            float: left;
        }

        .photo-crop-screen {
            position: absolute;
            top: 100%;
            width: 100%;
            height: 100%;
            padding-top: $bar-height;
            margin-top: -1px;
            background: #000;
            z-index: 101;
            transition: top 1s cubic-bezier(0.13, 0.87, 0.42, 0.96);
            -webkit-transition: top 1s cubic-bezier(0.13, 0.87, 0.42, 0.96);
            text-align: center;

            &.displayed {
                top: 0 !important;
                transition: top 0.8s cubic-bezier(0.4, 0.1, 0.11, 0.98);
                -webkit-transition: top 0.8s cubic-bezier(0.4, 0.1, 0.11, 0.98);
            }

            .confirm-button {
                @include squareButton(#666, rgba(255, 255, 255, 0.5));

                transition: none;
                -webkit-transition: none;
                min-width: 8rem;
                position: absolute;
                bottom: 1.5rem;
                margin: 0 auto;
                left: 0;
                right: 0;
            }

            .img-crop {
                height: 100%;
                width: 100%;
                background: #000;
                box-shadow: $app-default-shadow;
            }

            .loading {
                color: $white;
                position: absolute;
                top: 45%;
                width: 100%;

                h3 {
                    color: $white;
                }

                .spinner svg {
                    color: $white;
                    width: 60px;
                    height: 60px;
                }
            }
        }

        &.state-phone {
            label.item-input {
                background: $lightgray-dark;

                i.placeholder-icon {
                    font-size: 18px;
                    margin-left: -5px;
                    padding-right: 8px;
                }
            }

            .tabs {
                background-image: none; //for some reason they've used a gradient to create a thin line instead of border....very annoying to discover and remove >:(
           
            }

            .country-code {
                padding: 0 0 5px 0;

                p {
                    padding-top: 8px;
                }
            }

            .country-select-screen {
                margin-top: 0;
                padding: 0;
                padding-top: $bar-height;
                text-align: left;

                .clear-input {
                    position: absolute;
                    right: 22px;
                    font-size: 20px;
                    line-height: 29px;
                    height: 29px;
                    z-index: 10;
                }

                .filter-input {
                    position: absolute;
                    background: #bbb;
                    border-bottom: 1px solid #e1e1e1;
                    width: 100%;
                    height: 50px;
                    top: $bar-height;
                    z-index: 100;
                }
            }
        }

        .toggle-switch {
            .switch-left {
                color: #fff;
                background: $green;
            }
        }
    }

    &.state-app_wallet_feedback {
        background: $lightgray-dark;

        .msg {
            &.item-input {
                -webkit-align-items: baseline;
                -moz-align-items: baseline;
                align-items: baseline;
                padding-left: 0px;
            }

            i {
                margin-top: -6px;
                font-size: 20px;
            }
        }

        .email {
            i {
                margin-top: 3px;
                font-size: 20px;
            }
        }

        .send-button-group {
            .button {
                @include squareButton($darkgray-light);

                border-width: 1px;
            }
        }
    }

    &.state-app_wallet_buybtc {
        .broker-glidera {
            h2.broker-title {
                margin-bottom: 15px;

                img {
                    max-height: 50px;
                }

                span {
                    display: none;
                }
            }
        }

        .buybtc-via {
            margin-top: 10px;
            float: right;
        }

        .buybtc-list {
            .list-group-item {
                cursor: pointer;
            }

            .partner-btn {
                img {
                    max-width: 100px;
                }

                .bticon {
                    position: relative;
                    top: 1px;
                    font-size: 14px;
                }
            }
        }

        .buybtc-currentprice {
            background-color: $lightgray-light;
            width: 100%;
            padding: 20px 30px;

            .currentprice-value b, .currentprice-label {
                line-height: 50px;
                height: 50px;
            }

            .currentprice-value {
                font-size: 20px;
            }

            .currentprice-label {
                font-size: 18px;
            }
        }
    }
}

//Add opacity animation states for everything...ng-animate is active on all elements so meerly adding a transition will activate this animation
&.ng-enter {
    opacity: 0;
}

&.ng-enter-active {
    opacity: 1;
}

&.ng-leave {
    opacity: 1;
}

&.ng-leave-active {
    opacity: 0;
}

.bounce.ng-enter, .bounce.ng-leave {
    position: absolute;
    width: 100%;
    height: 100%;
    animation-duration: 5s;
    -webkit-animation-duration: 5s;
}

.bounce.ng-enter {
    animation-name: bounceInDown;
    -webkit-animation-name: bounceInDown;
}

.bounce.ng-leave {
    animation-name: bounceOutDown;
    -webkit-animation-name: bounceOutDown;
}

.animate-slide {
    position: absolute;
    top: 100%;
    width: 100%;
    height: 100%;
    padding-top: 50%;
    background: $app-default-color;
    z-index: 101;
    transition: top 1s cubic-bezier(0.13, 0.87, 0.42, 0.96);
    -webkit-transition: top 1s cubic-bezier(0.13, 0.87, 0.42, 0.96);

    &.ng-leave {
        top: 100%;
    }

    &.displayed, &.ng-enter {
        top: 0 !important;
        transition: top 0.8s cubic-bezier(0.4, 0.1, 0.11, 0.98);
        -webkit-transition: top 0.8s cubic-bezier(0.4, 0.1, 0.11, 0.98);
    }

    .confirm-button {
        margin-top: 2rem;
        color: $white;
        color: rgba(0, 0, 0, 0.5);
        border-color: $white;
        background-color: rgba(255, 255, 255, 0.4);
    }
}

.animate-spin {
    display: block;
    -webkit-animation-name: spin;
    -webkit-animation-duration: 1000ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: 1000ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: 1000ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    animation-name: spin;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@-moz-keyframes spin {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-page {
    padding-top: 10%;
    text-align: center;
}

.loading-spinner {
    .loading {
        display: inline-block;
        *zoom: 1;
        *display: inline;
        width: 10px;
        height: 10px;
        background: $white;
        border-radius: 100%;
        margin-right: 5px;
        opacity: 0.0;
    }

    &.loading-spinner-sm {
        .loading {
            width: 5px;
            height: 5px;
        }
    }

    &.loading-spinner-lg {
        .loading {
            width: 30px;
            height: 30px;
        }
    }

    .loading-0 {
        -webkit-animation: bounce 1s 0.0s infinite;
        -moz-animation: bounce 1s 0.0s infinite;
        -o-animation: bounce 1s 0.0s infinite;
        animation: bounce 1s 0.0s infinite;
        background: #009DC6;
    }

    .loading-1 {
        -webkit-animation: bounce 1s 0.2s infinite;
        -moz-animation: bounce 1s 0.2s infinite;
        -o-animation: bounce 1s 0.2s infinite;
        animation: bounce 1s 0.2s infinite;
        background: #e8b440;
    }

    .loading-2 {
        -webkit-animation: bounce 1s 0.4s infinite;
        -moz-animation: bounce 1s 0.4s infinite;
        -o-animation: bounce 1s 0.4s infinite;
        animation: bounce 1s 0.4s infinite;
        background: #b62327;
    }
}

.modal-open {
    .content {
        @extend .blur-me;
    }
}

.modal {
    .modal-dialog {
        margin-top: 100px;

        button.close {
            margin: 6px 10px;
        }

        .modal-content {
            border-radius: 10px;
        }

        .modal-header {
            @include networkPrimaryBG("background-color");

            padding: 15px 20px;
            -webkit-border-top-left-radius: 6px;
            -webkit-border-top-right-radius: 6px;
            -moz-border-radius-topleft: 6px;
            -moz-border-radius-topright: 6px;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;

            h3 {
                font-weight: 400;
                font-size: 20px;
                color: $white;
            }
        }

        .modal-body {
            padding: 20px 25px;

            .alert-default {
                padding: 10px;
                margin: 0px;
            }

            .title {
                font-size: 18px;
                font-weight: $normal;
                padding: 0px 0px;
                display: block;
                width: 100%;
                text-align: center;
                line-height: 50px;

                .address, .amount {
                    // font-weight: $semi-bold;
                    padding: 4px 10px;
                    border-radius: 4px;
                    background-color: $lightgray-light;
                    border: 1px solid $muted;
                }
            }

            .value {
                color: $black-light;
                display: block;
                font-size: 14px;
                text-align: left;
            }

            .label {
                color: $black-light;
                font-weight: $semi-bold;
                display: block;
                font-size: 14px;
                text-align: left;
                margin: 0px;
                padding: 10px 0px 0px 0px;
            }

            .transaction-ok {
                color: $good-green;
                font-size: 80px;
            }
        }

        .modal-footer {
            padding: 20px 25px;
            background-color: $lightgray-light;
        }

        .table {
            background-color: $lightgray-light;
            margin: 0px;
            border-bottom: 1px solid $muted;

            tr {
                th {
                    font-weight: $bold;
                }

                td, th {
                    border: 0px;
                    padding: 15px 30px;
                    font-size: 16px;
                }
            }
        }
    }
}

/*--- Cool Buttons ---*/

/*--- Cool Buttons ---*/
.btn-alt-actions {
    border: 0 none;
    background-color: $sunflower-light;
    font-weight: $semi-bold;
    text-transform: capitalize;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid #999;
    text-align: center;
    color: $black-light;
    width: 130px;
    display: inline-block;
    text-shadow: -1px 1px $muted;
    border-radius: 0px;
    background: -moz-linear-gradient(top, $white 0%, #dadada 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $white), color-stop(100%, #dadada)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, $white 0%, #dadada 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, $white 0%, #dadada 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, $white 0%, #dadada 100%); /* IE10+ */
    background: linear-gradient(to bottom, $white 0%, #dadada 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$white', endColorstr='#dadada', GradientType=0); /* IE6-9 */

    box-shadow: 2px 2px 2px -1px #999;

    &:hover, &:active, &:focus, &.active {
        background: none;
        background-color: #dadada;

        //box-shadow: inset 0 0px 6px 0px #999;
        color: $black-light;
        text-decoration: none;
    }

    &.active {
        box-shadow: none;
        border-bottom: 2px solid $dark-green;
    }
}

.btn-hidden {
    background: transparent !important;
    border: none !important;
    font-size: 0px !important;
    min-width: 50px;
}

.btn-block {
    display: block;
}

.btn-primary {
    .network-btc & {
        @include button-variant($networkBTCBtnPrimaryColor, $networkBTCBtnPrimaryBG, $networkBTCBtnPrimaryBorder);
    }

    .network-bcc & {
        @include button-variant($networkBCCBtnPrimaryColor, $networkBCCBtnPrimaryBG, $networkBCCBtnPrimaryBorder);
    }
}

.input-group {
    .input-group-btn {
        .btn-alt {
            height: auto;
            border-radius: 0px;
            height: 46px;
        }
    }
}

.progress-spinner {
    width: 20px;
    height: 22px;
    display: inline-block;

    @extend .spin-me;
}

/*--- Animations ---*/
@-webkit-keyframes bounce {
    0%, 100% {
        opacity: 0.0;
    }

    60% {
        opacity: 1;
    }
}

@-moz-keyframes bounce {
    0%, 100% {
        opacity: 0.0;
    }

    60% {
        opacity: 1;
    }
}

@-o-keyframes bounce {
    0%, 100% {
        opacity: 0.0;
    }

    60% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        opacity: 0.0;
    }

    60% {
        opacity: 1;
    }
}

///*
@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
    }
}

@-o-keyframes spin {
    0% {
        -o-transform: rotate(0deg);
    }

    100% {
        -o-transform: rotate(359deg);
    }
}

@-ms-keyframes spin {
    0% {
        -ms-transform: rotate(0deg);
    }

    100% {
        -ms-transform: rotate(359deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}
