@import "compass/reset";
@import "compass/css3";
@import "compass/css3/border-radius";
@import "compass/css3/filter";
@import "tipografia.scss";

*, *:before, *:after {
    @include box-sizing(border-box);
    padding: 0;
    margin: 0;
}
$colunas: 12;
@for $i from  1 through $colunas {
    %coluna-#{$i} { 
        width: percentage(($i / $colunas));
        float: left;
        display: block;
        padding-left: 15px;
        padding-right: 15px;
        //width: 100% / 12 * $i;
    }
}
@import url("https://fonts.googleapis.com/css?family=Work+Sans:100,300,400,500,600,700,800");

/*CORES*/
$preto: #494949;
$branco:#fff;
$laranja:#F26C0D;

html{
    background-image: image-url("bg.png");
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: bottom;
    background-attachment: fixed;
}

html, body{
    height: 100%;
}
body{ 
    font-size: 14px; 
    color:$preto;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
}

.clear{
    clear: both;
}

a{
    text-decoration: none;
    color: $preto;
}
img{
    max-width: 100%;
    height: auto;
}

.container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

%hostdime{
    &:after{
        content: "HOSTDIME";
        font-size: 120px;
        font-weight: 800;
        color: #dddddd;
        position: absolute;
        bottom: 30px;
        right: 30px;
        @include opacity(0.3);
        @media (max-width:1024px) {
            font-size: 60px;
        }
        @media (max-width:767px) {
            display:none;
        }
    }
}

.login{
    width: 100%;
    height: 100%;
    @include display-flex;
    @include justify-content(center);
    @include align-items(center);
    position: relative;
    @extend %hostdime;
    padding-bottom: 120px;
}
.login-container{
    max-width: 515px;
    padding: 15px;
    @include display-flex;
    @include justify-content(center);
    @include align-items(center);
    @include flex-direction(column);
    .logo{
        font-size: 0;
        max-width: 380px;
        margin-bottom:120px;
        img{
            max-width: 100%;
            height: auto;
        }
    }
    .subTitulo{
        margin-bottom:60px;
        .monitor{
            font-weight: 700;
            font-size: 32px;
            color: #4a4a4a;
            margin-right: 15px;
        }
        .voip{
            font-size: 62px;
            color: $laranja;
            font-weight: 800;
            text-transform: uppercase;
        }
    }
    form{
        width: 100%;
        @include display-flex;  
        @include flex-direction(column);
        @include align-items(center);
        input[type=text],input[type=password]{
            margin-bottom: 30px;
            border: solid 1px #EBEBEB;
            background: $branco;
            @include transition(all .3s);
            @include border-radius(15px);
            padding:0 15px;
            height: 50px;
            line-height: 50px;
            font-size: 18px;
            font-weight: 400;
            color: #696969;
            width: 100%;
            @include input-placeholder {
                font-size: 18px;
                font-weight: 400;
                color: #696969;
            }
            &:focus{
                outline: none;
                border: solid 1px $laranja;
                @include input-placeholder {
                    color:transparent;;
                }
            }
        }
        input[type=submit]{
            margin-top: 35px;
            font-size: 18px;
            font-weight: 600;
            color: $branco;
            background: $laranja;
            border: none;
            height: 60px;
            line-height: 60px;
            width: 165px;
            @include transition(all .3s);
            @include border-radius(15px);
            cursor: pointer;
            &:focus{
                outline: none;
            }
            &:hover{
                background: lighten($laranja, 15%);
            }
        }
    }
}

.topo{
    padding:0 15px;
    padding-top: 40px;
    margin-bottom: 30px;
    position:relative;
    .container{
        @include display-flex;  
        @include justify-content(center);
        border-bottom: solid 1px $laranja;
        padding-bottom: 15px;
    }
    .titulo{
        .monitor{
            font-weight: 700;
            font-size: 32px;
            color: #4a4a4a;
            margin-right: 15px;
        }
        .voip{
            font-size: 62px;
            color: $laranja;
            font-weight: 800;
            text-transform: uppercase;
        }
    }
    .btnSair{
        font-size: 20px;
        color: $laranja;
        position: absolute;
        right: 20%;
        top: 50px;
        padding: 7px 15px;
        @include transition(all .3s);
        @include border-radius(7px);
        &:hover{
            color: $branco;
            background: lighten($laranja, 15%);
        }
    }
}
.tabela{
    padding-bottom: 35px;
    .container{
        overflow-x: auto;
        padding-left: 25px;
        padding-right: 25px;  
    }
}

