/*=============================================
=                    Fonts                    =
=============================================*/

@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600');



/*=============================================
=                  Variables                  =
=============================================*/

// Custom
$box-shadow: 0 3px 6px rgba(0, 0, 0, .12);
$box-shadow-darker: 0 5px 12px rgba(0, 0, 0, 0.15);

// Colors
$gray-base : #1F2D3D;
$gray-darker : #303030;
$gray-dark : #4a4a4a;
$gray : #dddfe4;
$gray-light : #E5E9F2;
$gray-lighter : #EFF2F7;
$gray-lightest : #f5f5f5;

$brand-primary : #505565;
$brand-success : #10b37f;
$brand-info : #35b9de;
$brand-warning : #f6be00;
$brand-danger : #e8565b;

// Scaffolding
$body-bg : #f5f7fa;
$rea-border-color : #ced9ed;

// Typography
$font-family-sans-serif : 'Nunito Sans', sans-serif;
$font-size-base : 14px;
$font-size-large : 14px;
$line-height-base : 1.6;
$text-color : #475770;
$link-color : $brand-info;
$headings-font-weight : 300;

$font-size-h1 : 38px;
$font-size-h2 : 30px;
$font-size-h3 : 24px;
$font-size-h4 : 20px;
$font-size-h5 : 15px;
$font-size-h6 : 14px;

// Iconography
// Components
$border-radius-base : 0px;
$border-radius-large : 0px;
$border-radius-small : 0px;

// Tables
// Buttons
$btn-font-weight : 400;

$btn-default-color : $text-color;
$btn-default-border : $rea-border-color;

// Forms
$input-color : $text-color;
$input-border : $rea-border-color;
$input-border-focus : $brand-info;
$input-color-placeholder : lighten($text-color, 50%);

// Dropdowns
$dropdown-border : $rea-border-color;
$dropdown-fallback-border : $rea-border-color;
$dropdown-header-color : lighten($text-color, 15%);

// Navbar
$navbar-height : 60px;
$navbar-default-bg : #fff;
$navbar-default-border : $rea-border-color;
$navbar-default-link-active-bg: transparent;

$navbar-inverse-bg : rgba($brand-primary, .9);
$navbar-inverse-link-active-bg: transparent;

// Navs
$nav-tabs-border-color : $rea-border-color;

// Pagination
$pagination-border : $rea-border-color;

// Pager
// Jumbotron
$jumbotron-bg : #fff;

// Form States
$state-success-text : $brand-success;
$state-success-border : $brand-success;

$state-info-text : $brand-info;
$state-info-border : $brand-info;

$state-warning-text : $brand-warning;
$state-warning-border : $brand-warning;

$state-danger-text : $brand-danger;
$state-danger-border : $brand-danger;

// Tooltips
$tooltip-bg : $text-color;

// Popovers
$popover-border-color : $rea-border-color;
$popover-fallback-border-color : $rea-border-color;

// Labels
$label-default-bg : $gray-light;

// Modals
// Alerts
$alert-success-bg : $brand-success;
$alert-success-text : #fff;
$alert-success-border : $brand-success;

$alert-info-bg : $brand-info;
$alert-info-text : #fff;
$alert-info-border : $brand-info;

$alert-warning-bg : $brand-warning;
$alert-warning-text : #fff;
$alert-warning-border : $brand-warning;

$alert-danger-bg : $brand-danger;
$alert-danger-text : #fff;
$alert-danger-border : $brand-danger;

// Progress Bars
$progress-bg : $gray-light;

// List Group
$list-group-border : $rea-border-color;

// Panels
$panel-inner-border : $rea-border-color;
$panel-footer-bg : #fff;

$panel-default-text : $text-color;
$panel-default-border : $rea-border-color;
$panel-default-heading-bg : #fff;

$panel-primary-text : $brand-primary;
$panel-primary-border : $rea-border-color;
$panel-primary-heading-bg : #fff;

$panel-success-text : $brand-success;
$panel-success-border : $rea-border-color;
$panel-success-heading-bg : #fff;

