:root {
    --app-width: 1440px;
    --brand-1: #1438a6;
    --brand-2: #7c22ce;
    --brand-3: #00a5d8;
    --soft-bg: #f3f7ff;

    /*
    |--------------------------------------------------------------------------
    | Global Font Reduction
    |--------------------------------------------------------------------------
    | Change this one value if you want the whole application smaller/larger.
    | Previous browser default is usually 16px. This uses 14px.
    */
    font-size: 14px;
}

html,
body {
    min-height: 100%;
}

html {
    font-size: 14px;
}

body {
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 45%, #f4f0ff 100%);
    color: #122033;
    font-size: .9rem;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| General Text Size Control
|--------------------------------------------------------------------------
*/
h1,
.h1 {
    font-size: 1.65rem !important;
}

h2,
.h2 {
    font-size: 1.45rem !important;
}

h3,
.h3 {
    font-size: 1.25rem !important;
}

h4,
.h4 {
    font-size: 1.1rem !important;
}

h5,
.h5 {
    font-size: 1rem !important;
}

h6,
.h6 {
    font-size: .9rem !important;
}

p,
label,
.form-label,
.card-body,
.dropdown-item,
.list-group-item,
.alert,
.badge,
.btn,
.form-control,
.form-select,
.input-group-text,
.table,
.table td,
.table th {
    font-size: .86rem;
}

.small,
small {
    font-size: .74rem !important;
}

.fw-semibold {
    font-weight: 700 !important;
}

.app-container {
    max-width: var(--app-width);
}

/*
|--------------------------------------------------------------------------
| Navbar / Header
|--------------------------------------------------------------------------
*/
.app-navbar {
    background: linear-gradient(90deg, #071b63, #0d6efd, #7c22ce, #0aa4d8);
    box-shadow: 0 10px 30px rgba(13, 110, 253, .22);
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .18);
    font-size: .9rem;
}

.navbar-brand {
    font-size: .95rem !important;
}

.navbar .nav-link {
    border-radius: 999px;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
    font-weight: 600;
    opacity: .9;
    font-size: .82rem !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff !important;
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.user-chip {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .38rem .65rem;
    border-radius: 999px;
    font-size: .78rem !important;
}

/*
|--------------------------------------------------------------------------
| Left Sidebar Font Overrides
|--------------------------------------------------------------------------
*/
.app-sidebar,
.app-sidebar *,
.mobile-topbar,
.mobile-topbar * {
    font-size: .84rem !important;
}

.app-sidebar .brand-title {
    font-size: .9rem !important;
}

.app-sidebar .brand-subtitle {
    font-size: .68rem !important;
}

.app-sidebar-section-label {
    font-size: .66rem !important;
}

.app-sidebar-link {
    font-size: .82rem !important;
    min-height: 40px !important;
    padding: .62rem .72rem !important;
}

.app-sidebar-link i {
    font-size: .9rem !important;
}

.user-name {
    font-size: .82rem !important;
}

.user-role {
    font-size: .66rem !important;
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/
.app-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 33, 66, .08);
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(15, 33, 66, .08);
    font-size: .86rem;
}

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

.card-text {
    font-size: .84rem;
}

/*
|--------------------------------------------------------------------------
| Hero Section
|--------------------------------------------------------------------------
*/
.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(120deg, #071b63, #0d6efd, #7c22ce, #00a5d8, #0d6efd);
    background-size: 300% 300%;
    animation: rainbowFlow 12s ease infinite;
    box-shadow: 0 24px 60px rgba(13, 110, 253, .26);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .26), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .20), transparent 28%),
        radial-gradient(circle at 55% 90%, rgba(255, 255, 255, .22), transparent 30%);
    animation: glowMove 9s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 1.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-content h1,
.hero-content .h1,
.hero-content h2,
.hero-content .h2,
.hero-content h3,
.hero-content .h3 {
    font-size: 1.35rem !important;
}

.hero-content p {
    font-size: .84rem;
}

.hero-chip {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .26);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: .65rem .82rem;
    font-weight: 700;
    white-space: nowrap;
    font-size: .82rem;
}

/*
|--------------------------------------------------------------------------
| Dashboard Metrics
|--------------------------------------------------------------------------
*/
.metric-card {
    height: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    box-shadow: 0 12px 32px rgba(15, 33, 66, .08);
}

.metric-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.08rem;
}

.metric-label {
    color: #667085;
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.metric-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.05;
}

/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/
.table {
    margin-bottom: 0;
}

.table th {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
    white-space: nowrap;
    font-weight: 800;
}

.table td {
    vertical-align: middle;
    font-size: .82rem;
}

