/* Utilities */

.center-viewport {
    margin-top: 42vh;
    transform: translateY(-45%);
}

/* Turbolinks loader */

.turbolinks-progress-bar {
    background-color: #DB5905;
}

/* Responsive stuffs */

@media screen and (max-width: 544px) {
    h1 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .card h2 {
        font-size: 1rem;
    }
}

@media screen and (min-width: 992px) {
    .wrapper {
        padding-left: 250px;
    }

    #content-wrapper {
        padding: 68px 20px 20px;
        position: relative;
    }

    .doc-wrapper {
        padding-left: 450px;
    }
}

@media screen and (max-width: 1199px) {
    h5 {
        font-size: 1rem;
    }

    .card h2 {
        font-size: 1.6rem;
    }
}

@media screen and (min-width: 1880px) {
    .circle-container > div.bordered {
        border-right: 2px solid #7B8689;
    }

    .circle-container > div {
        float: left;
        width: 50%;
        padding-bottom: 0 !important;
    }

    .circle-container > div.bordered {
        text-align: right;
    }

    .circle-container > div:not(.bordered) {
        text-align: left;
    }

    .circle-container .circle.circle-opens, .circle-container .circle.circle-softbounces {
        float: right;
    }
}

/* Login page */

.login-wrapper {
    position: absolute;
    min-height: 100%;
    height: auto !important;
    height: 100%;
    width: 100%;
}

.login-container label {
    font-family: 'Ubuntu-regular' !important;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Account header */

#container-dashboard {
    padding-left: 0;
    padding-right: 0;
}

.navbar-mooglepost {
    margin-left: 250px;
    min-height: 50px;
    max-height: 50px;
    background-color: #FFF;
    border-color: #EEE;
    border-style: none none solid;
    border-width: medium medium 1px;
    font-size: 1.3rem;
}

.navbar-mooglepost h2 {
    font-size: 1.5rem;
}

.navbar-mooglepost h2 a, .navbar-mooglepost h2 a:hover, .navbar-mooglepost h2 a:focus {
    color: #051316;
}

.navbar-mooglepost h2 a {
    text-decoration: none;
}

.navbar-mooglepost h2 a:hover {
    text-decoration: underline;
}

.navbar-mooglepost li a, .navbar-mooglepost li a:hover, .navbar-mooglepost li a:focus {
    color: #373a3c;
}

.navbar-mooglepost > * {
    margin-bottom: 0.2rem;
}

/* Account sidebar & slide menu */

#sidebar-wrapper {
    width: 250px;
    height: 100vh;
    left: 250px;
    margin-left: -250px;
    overflow-y: auto;
    position: fixed;
}

#sidebar-wrapper .brand {
    min-height: 50px;
}

#sidebar-wrapper .brand h1 {
    font-size: 1.3rem;
    line-height: 50px;
    margin-bottom: 0;
}

#sidebar-nav li {
    font-family: 'Ubuntu-regular';
    text-transform: uppercase;
    font-size: 0.9rem;
    text-indent: 8px;
    line-height: 40px;
}

#sidebar-nav li.active, #slide-menu li.active {
    background-color: #0B2A33;
    font-weight: 600;
    border-left: 3px solid #DB5905;
}

#sidebar-nav li a, #slide-menu li a {
    display: block;
    text-decoration: none;
    color: #E6E7ED;
}

#sidebar-nav li.active a, #slide-menu li.active a {
    color: #FFF;
}

#sidebar-nav li a:hover, #slide-menu li a:hover {
    background-color: #0B2A33;
}

#sidebar-nav li a i {
    padding-right: 0.3rem;
}

#sidebar-nav li a i, #slide-menu li a i {
    width: 3.5rem;
    text-align: center;
}

.navbar-light .slide-menu-toggler {
    font-size: 1rem;
    border-color: rgba(230, 231, 237, 0.4);
    cursor: pointer;
}