$panel-info-text : $brand-info;
$panel-info-border : $rea-border-color;
$panel-info-heading-bg : #fff;

$panel-warning-text : $brand-warning;
$panel-warning-border : $rea-border-color;
$panel-warning-heading-bg : #fff;

$panel-danger-text : $brand-danger;
$panel-danger-border : $rea-border-color;
$panel-danger-heading-bg : #fff;

// Thumbnails
// Wells
$well-bg : #fff;
$well-border : $rea-border-color;

// Badges
$badge-bg : $brand-info;

// Breadcrumbs
$breadcrumb-bg : transparent;
$breadcrumb-color : $text-color;
$breadcrumb-active-color : lighten($text-color, 25%);
$breadcrumb-separator : ">";

// Carosel
// Close
// Code
// Type
$text-muted : lighten($text-color, 20%);
$abbr-border-color : $text-muted;
$headings-small-color : $text-muted;
$blockquote-small-color : $text-muted;
$blockquote-border-color : $rea-border-color;
$page-header-border-color : $rea-border-color;
$hr-border : $rea-border-color;


/*=============================================
=                  Bootstrap                  =
=============================================*/

@import "bootstrap";


/*=============================================
=                    Icons                    =
=============================================*/

$fa-font-path: "../fonts";
@import "./node_modules/font-awesome/scss/font-awesome";

@import "./vendor/linearicons/style.scss";


/*=============================================
=                    Theme                    =
=============================================*/

body {
    -webkit-font-smoothing: antialiased;
}

strong {
    font-weight: 600;
}

// Buttons
.btn {
    text-transform: uppercase;
    font-size: 12px;
}

.btn-xs, .btn-group-xs>.btn {
    font-size: 12px;
}

