/* ==========================================================
   VIPLICITA
   PAINEL GERAL CLÁSSICO + BUSCADOR
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;

    min-height: 100%;

    background: #ffffff;

    color: #333333;

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
}

body {
    font-size: 14px;
}

a {
    color: #337ab7;

    text-decoration: none;
}

a:hover {
    color: #23527c;

    text-decoration: none;
}


/* ==========================================================
   ESTRUTURA
   ========================================================== */

.app-layout {
    min-height: 100vh;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width: 244px;

    z-index: 100;

    display: flex;

    flex-direction: column;

    overflow-y: auto;

    background: #f7f7f7;

    border-right:
        1px solid #dddddd;
}


/* LOGO */

.sidebar-logo {
    min-height: 68px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0 15px;

    border-bottom:
        1px solid #dddddd;

    background: #ffffff;
}

.sidebar-logo-mark {
    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 5px;

    background: #337ab7;

    color: #ffffff;

    font-size: 19px;

    font-weight: 700;
}

.sidebar-logo strong {
    display: block;

    color: #333333;

    font-size: 16px;
}

.sidebar-logo span {
    display: block;

    margin-top: 2px;

    color: #777777;

    font-size: 9px;
}


/* PESQUISA SIDEBAR */

.sidebar-search {
    min-height: 60px;

    display: flex;

    align-items: center;

    padding:
        11px 15px;

    border-bottom:
        1px solid #dddddd;
}

.sidebar-search input {
    width: 176px;

    height: 37px;

    padding:
        8px 10px;

    border:
        1px solid #cccccc;

    outline: none;

    background: #ffffff;

    color: #555555;

    font-size: 12px;
}

.sidebar-search input:focus {
    border-color: #66afe9;

    box-shadow:
        0 0 6px
        rgba(102,175,233,.55);
}

.sidebar-search button {
    width: 38px;
    height: 37px;

    margin-left: -1px;

    border:
        1px solid #cccccc;

    background: #ffffff;

    color: #111111;

    cursor: pointer;
}


/* MENU */

.sidebar-menu {
    flex: 1;
}

.menu-item {
    min-height: 40px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding:
        0 15px;

    border-bottom:
        1px solid #dddddd;

    background: #f7f7f7;

    color: #337ab7;

    font-size: 13px;
}

.menu-item:hover {
    background: #eeeeee;
}

.menu-item.active {
    background: #e9e9e9;
}

.menu-icon {
    width: 15px;

    flex: 0 0 15px;

    color: #337ab7;

    font-size: 11px;

    text-align: center;
}

.future-feature {
    cursor: pointer;
}


/* STATUS */

.sidebar-status {
    min-height: 64px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        10px 15px;

    border-top:
        1px solid #dddddd;

    background: #ffffff;
}

.online-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #5cb85c;
}

.sidebar-status strong {
    display: block;

    color: #555555;

    font-size: 9px;
}

.sidebar-status span {
    display: block;

    margin-top: 2px;

    color: #999999;

    font-size: 8px;
}


/* ==========================================================
   DASHBOARD
   ========================================================== */

.dashboard {
    min-height: 100vh;

    margin-left: 244px;

    padding:
        20px 22px 60px;

    background: #ffffff;
}


/* CABEÇALHO */

.dashboard-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 13px;
}

.dashboard-header h1 {
    margin:
        0 0 3px;

    color: #333333;

    font-size: 36px;

    font-weight: 400;
}

.dashboard-header p {
    margin: 0;

    color: #777777;

    font-size: 12px;
}

.advanced-search-link {
    padding:
        9px 14px;

    border:
        1px solid #cccccc;

    border-radius: 4px;

    background: #ffffff;

    font-size: 12px;
}


/* ==========================================================
   CARDS COLORIDOS
   ========================================================== */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 29px;

    margin:
        9px 0 20px;
}

.info-card {
    overflow: hidden;

    min-width: 0;

    border-radius: 4px;

    color: white;
}

.info-card-main {
    min-height: 99px;

    display: grid;

    grid-template-columns:
        105px minmax(0, 1fr);

    align-items: center;

    padding:
        8px 14px;
}

.info-icon {
    color: #ffffff;

    font-size: 55px;

    line-height: 1;

    text-align: center;
}

.info-number-area {
    min-width: 0;

    text-align: right;
}