.ligacoes{
    width: 100%;
    thead{
        th{
            text-align: center;  
            padding: 0 5px 50px 5px;
            font-size: 20px;
            color: #4a4a4a;
            white-space: nowrap;
            position:relative;
            &:after{
                content: "";
                position: absolute;
                right: 0;
                top: 0;
                height: 20px;
                width: 1px;
                border-right: solid 1px $laranja;
            }
            &:last-child{
                &:after{
                    border-right: none;
                }
            }
        }
    }
    tbody{
        tr{
            border-bottom: solid 1px $preto;
            &:last-child{
                border-bottom: none;
            }
        }
        td { 
            text-align: center;
            font-size: 20px;
            color: #4a4a4a;
            padding: 25px 5px 25px 5px;
            white-space: nowrap;
            &:first-child{
                max-width: 150px;
                font-size: 24px;
                font-weight: 700;
                text-align: left;
                padding-left: 30px;
            }
            &.verde{
                color: #29c44e;
            }
            &.vermelho{
                color: #e33b35;
            }
        }
    }
}
.rodape{
    padding:0 15px;
    .container{
        @include display-flex;
        @include justify-content(center);
        @include align-items(center);
        @include flex-direction(column);
        border-top: solid 1px $laranja;
        padding-bottom: 15px;
    }
    .atualizacao{
        font-size: 20px;
        color: #696969;
        margin-top: 50px;
        margin-bottom: 40px;
        text-align: center;
        .dataHora{
            color: $laranja;
            margin-left: 20px;
            .fa-clock{
                margin-left: 15px;
            }
        }
    }
    .btnHistorico{
        font-size: 14px;
        color: $branco;
        background: $laranja;
        padding: 15px 15px;
        @include transition(all .3s);
        @include border-radius(15px);
        text-transform:uppercase;
        &:hover{
            color: $branco;
            background: lighten($laranja, 15%);
        }
    }
    @extend %hostdime;
}
.historico{
    .container{
        max-width: 1530px;
    }
    .historicoTopo{
        padding-top: 40px;
        margin-bottom: 30px;
        .container{
            position:relative;
            padding: 0 15px;
            @include display-flex;  
            @include justify-content(center);
            padding-bottom: 15px;
        }
        .titulo{
            text-align:center;
            .monitor{
                font-weight: 700;
                font-size: 32px;
                color: #4a4a4a;
                margin-right: 15px;
            }
            .voip{
                font-size: 62px;
                color: $laranja;
                font-weight: 800;
                text-transform: uppercase;
                margin-right: 10px;
            }
            i{
                font-weight: 500;
                color: #4a4a4a;
                font-size: 32px;
                font-style: italic;
            }
        }
        .btnSair{
            font-size: 20px;
            color: $laranja;
            position: absolute;
            right:15px;
            top: 20px;
            padding: 7px 15px;
            @include transition(all .3s);
            @include border-radius(7px);
            &:hover{
                color: $branco;
                background: lighten($laranja, 15%);
            }
        }
        .flexContainer{
            @include display-flex;  
            @include justify-content(space-between);
            @include align-items(center);
            padding: 0 15px;
            max-width:1530px;
            margin:0 auto;
            .linha{
                height: 1px;
                width: 100%;
                border-bottom: solid 1px $laranja;
            }
            .qntPaginas{
                margin-left: 15px;
                min-width: 140px;
                @include display-flex;  
                @include justify-content(space-between);
                @include align-items(center);
                span{
                    color: #696969;
                    font-size: 12px;
                }
                select{
                    width: 65px;
                    height: 30px;
                    border: solid 1px $preto;
                    @include border-radius(15px);
                    color: #696969;
                    font-size: 12px;
                    cursor: pointer;
                    padding: 0 20px 0 10px;
                    outline: none;
                    -webkit-appearance: none;
                    -moz-appearance: none;
                    appearance: none;
                    background: image-url("seta_baixo.png") no-repeat right 10px center;
                }
            }
        }
    }
    .tabelaHistorico{
        overflow: auto;
        padding-bottom: 15px;
        .container{
            padding-left: 15px;
            padding-right: 15px;
        }
    }
}
.table-historico{
    width: 100%; 
    thead{
        th{
            text-align: center;  
            padding: 10px 5px 10px 5px;
            font-size: 24px;
            color: #4a4a4a;
            white-space: nowrap;
            position:relative;
            background-position: top 15px right 15px;
            background-repeat: no-repeat; 
            background-image: image-url("setas.png");
            cursor:pointer;
            i{
                color: #868686;
                font-size: 20px;
            }
            &:after{
                content: "";
                position: absolute;
                right: 0;
                top: 10px;
                height: 20px;
                width: 1px;
                border-right: solid 1px $laranja;
            }
            &:first-child{
                text-align: left;
            }
            &:last-child{
                &:after{
                    border-right: none;
                }
            }
            &.headerSortUp{
                background-image: image-url("seta_bottom.png");
            }
            &.headerSortDown{
                background-image: image-url("seta_top.png");

            }
            &.headerSortUp, &.headerSortDown{
                color: $laranja;
                font-weight: 700;
                i{
                    color: $laranja;
                    font-weight: 700;   
                }
                // background-color: lighten($laranja, 45%);
            }

        }
    }
    tbody{
        tr{
            border-bottom: solid 1px $preto;
            &:last-child{
                border-bottom: solid 1px $laranja;
            }
        }
        td { 
            text-align: center;
            font-size: 20px;
            color: #4a4a4a;
            padding: 20px 5px 20px 5px;
            white-space: nowrap;
            &.nome{
                max-width: 110px;
                font-size: 24px;
                font-weight: 700;
                text-align: left;
            }
            &.data{
                /*                text-align:right;
                                max-width: 90px;*/
                font-size: 16px;
                color: $laranja;
                .hora{
                    font-size: 12px;
                    color: $laranja;
                    display: block;
                    margin-bottom: 5px;
                }
                em{
                    font-size: 16px;
                    color: $laranja;
                    display: block;  
                    font-weight: 500;
                    margin-bottom: 5px;
                    text-transform: uppercase;
                }
                b{
                    display: block;
                    margin-left: 22px;
                }
            }
            &.deslogou{
                color: #e33b35;
            }
            &.logou{
                color: #29c44e;
            }
        }
    }
}