.btn-lg {
    font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus {
    outline: none;
    border: 1px solid $brand-info;
}

.btn-link:hover, .btn-link:active, .btn-link:focus {
    text-decoration: none;
}

.btn-circle {
    border-radius: 50%;
    font-size: 15px;
    height: 54px;
    line-height: 54px;
    overflow: hidden;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 54px;
}

.btn-rounded {
    border-radius: 30px;
}

// Dropdowns
.dropdown-menu {
    border: none;
    box-shadow: $box-shadow-darker;
}

// Navbar
.navbar-static-top,
.navbar-fixed-top,
.navbar-fixed-bottom {
    border-radius: 0;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    line-height: $navbar-height;
    font-size: 20px;
}

.navbar-brand>img {
    display: inline-block;
}

.navbar-default .navbar-nav>.active>a {
    box-shadow: inset 0 -4px 0 $brand-info;
    color: $brand-info;
    font-weight: 600;
}

.navbar-inverse {
    border: none;
}

.navbar-inverse .navbar-nav>.active>a {
    box-shadow: inset 0 -4px 0 $brand-info;
    color: $brand-info;
    font-weight: 600;
}

// Navs
.nav>li>a {
    font-size: 15px;
    letter-spacing: .5px;
}

.nav-tabs {
    >li>a,
    >li>a:focus {
        margin-right: 0;
        background-color: transparent;
        border: none;
        color: $navbar-default-link-color;
        box-shadow: inset 0 -1px 0 $rea-border-color;
        transition: all 0.2s;

        &:hover {
            background-color: transparent;
            box-shadow: inset 0 -2px 0 $brand-info;
            color: $brand-info;
        }
    }

    &>li.active>a,
    &>li.active>a:focus {
        border: none;
        box-shadow: inset 0 -2px 0 $brand-info;
        color: $brand-info;

        &:hover {
            border: none;
            color: $brand-info;
        }
    }

    &>li.disabled>a {
        box-shadow: inset 0 -1px 0 #ddd;
    }

    &.nav-justified {

        &>li>a,
        &>li>a:hover,
        &>li>a:focus,
        &>.active>a,
        &>.active>a:hover,
        &>.active>a:focus {
            border: none;
        }
    }

    .dropdown-menu {
        margin-top: 0;
    }
}

// Alerts
.alert-info .alert-link {
    color: #fff;
    text-decoration: underline;
}

.alert-success .alert-link {
    color: #fff;
    text-decoration: underline;
}

.alert-warning .alert-link {
    color: #fff;
    text-decoration: underline;
}

.alert-danger .alert-link {
    color: #fff;
    text-decoration: underline;
}

// Forms
.control-label {
    font-size: 13px;
    font-weight: 600;
}

.radio,
.radio-inline,
.checkbox,
.checkbox-inline {
    label {
        padding-left: 25px;
    }

    input[type="radio"],
    input[type="checkbox"] {
        margin-left: -25px;
    }
}

// Radio
input[type="radio"],
.radio input[type="radio"],
.radio-inline input[type="radio"] {
    position: relative;
    margin-top: 6px;
    margin-right: 4px;
    vertical-align: top;
    border: none;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;

    &:focus {
        outline: none;
    }

    &:before,
    &:after {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        border-radius: 50%;
    }

    &:before {
        position: absolute;
        left: 0;
        top: -6px;
        background-color: $brand-info;
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
    }

    &:after {
        position: relative;
        top: -6px;
        border: 1px solid $input-border;
        margin-right: 5px;
    }

    &:checked:before {
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
    }

    &:checked:after {
        border-width: 1px;
    }

    &:disabled:checked:before {
        background-color: $gray-light;
    }

    &:checked:after {
        border-color: $brand-info;
    }

    &:disabled:after,
    &:disabled:checked:after {
        border-color: $gray-light;
    }
}

// Checkbox
input[type="checkbox"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
    position: relative;
    border: none;
    margin-bottom: -4px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;

    &:focus {
        outline: none;
    }

    &:focus:after {
        border-color: $brand-info;
    }

    &:after {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        margin-top: -2px;
        margin-right: 10px;
        border: 1px solid $input-border;
        border-radius: 2px;
        -webkit-transition: 240ms;
        -moz-transition: 240ms;
        -ms-transition: 240ms;
        -o-transition: 240ms;
    }

    &:checked:before {
        content: "";
        position: absolute;
        top: 0;
        left: 6px;
        display: table;
        width: 6px;
        height: 12px;
        border: 2px solid #fff;
        border-top-width: 0;
        border-left-width: 0;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
    }

    &:checked:after {
        background-color: $brand-info;
        border-color: $brand-info;
    }

    &:disabled:after {
        border-color: $gray-light;
    }

    &:disabled:checked:after {
        background-color: $gray-light;
        border-color: transparent;
    }
}

.has-warning {
    input:not([type=checkbox]),
    input:not([type=radio]),
    .form-control,
    input.form-control[readonly],
    input[type=text][readonly],
    [type=text].form-control[readonly],
    input:not([type=checkbox]):focus,
    input:not([type=radio]):focus,
    .form-control:focus {
        border-bottom: none;
        box-shadow: inset 0 -1px 0 $brand-warning;
    }

    input[type="radio"]:before, .radio input[type="radio"]:before, .radio-inline input[type="radio"]:before {
        background-color: $brand-warning;
    }

    input[type="radio"]:checked:after, .radio input[type="radio"]:checked:after, .radio-inline input[type="radio"]:checked:after {
        border-color: $brand-warning;
    }

    input[type="radio"]:disabled:before, .radio input[type="radio"]:disabled:before, .radio-inline input[type="radio"]:disabled:before {
        background-color: transparentize($brand-warning, .7);
    }

    input[type="radio"]:checked:disabled:after, .radio input[type="radio"]:checked:disabled:after, .radio-inline input[type="radio"]:checked:disabled:after {
        border-color: transparentize($brand-warning, .7);
        cursor: not-allowed;
    }

    input[type="checkbox"]:checked:after, .checkbox input[type="checkbox"]:checked:after, .checkbox-inline input[type="checkbox"]:checked:after {
        background-color: $brand-warning;
        border-color: $brand-warning;
    }

    input[type="checkbox"]:checked:disabled:after, .checkbox input[type="checkbox"]:checked:disabled:after, .checkbox-inline input[type="checkbox"]:checked:disabled:after {
        background-color: transparentize($brand-warning, .7);
        border-color: transparentize($brand-warning, .7);
        cursor: not-allowed;
    }
}

.has-error {
    input:not([type=checkbox]),
    input:not([type=radio]),
    .form-control,
    input.form-control[readonly],
    input[type=text][readonly],
    [type=text].form-control[readonly],
    input:not([type=checkbox]):focus,
    input:not([type=radio]):focus,
    .form-control:focus {
        border-bottom: none;
        box-shadow: inset 0 -1px 0 $brand-danger;
    }

    input[type="radio"]:before, .radio input[type="radio"]:before, .radio-inline input[type="radio"]:before {
        background-color: $brand-danger;
    }

    input[type="radio"]:checked:after, .radio input[type="radio"]:checked:after, .radio-inline input[type="radio"]:checked:after {
        border-color: $brand-danger;
    }

    input[type="radio"]:disabled:before, .radio input[type="radio"]:disabled:before, .radio-inline input[type="radio"]:disabled:before {
        background-color: transparentize($brand-danger, .7);
    }

    input[type="radio"]:checked:disabled:after, .radio input[type="radio"]:checked:disabled:after, .radio-inline input[type="radio"]:checked:disabled:after {
        border-color: transparentize($brand-danger, .7);
        cursor: not-allowed;
    }

    input[type="checkbox"]:checked:after, .checkbox input[type="checkbox"]:checked:after, .checkbox-inline input[type="checkbox"]:checked:after {
        background-color: $brand-danger;
        border-color: $brand-danger;
    }

    input[type="checkbox"]:checked:disabled:after, .checkbox input[type="checkbox"]:checked:disabled:after, .checkbox-inline input[type="checkbox"]:checked:disabled:after {
        background-color: transparentize($brand-danger, .7);
        border-color: transparentize($brand-danger, .7);
        cursor: not-allowed;
    }
}

.has-success {
    input:not([type=radio]):not([type=checkbox]),
    .form-control,
    input.form-control[readonly],
    input[type=text][readonly],
    [type=text].form-control[readonly],
    input:not([type=checkbox]):focus:not([type=radio]):focus,
    .form-control:focus {
        border-bottom: none;
        box-shadow: inset 0 -1px 0 $brand-success;
    }

    input[type="radio"]:before, .radio input[type="radio"]:before, .radio-inline input[type="radio"]:before {
        background-color: $brand-success;
    }

    input[type="radio"]:checked:after, .radio input[type="radio"]:checked:after, .radio-inline input[type="radio"]:checked:after {
        border-color: $brand-success;
    }

    input[type="radio"]:disabled:before, .radio input[type="radio"]:disabled:before, .radio-inline input[type="radio"]:disabled:before {
        background-color: transparentize($brand-success, .7);
    }

    input[type="radio"]:checked:disabled:after, .radio input[type="radio"]:checked:disabled:after, .radio-inline input[type="radio"]:checked:disabled:after {
        border-color: transparentize($brand-success, .7);
        cursor: not-allowed;
    }

    input[type="checkbox"]:checked:after, .checkbox input[type="checkbox"]:checked:after, .checkbox-inline input[type="checkbox"]:checked:after {
        background-color: $brand-success;
        border-color: $brand-success;
    }

    input[type="checkbox"]:checked:disabled:after, .checkbox input[type="checkbox"]:checked:disabled:after, .checkbox-inline input[type="checkbox"]:checked:disabled:after {
        background-color: transparentize($brand-success, .7);
        border-color: transparentize($brand-success, .7);
        cursor: not-allowed;
    }
}

@media all and (-ms-high-contrast:none) {
    .radio input[type="radio"],
    .radio-inline input[type="radio"],
    .checkbox input[type="checkbox"],
    .checkbox-inline input[type="checkbox"] {
        margin-bottom: -1px;
    }
    /* IE11 - checkbox drops below label otherwise */
}

@-moz-document url-prefix() {
    .radio input[type="radio"],
    .radio-inline input[type="radio"] {
        padding-top: 3px;
    }
    /* Firefox - checkbox to high for label otherwise */
    input[type="radio"]::before, .radio input[type="radio"]::before, .radio-inline input[type="radio"]::before {
        top: -4px;
    }
}

// Forms
.form-control:focus {
    box-shadow: none;
}

.help-block {
    font-size: 12px;
}

// Panels
.panel {
    box-shadow: $box-shadow;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.panel-primary {
    border-top: 2px solid $brand-primary;
}

.panel-info {
    border-top: 2px solid $brand-info;
}

.panel-success {
    border-top: 2px solid $brand-success;
}

.panel-warning {
    border-top: 2px solid $brand-warning;
}

.panel-danger {
    border-top: 2px solid $brand-danger;
}

.panel-title {
    font-size: 20px;
}

.panel-heading, .panel-footer {
    padding: 15px;
}

// Wells
.well {
    box-shadow: none;
}

// Labels
.label {
    border-radius: 30px;
    padding: 0.3em .8em .3em;
}

.label-default {
    color: $text-color;
}

// Popovers
.popover {
    border: none;
    box-shadow: $box-shadow-darker;
}

// Badges
.badge {
    font-weight: 600;
    min-width: 22px;
}

// Breadcrumbs
.breadcrumb {
    font-weight: 600;
}

// Page Headers
.page-header {
    border: none;
    color: $gray-dark;
}

// Modals
.modal button.close {
    font-size: 35px;
}

button.close:focus {
    outline: $brand-info auto 1px;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    color: $brand-info;
}

.modal-body {
    background-color: $body-bg;
}

.modal-footer {
    border-top: none;
}


/*=============================================
=                    Custom                   =
=============================================*/

dt {
    color: #293341;
    font-weight: 600;
}

dd {
    // color: $text-muted;
}

// Scrollbars
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: $rea-border-color;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
}

// Angular Toasty
#toasty .toast .toast-text .toast-title {
    font-weight: 600;
}