.navbar-light .slide-menu-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox=\'0 0 32 32\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath stroke=\'rgba(230, 231, 237, 1)\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' d=\'M4 8h24M4 16h24M4 24h24\'/%3E%3C/svg%3E");
}

#slide-menu {
    height: 100%;
    position: fixed;
    top: 0;
    left: -240px;
    transition: all 0.3s ease 0s;
    width: 240px;
    z-index: 1001;
}

#slide-menu li {
    text-indent: 7px;
    line-height: 40px;
}

.slide-menu-open {
    left: 0 !important;
}

#slide-menu-overlay {
    display: none;
    z-index: 1000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
}

.navbar-full .brand h1 {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Overview */
.card h2 {
    font-size: 2.3rem;
}

.card-border {
    border-top: 2px solid #7B8689;
}

.circle-container > div {
    text-align: center;
}

.circle-container > div:first-child {
    padding-bottom: 1rem;
}

.circle-container h5 {
    display: inline-block;
    line-height: 60px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.circle {
    border-radius: 100%;
    background-color: #DB5905;
    width: 60px;
    height: 60px;
    text-align: center;
    white-space: nowrap;
}

.circle.circle-opens {
    background-color: #9DDBC9;
    float: left;
}

.circle.circle-clicks {
    background-color: #57B298;
}

.circle.circle-softbounces {
    float: left;
    background-color: #EDB18B;
}

.circle.circle-hardbounces {
    background-color: #E5742D;
}

.circle > div {
    margin: 0 auto;
    border-radius: 100%;
    width: 56px;
    height: 56px;
    line-height: 56px;
    position: relative;
    top: 2px;
    font-size: 1.2rem;
    color: #0B2A33;
}

.custom-card {
    padding: 1.25rem;
    background-color: #FCFCFC;
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.75rem;
}

/* Activity Feed */

.feed .list-group-item-heading {
    margin-bottom: 0;
}

.feed .list-group-item {
    padding: 1.25rem 1.75rem;
}

.feed-date {
    padding-top: 12px;
}

.feed-label {
    display: inline-block;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    padding: 0.7em 0.8em;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

.feed-label.label-subject {
    background-color: #F7F7F7;
    border-left: 2px solid #E5E3E3;
}

.feed-label.label-subject a {
    text-decoration: none;
    color: inherit;
}

.feed-badge {
    background: #EEE;
    border-radius: 3px 0 0 3px;
    color: #999;
    display: inline-block;
    height: 26px;
    line-height: 25px;
    padding: 0 20px 0 23px;
    position: relative;
    margin: 0 10px 0 0;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.feed-badge::before {
    background: #FFF;
    border-radius: 10px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
    content: '';
    height: 6px;
    left: 10px;
    position: absolute;
    width: 6px;
    top: 10px;
}

.feed-badge::after {
    background: #FFF;
    border-bottom: 13px solid transparent;
    border-left: 10px solid #EEE;
    border-top: 13px solid transparent;
    content: '';
    position: absolute;
    right: 0;
    top: 0;
}

.feed-badge.badge-sent {
    color: #FFF;
    background: #91B3B5;
}

.feed-badge.badge-sent::after {
    border-left-color: #91B3B5;
}

.feed-badge.badge-delivered {
    color: #FFF;
    background: #113F4C;
}

.feed-badge.badge-delivered::after {
    border-left-color: #113F4C;
}

.feed-badge.badge-soft-bounced {
    color: #FFF;
    background: #EDB18B;
}

.feed-badge.badge-soft-bounced::after {
    border-left-color: #EDB18B;
}

.feed-badge.badge-hard-bounced {
    color: #FFF;
    background: #E5742D;
}

.feed-badge.badge-hard-bounced::after {
    border-left-color: #E5742D;
}

.feed-badge.badge-viewed, .feed-badge.badge-opened {
    color: #FFF;
    background: #9DDBC9;
}

.feed-badge.badge-viewed::after, .feed-badge.badge-opened::after {
    border-left-color: #9DDBC9;
}

.feed-badge.badge-clicked {
    color: #FFF;
    background: #57B298;
}

.feed-badge.badge-clicked::after {
    border-left-color: #57B298;
}

.feed-badge.badge-unsubscribed {
    color: #FFF;
    background: #7C7C7C;
}

.feed-badge.badge-unsubscribed::after {
    border-left-color: #7C7C7C;
}

.feed-badge.badge-spammed {
    color: #FFF;
    background: #E52D2D;
}

.feed-badge.badge-spammed::after {
    border-left-color: #E52D2D;
}

.feed-badge.badge-resent {
    color: #FFF;
    background: #A0A0A0;
}

.feed-badge.badge-resent::after {
    border-left-color: #A0A0A0;
}

/* Feed */

ul.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

ul.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(17, 63, 76, 0.1);
    left: 6px;
    margin-left: -10px;
}

ul.timeline > li {
    position: relative;
}

ul.timeline > li .timeline-label {
    margin: 0 0 0 25px;
    position: relative;
}

ul.timeline > li .timeline-label > div:first-letter {
    text-transform: uppercase;
}

ul.timeline > li .timeline-icon {
    width: 8px;
    height: 8px;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 8px;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    color: #fff;
    background: #113F4C;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #91B5BF;
    text-align: center;
    left: 12px;
    top: 8px;
    margin: 0 0 0 -18px;
}

ul.timeline > li .timeline-icon.timeline-icon-sent {
    box-shadow: 0 0 0 4px #D5E4E5;
    background: #91B3B5;
}

ul.timeline > li .timeline-icon.timeline-icon-soft-bounced {
    box-shadow: 0 0 0 4px #F2DBCD;
    background: #EDB18B;
}

ul.timeline > li .timeline-icon.timeline-icon-hard-bounced {
    box-shadow: 0 0 0 4px #EFBEA0;
    background: #E5742D;
}

ul.timeline > li .timeline-icon.timeline-icon-opened {
    box-shadow: 0 0 0 4px #D5EAE4;
    background: #9DDBC9;
}

ul.timeline > li .timeline-icon.timeline-icon-clicked {
    box-shadow: 0 0 0 4px #A6D8C9;
    background: #57B298;
}

ul.timeline > li .timeline-icon.timeline-icon-unsubscribed {
    box-shadow: 0 0 0 4px #C6C4C4;
    background: #7C7C7C;
}

ul.timeline > li .timeline-icon.timeline-icon-spammed {
    box-shadow: 0 0 0 4px #C6C4C4;
    background: #E52D2D;
}

ul.timeline > li .timeline-icon.timeline-icon-resent {
    box-shadow: 0 0 0 4px #E5E5E5;
    background: #A0A0A0;
}

/* Template edition */

textarea.code-mirror-side {
    height: 300px;
}

/* Code Mirror */

.form-group .CodeMirror {
    border: 1px solid #ccc;
}

.custom-tab-content > div:not(.active) {
    display: none;
}

/* Template preview */

.preview-modal iframe {
    border: 1px solid #ddd;
}

.horizontal-scroll {
    width:100%;
    overflow-x: scroll;
    overflow-y: hidden;
}

/* Documentation wrapper */

#sidebar-doc-wrapper {
    width: 200px;
    height: 100vh;
    left: 500px;
    top: 50px;
    margin-left: -250px;
    overflow-y: auto;
    position: fixed;
    background-color: #DB5905;
    color: #FFF;
    font-size: 0.85rem;
}

#sidebar-doc-wrapper a {
    color: #FFF;
    text-decoration: none;
    display:block;
}

#sidebar-doc-nav li {
    text-indent: 20px;
    line-height: 40px;
}

#sidebar-doc-nav li.active {
    background-color: #BA4903;
    font-weight: 600;
}
