:root {
    --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f4f7fb;
    color: #243447;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
div,
a,
li,
td,
th,
label,
button,
input,
select,
textarea,
.btn,
.badge,
.chip,
.card,
.nav-link,
.list-group-item,
.alert,
.table,
.form-control,
.custom-select,
.md-form .form-control,
.md-form label {
    font-family: var(--app-font-family) !important;
}

.auth-page {
    background: linear-gradient(135deg, #102542 0%, #213a63 50%, #2c7be5 100%);
    min-height: 100vh;
}

.auth-hero {
    background: radial-gradient(circle at top left, rgba(78, 115, 223, 0.65), rgba(16, 37, 66, 0.98));
    min-height: 100vh;
    position: relative;
}

.auth-hero .mask {
    min-height: 100vh;
}

.auth-hero .card {
    background: rgba(255, 255, 255, 0.94);
}

.auth-hero .md-form .form-control {
    color: #243447 !important;
}

.auth-hero .md-form label {
    color: #60748a !important;
}

.auth-highlights .chip {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.crm-shell__frame {
    display: flex;
    min-height: 100vh;
}

.crm-sidebar {
    width: 280px;
    background: #102542;
    color: #fff;
    padding: 1.5rem 0;
}

.crm-sidebar__brand {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

.crm-sidebar__brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c7be5, #5e72e4);
    margin-right: 0.85rem;
    font-weight: 700;
}

.crm-sidebar__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.crm-sidebar__subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.crm-sidebar__link {
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    border: 0;
    border-left: 3px solid transparent;
    padding: 0.9rem 1.5rem;
}

.crm-sidebar__link:hover,
.crm-sidebar__link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-left-color: #2c7be5;
}

.crm-shell__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.crm-footer {
    margin-top: auto;
}

.crm-metric {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8fbff, #edf4ff);
}

.crm-metric__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.crm-metric__label {
    margin-top: 0.35rem;
    color: #61768a;
}

.crm-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #edf2f7;
}

.crm-list-item:last-child {
    border-bottom: 0;
}

.crm-summary-tile {
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fbff;
    border: 1px solid #e7eef8;
}

@media (max-width: 992px) {
    .crm-shell__frame {
        flex-direction: column;
    }

    .crm-sidebar {
        width: 100%;
    }
}
