/*
 * Grow CRM visual refresh
 * This file is loaded after the selected theme so the redesign is safe to
 * apply across all pages without changing application markup or behaviour.
 */

:root {
    --ui-ink: #172033;
    --ui-muted: #78839a;
    --ui-border: #e8ecf3;
    --ui-surface: #ffffff;
    --ui-canvas: #f5f7fb;
    --ui-sidebar: #111827;
    --ui-sidebar-muted: #9aa6ba;
    --ui-brand: #635bff;
    --ui-brand-dark: #4d46d8;
    --ui-radius: 14px;
    --ui-shadow: 0 8px 26px rgba(31, 41, 55, .06);
}

html,
body {
    background: var(--ui-canvas);
    color: var(--ui-ink);
}

body {
    font-family: 'Roboto', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: .01em;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ui-ink);
    font-weight: 600;
    letter-spacing: -.02em;
}

a {
    color: var(--ui-brand);
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

/* App chrome */
.topbar {
    height: 72px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 3px 18px rgba(31, 41, 55, .04);
    backdrop-filter: blur(12px);
}

.topbar .top-navbar {
    height: 72px;
}

.topbar .top-navbar .navbar-header {
    width: 240px;
    background: transparent;
}

.topbar .top-navbar .navbar-header .navbar-brand {
    height: 72px;
    padding: 18px 24px;
}

.topbar .top-navbar .navbar-header .navbar-brand img {
    max-height: 36px;
    object-fit: contain;
}

.neighshop-brand {
    display: inline-block;
    color: #080b12 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 36px;
    white-space: nowrap;
}

.neighshop-brand:hover {
    color: var(--ui-brand) !important;
}

.topbar .top-navbar .navbar-nav > .nav-item > .nav-link {
    color: #647089;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 13px;
}

.topbar .top-navbar .navbar-nav > .nav-item > .nav-link:hover {
    color: var(--ui-brand);
    background: #f7f7ff;
}

.top-search-bar {
    margin-left: 18px;
}

.top-search-container {
    width: 290px;
    height: 40px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #f8f9fc;
    color: #98a2b5;
    transition: all .2s ease;
}

.top-search-container:focus-within,
.top-search-container:hover {
    border-color: #c9c6ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .08);
}

.top-search-container .form-control {
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.top-search-container .form-control::placeholder {
    color: #9aa3b5;
}

.left-sidebar {
    width: 240px;
    padding-top: 72px;
    background: var(--ui-sidebar);
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 8px 0 28px rgba(17, 24, 39, .08);
}

#main-wrapper .left-sidebar {
    border-right: 0 !important;
}

.sidebar-nav {
    background: transparent;
    padding: 18px 12px;
}

.sidebar-nav ul li.nav-small-cap {
    padding: 22px 14px 8px;
    color: #68758d;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sidebar-nav > ul > li {
    margin: 3px 0;
}

.sidebar-nav > ul > li > a,
.sidebar-nav ul li a {
    border-radius: 9px;
    color: var(--ui-sidebar-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 14px;
}

.sidebar-nav > ul > li > a {
    border-left: 0;
}

.sidebar-nav > ul > li > a i {
    width: 31px;
    color: #8490a6;
    font-size: 19px;
}

.sidebar-nav > ul > li > a:hover,
.sidebar-nav > ul > li > a.active,
.sidebar-nav > ul > li.active > a {
    color: #fff;
    background: rgba(99, 91, 255, .18);
}

.sidebar-nav > ul > li > a:hover i,
.sidebar-nav > ul > li > a.active i,
.sidebar-nav > ul > li.active > a i {
    color: #a8a4ff;
}

.sidebar-nav > ul > li > a.active,
.sidebar-nav > ul > li.active > a {
    box-shadow: inset 3px 0 0 var(--ui-brand);
}

.sidebar-nav ul li ul {
    padding: 4px 0 7px 42px;
}

.sidebar-nav ul li ul li a {
    padding: 8px 12px;
    color: #8490a6;
    font-size: 12px;
}

.sidebar-nav ul li ul li a:hover,
.sidebar-nav ul li ul li a.active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.sidebar-nav .has-arrow::after {
    border-color: #8490a6;
    right: 16px;
}

.page-wrapper {
    margin-left: 240px;
    padding-top: 72px;
    background: var(--ui-canvas);
}

.container-fluid {
    max-width: 1680px;
    padding: 26px 30px 42px;
}

/* Content surfaces */
.card,
.panel,
.modal-content,
.dropdown-menu,
.right-sidebar {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
}

.card {
    background: var(--ui-surface);
    margin-bottom: 24px;
}

.card-body {
    padding: 22px;
}

.card-title {
    margin-bottom: 18px;
    color: var(--ui-ink);
    font-size: 16px;
    font-weight: 600;
}

.card-subtitle,
.text-muted,
.small {
    color: var(--ui-muted) !important;
}

/* Stats and dashboard widgets */
.stats-card,
.dashboard-stats,
[class*="dashboard"] .card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.stats-card:hover,
.dashboard-stats:hover,
[class*="dashboard"] .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(31, 41, 55, .1);
}

.progress {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #eef0f7;
}

.progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ui-brand), #8c86ff);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all .18s ease;
}

.btn-primary,
.btn-info {
    border-color: var(--ui-brand);
    background: var(--ui-brand);
}

.btn-primary:hover,
.btn-info:hover {
    border-color: var(--ui-brand-dark);
    background: var(--ui-brand-dark);
    box-shadow: 0 7px 16px rgba(99, 91, 255, .22);
    transform: translateY(-1px);
}

.btn-light,
.btn-default {
    border-color: var(--ui-border);
    background: #fff;
    color: #5e6a80;
}

.btn-light:hover,
.btn-default:hover {
    border-color: #c9c6ff;
    color: var(--ui-brand);
    background: #fafaff;
}

/* Forms and tables */
.form-control,
.custom-select,
select.form-control {
    min-height: 40px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #fff;
    color: var(--ui-ink);
    box-shadow: none;
    font-size: 13px;
}

.form-control:focus,
.custom-select:focus {
    border-color: #aaa6ff;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .1);
}

label {
    color: #66738a;
    font-size: 12px;
    font-weight: 600;
}

.table {
    color: #455168;
}

.table thead th,
.table th {
    border-top: 0;
    border-bottom: 1px solid var(--ui-border);
    color: #8993a6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.table td {
    border-top: 1px solid #f0f2f6;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background .15s ease;
}

.table-hover tbody tr:hover {
    background: #fafaff;
}

.badge {
    border-radius: 99px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
}

.dropdown-menu {
    border: 1px solid var(--ui-border);
    padding: 7px;
}

.dropdown-item {
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 13px;
}

.dropdown-item:hover {
    color: var(--ui-brand);
    background: #f5f4ff;
}

@media (max-width: 767px) {
    .topbar .top-navbar .navbar-header {
        width: 64px;
    }

    .topbar .top-navbar .navbar-header .navbar-brand {
        padding: 18px 14px;
    }

    .top-search-bar {
        margin-left: 0;
    }

    .top-search-container {
        width: min(42vw, 220px);
    }

    .page-wrapper {
        margin-left: 0;
    }

    .container-fluid {
        padding: 18px 14px 30px;
    }

    .card-body {
        padding: 17px;
    }
}