.pesquisar{
    @include display-flex;  
    @include justify-content(space-between);
    @include align-items(center);
    @include flex-wrap(wrap);
    margin-bottom: 50px;
    input[type=text]{
        border: solid 1px $preto;
        background: $branco;
        @include transition(all .3s);
        @include border-radius(14px);
        padding:0 15px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
        font-weight: 400;
        color: #696969;
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 7px;
        margin-top: 7px;
        @include input-placeholder {
            font-size: 12px;
            font-weight: 400;
            color: #696969;
        }
        &:focus{
            outline: none;
            border: solid 1px $laranja;
            @include input-placeholder {
                color:transparent;;
            }
        }
    }
    .linha{
        width: 1px;
        height: 20px;
        border-right: solid 1px $laranja;
    }
}
.paginacao{
    @include display-flex;  
    @include align-items(center);
    @include justify-content(center);
    li{
        margin: 0 5px;
        a{
            font-size: 16px;
            color: #696969;
            padding: 5px 10px;
            @include transition(all .3s);
            @include border-radius(7px);
            &.pageAtual{
                color: $branco;
                background: $laranja; 
            }
            &:hover{
                color: $branco;
                background: lighten($laranja, 15%);
            }
        }
    }
}
.btnMonitorVoip{
    font-size: 14px;
    color: $branco;
    background: $laranja;
    padding: 18px 45px;
    @include transition(all .3s);
    @include border-radius(20px);
    display: block;
    text-align: center;
    float: left;
    margin-left: 15px;
    text-transform:uppercase;
    margin-bottom: 25px;
    margin-top: 15px;
    &:hover{
        background: lighten($laranja, 15%);
    }
}

.hostimeName{
    position: relative;
    @extend %hostdime;
    float: left;
    width: 100%;
    margin-top: 100px;
    &:after{
        bottom: 0;
        right: 15px;
    }
}


@import "responsive.scss";