.info-number-area strong {
    display: block;

    overflow: hidden;

    color: #ffffff;

    font-size:
        clamp(26px, 2.6vw, 43px);

    font-weight: 300;

    line-height: 1.05;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.info-number-area span {
    display: block;

    margin-top: 8px;

    color: #ffffff;

    font-size: 12px;
}

.info-card > a {
    min-height: 41px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 15px;

    background: #f7f7f7;

    font-size: 12px;
}

.info-card > a strong {
    font-size: 13px;
}


/* CORES */

.blue-card {
    background: #337ab7;

    border:
        1px solid #337ab7;
}

.blue-card > a {
    color: #337ab7;
}


.green-card {
    background: #5cb85c;

    border:
        1px solid #5cb85c;
}

.green-card > a {
    color: #5cb85c;
}


.orange-card {
    background: #f0ad4e;

    border:
        1px solid #f0ad4e;
}

.orange-card > a {
    color: #f0ad4e;
}


.red-card {
    background: #d9534f;

    border:
        1px solid #d9534f;
}

.red-card > a {
    color: #d9534f;
}


/* ==========================================================
   ÁREA PRINCIPAL
   ========================================================== */

.search-showcase {
    min-height: 520px;

    display: grid;

    grid-template-columns:
        minmax(390px, .95fr)
        minmax(430px, 1.05fr);

    align-items: center;

    gap: 42px;

    padding:
        55px 68px;

    background: #f7f8fa;

    border:
        1px solid #f1f1f1;
}


/* ==========================================================
   ARTE RADAR
   ========================================================== */

.showcase-art {
    position: relative;

    min-height: 400px;
}

.radar-circle {
    position: absolute;

    width: 385px;
    height: 385px;

    top: 4px;
    left: 50%;

    border-radius: 50%;

    background:
        #3d9df2;

    transform:
        translateX(-50%);

    overflow: hidden;
}

.radar-circle::before,
.radar-circle::after {
    content: "";

    position: absolute;

    border:
        1px solid
        rgba(255,255,255,.35);

    border-radius: 50%;
}

.radar-circle::before {
    inset: 55px;
}

.radar-circle::after {
    inset: 110px;
}

.radar-line {
    position: absolute;

    width: 50%;
    height: 50%;

    left: 50%;
    top: 0;

    background:
        linear-gradient(
            45deg,
            transparent,
            rgba(255,255,255,.24)
        );

    transform-origin:
        left bottom;

    animation:
        radar-spin 7s linear infinite;
}

@keyframes radar-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.radar-center {
    position: absolute;

    z-index: 4;

    width: 90px;
    height: 90px;

    display: grid;

    place-items: center;

    left: 50%;
    top: 50%;

    border:
        8px solid #173e5f;

    border-radius: 50%;

    background: #ffffff;

    color: #337ab7;

    font-size: 38px;

    font-weight: 700;

    transform:
        translate(-50%, -50%);
}

.radar-point {
    position: absolute;

    z-index: 5;

    width: 15px;
    height: 15px;

    border:
        4px solid #ffffff;

    border-radius: 50%;

    background: #f0ad4e;

    box-shadow:
        0 2px 9px
        rgba(0,0,0,.16);
}

.point-one {
    top: 74px;
    left: 102px;
}

.point-two {
    top: 125px;
    right: 65px;
}

.point-three {
    bottom: 82px;
    left: 75px;
}

.point-four {
    right: 99px;
    bottom: 56px;
}


/* FLOATERS */

.floating-card {
    position: absolute;

    z-index: 8;

    padding:
        10px 14px;

    background: #425964;

    color: #ffffff;

    box-shadow:
        0 4px 10px
        rgba(0,0,0,.14);

    font-size: 10px;
}

.floating-one {
    top: 75px;
    left: 12px;
}

.floating-two {
    right: 0;
    bottom: 85px;
}

.mini-result-card {
    position: absolute;

    z-index: 9;

    width: 215px;

    left: 50%;
    bottom: 1px;

    padding:
        14px 16px;

    border:
        1px solid #dddddd;

    border-radius: 5px;

    background: #ffffff;

    box-shadow:
        0 6px 18px
        rgba(0,0,0,.14);

    transform:
        translateX(-50%);
}

.mini-result-card small {
    display: block;

    margin-bottom: 6px;

    color: #999999;

    font-size: 7px;
}

.mini-result-card strong {
    display: block;

    margin-bottom: 5px;

    color: #337ab7;

    font-size: 14px;
}

.mini-result-card span {
    color: #777777;

    font-size: 9px;
}


/* ==========================================================
   BUSCADOR PRINCIPAL
   ========================================================== */

.showcase-content {
    min-width: 0;
}

.showcase-label {
    display: block;

    margin-bottom: 12px;

    color: #337ab7;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.showcase-content h2 {
    max-width: 570px;

    margin:
        0 0 12px;

    color: #333333;

    font-size:
        clamp(34px, 3.3vw, 54px);

    font-weight: 700;

    line-height: 1.06;
}

.showcase-content > p {
    margin:
        0 0 25px;

    color: #777777;

    font-size: 14px;

    line-height: 1.6;
}


/* FORM */

.dashboard-search {
    width: 100%;
}

.main-search-row {
    min-height: 57px;

    display: flex;

    align-items: center;

    border:
        1px solid #cccccc;

    border-radius: 4px;

    background: #ffffff;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,.06);
}

.search-symbol {
    width: 43px;

    color: #337ab7;

    text-align: center;
}

.main-search-row input {
    min-width: 0;

    flex: 1;

    height: 55px;

    border: 0;

    outline: none;

    color: #333333;

    font-size: 13px;
}

.main-search-row button {
    min-width: 105px;

    height: 47px;

    margin-right: 5px;

    border: 0;

    border-radius: 4px;

    background: #337ab7;

    color: #ffffff;

    font-size: 12px;

    cursor: pointer;
}

.main-search-row button:hover {
    background: #286090;
}


/* FILTROS */

.quick-filters {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 9px;
}

.filter-field {
    min-width: 0;

    padding:
        8px 9px;

    border:
        1px solid #dddddd;

    border-radius: 4px;

    background: #ffffff;
}

.filter-field label {
    display: block;

    margin-bottom: 4px;

    color: #888888;

    font-size: 8px;

    font-weight: 700;

    text-transform: uppercase;
}

.filter-field select,
.filter-field input {
    width: 100%;

    border: 0;

    outline: none;

    background: transparent;

    color: #444444;

    font-size: 10px;
}


/* PESQUISAS RÁPIDAS */

.popular-searches {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 6px;

    margin-top: 13px;
}

.popular-searches > span {
    color: #888888;

    font-size: 9px;
}

.popular-searches a {
    padding:
        4px 7px;

    border:
        1px solid #dddddd;

    border-radius: 3px;

    background: #ffffff;

    color: #337ab7;

    font-size: 8px;
}


/* ==========================================================
   FONTES
   ========================================================== */

.sources-panel {
    margin-top: 20px;

    border:
        1px solid #e2e2e2;

    background: #ffffff;
}

.panel-heading {
    min-height: 70px;

    display: flex;

    align-items: center;

    padding:
        0 20px;

    border-bottom:
        1px solid #eeeeee;
}

.panel-heading h2 {
    margin:
        0 0 4px;

    color: #333333;

    font-size: 19px;

    font-weight: 400;
}

.panel-heading p {
    margin: 0;

    color: #888888;

    font-size: 10px;
}

.sources-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.source-box {
    min-height: 85px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        15px 20px;

    border-right:
        1px solid #eeeeee;
}

.source-box:last-child {
    border-right: 0;
}

.source-online {
    width: 9px;
    height: 9px;

    flex:
        0 0 auto;

    border-radius: 50%;

    background: #5cb85c;
}

.source-box strong {
    display: block;

    margin-bottom: 4px;

    color: #337ab7;

    font-size: 12px;
}

.source-box small {
    display: block;

    color: #888888;

    font-size: 8px;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1250px) {

    .dashboard-cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .search-showcase {
        padding:
            45px 35px;
    }

}


@media (max-width: 1000px) {

    .search-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-art {
        min-height: 410px;
    }

    .sources-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .source-box:nth-child(2) {
        border-right: 0;
    }

}


@media (max-width: 780px) {

    .sidebar {
        position: static;

        width: 100%;

        max-height: none;
    }

    .sidebar-menu {
        display: none;
    }

    .dashboard {
        margin-left: 0;

        padding:
            18px 14px 40px;
    }

    .dashboard-header h1 {
        font-size: 29px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .search-showcase {
        padding:
            30px 18px;
    }

    .radar-circle {
        width: 310px;
        height: 310px;
    }

    .quick-filters {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 520px) {

    .showcase-art {
        display: none;
    }

    .showcase-content h2 {
        font-size: 34px;
    }

    .main-search-row {
        flex-direction: column;

        align-items: stretch;

        padding: 8px;
    }

    .search-symbol {
        display: none;
    }

    .main-search-row input {
        width: 100%;

        padding:
            0 8px;
    }

    .main-search-row button {
        width: 100%;

        min-height: 45px;

        margin: 0;
    }

    .quick-filters {
        grid-template-columns: 1fr;
    }

    .sources-grid {
        grid-template-columns: 1fr;
    }

    .source-box {
        border-right: 0;

        border-bottom:
            1px solid #eeeeee;
    }

}

@media (max-width: 900px) {
    .sidebar .sidebar-menu {display:block;}
    .sidebar-menu .menu-item:not(.whatsapp-nav-link) {display:none;}
}