#toasty .toast.toasty-theme-material {
    font-size: 14px;
}

#toasty .toast.toasty-theme-material .toast-text .toast-title {
    font-size: 14px;
    text-transform: none;
}

// Angular Loading Bar
#loading-bar .bar {
    background: $brand-info;
}


/* Fancy blur effect */

#loading-bar .peg {
    -moz-box-shadow: $brand-info 1px 0 6px 1px;
    -ms-box-shadow: $brand-info 1px 0 6px 1px;
    -webkit-box-shadow: $brand-info 1px 0 6px 1px;
    box-shadow: $brand-info 1px 0 6px 1px;
}

#loading-bar-spinner {
    top: 25%;
    left: 49%
}

#loading-bar-spinner .spinner-icon {
    width: 44px;
    height: 44px;
    border-top-color: $brand-info;
    border-left-color: $brand-info;
}

// Angular Messages
[ng-messages] {
    display: none;
}

.has-error [ng-messages] {
    display: block;
}


// Uib Datepicker
.uib-daypicker {
    outline: 0;
}

.uib-datepicker .btn-default,
.uib-datepicker-popup .btn-default {
    background-color: #fff;
    box-shadow: none;
    border-color: transparent;
}

.uib-datepicker .btn-info,
.uib-datepicker-popup .btn-info {
    background-color: $brand-info;
}

.uib-datepicker .btn-info .text-info, .uib-datepicker-popup .btn-info .text-info {
    color: #fff;
}

.uib-datepicker .btn-default.disabled,
.uib-datepicker .btn-default[disabled],
.uib-datepicker .btn-default.disabled .text-muted,
.uib-datepicker .btn-default[disabled] .text-muted,
.uib-datepicker-popup .btn-default.disabled,
.uib-datepicker-popup .btn-default[disabled],
.uib-datepicker-popup .btn-default.disabled .text-muted,
.uib-datepicker-popup .btn-default[disabled] .text-muted {
    background-color: transparent;
    color: #ddd;
}


.lnr {
    font-size: 20px;
    vertical-align: bottom;
}