.table .btn-sm {
    font-size: .72rem;
}

/*
|--------------------------------------------------------------------------
| Buttons / Forms
|--------------------------------------------------------------------------
*/
.btn {
    border-radius: 11px;
    font-weight: 700;
    font-size: .82rem;
    padding: .45rem .72rem;
}

.btn-sm {
    font-size: .72rem;
    padding: .28rem .5rem;
    border-radius: 9px;
}

.btn-lg {
    font-size: .9rem;
    padding: .58rem .95rem;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 11px;
    font-size: .84rem;
    padding: .45rem .68rem;
}

.form-label {
    margin-bottom: .32rem;
    font-size: .8rem;
}

.input-group .form-control,
.input-group .input-group-text,
.input-group .btn {
    border-radius: 0;
}

.input-group .input-group-text:first-child {
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
}

.input-group .btn:last-child {
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
}

/*
|--------------------------------------------------------------------------
| Wireless Device Checkboxes
|--------------------------------------------------------------------------
*/
.device-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.device-check {
    cursor: pointer;
    border: 1px solid #d0d7e2;
    border-radius: 14px;
    padding: .62rem .8rem;
    background: #fff;
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .82rem !important;
    box-shadow: 0 5px 14px rgba(15, 33, 66, .05);
}

.device-check input {
    width: 15px;
    height: 15px;
}

.device-detail-card {
    animation: fadeIn .2s ease-in;
}

/*
|--------------------------------------------------------------------------
| Alerts / Badges
|--------------------------------------------------------------------------
*/
.alert {
    border-radius: 14px;
    padding: .75rem .9rem;
}

.badge {
    font-size: .68rem;
    font-weight: 800;
    padding: .34em .55em;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/
.app-footer {
    background: linear-gradient(90deg, #071b63, #0d6efd, #7c22ce);
    margin-top: 2rem;
}

.app-footer,
.app-footer * {
    font-size: .76rem !important;
}

.app-footer .footer-title {
    font-size: .86rem !important;
}

.app-footer .footer-subtitle,
.app-footer .footer-credit,
.app-footer .footer-pill,
.app-footer .footer-user-chip {
    font-size: .72rem !important;
}

/*
|--------------------------------------------------------------------------
| Login Page
|--------------------------------------------------------------------------
*/
.login-page {
    min-height: 100vh;
    background: linear-gradient(120deg, #071b63, #0d6efd, #7c22ce, #00a5d8);
    background-size: 300% 300%;
    animation: rainbowFlow 12s ease infinite;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 390px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .95);
    padding: 1.55rem;
    backdrop-filter: blur(18px);
    font-size: .84rem;
}

.login-card h1,
.login-card h2,
.login-card h3,
.login-card .h1,
.login-card .h2,
.login-card .h3 {
    font-size: 1.18rem !important;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #7c22ce);
    box-shadow: 0 16px 32px rgba(13, 110, 253, .25);
}

/*
|--------------------------------------------------------------------------
| Page-Specific Common Overrides
|--------------------------------------------------------------------------
*/
.owner-page-hero h1,
.wireless-form-hero h1,
.owner-page-hero .h1,
.wireless-form-hero .h1,
.owner-page-hero .h2,
.wireless-form-hero .h2,
.owner-page-hero .h3,
.wireless-form-hero .h3 {
    font-size: 1.35rem !important;
}

.owner-page-hero p,
.wireless-form-hero p {
    font-size: .84rem !important;
}

.owner-section-title,
.owner-name,
.footer-title,
.device-detail-title {
    font-size: .88rem !important;
}

.owner-section-description,
.owner-notes,
.owner-contact-line,
.owner-mini-stat,
.office-order-badge,
.department-count-badge {
    font-size: .72rem !important;
}

.owner-stat-number {
    font-size: 1.35rem !important;
}

/*
|--------------------------------------------------------------------------
| Animations
|--------------------------------------------------------------------------
*/
@keyframes rainbowFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowMove {
    from {
        transform: translateX(-20px) rotate(0deg);
    }

    to {
        transform: translateX(20px) rotate(8deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/
@media (max-width: 992px) {
    html {
        font-size: 13.5px;
    }

    body {
        font-size: .88rem;
    }

    .metric-value {
        font-size: 1.42rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .hero-chip {
        white-space: normal;
    }

    .metric-value {
        font-size: 1.35rem;
    }

    .table th {
        font-size: .64rem;
    }

    .table td {
        font-size: .78rem;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 12.75px;
    }

    .btn,
    .form-control,
    .form-select,
    .input-group-text {
        font-size: .8rem;
    }

    .device-check {
        width: 100%;
        justify-content: flex-start;
    }
}
``