body.modern-theme {
    background: #f3f6fb;
    color: #263248;
    font-family: "Segoe UI", Arial, sans-serif;
}

.modern-theme a {
    color: #2563eb;
    transition: color 160ms ease;
}

.modern-theme a:hover,
.modern-theme a:focus {
    color: #1d4ed8;
}

.modern-theme .header {
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(27, 44, 75, 0.08);
}

.modern-theme .sidebar {
    width: 190px;
    background: #17243b;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.12);
}

.modern-theme .sidebar .logo {
    width: 190px;
    min-height: 58px;
    padding: 9px 0;
    background: #17243b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-theme .sidebar .logo a {
    color: #e4e9f2;
    text-decoration: none;
}

.modern-theme .sidebar .nano-content > ul > li.label {
    padding: 8px 18px 4px;
    color: #8795ad;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 20px;
    text-transform: uppercase;
}

.modern-theme .sidebar .nano-content > ul > li > a {
    margin: 3px 9px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #303a5a;
    color: #d3dbea;
    font-size: 12px;
    line-height: 22px;
}

    .modern-theme .sidebar .nano-content > ul > li > a i {
        width: 1.5em;
        margin-right: 5px;
        margin-left: 6px;
        color: #9eacc5;
        font-size: 14px;
    }

.modern-theme .sidebar .nano-content > ul > li > a:hover,
.modern-theme .sidebar .nano-content > ul > li:hover > a,
.modern-theme .sidebar .nano-content > ul > li.open > a {
    background: #3a4568;
    color: #ffffff;
}

.modern-theme .sidebar .nano-content > ul > li.active > a {
    background: #263d61;
    color: #ffffff;
}

.modern-theme .sidebar .nano-content > ul > li.active > a::before {
    width: 3px;
    border-radius: 6px 0 0 6px;
    background: #14b8e6;
}

.modern-theme .sidebar .nano-content > ul > li > ul {
    margin: 0 9px 4px;
    border-radius: 6px;
    background: #202d46 !important;
}

.modern-theme .sidebar .nano-content > ul > li > ul > li > a {
    margin: 1px 0;
    padding: 6px 10px 6px 28px;
    border-radius: 5px;
    background: transparent;
    color: #b9c5d8;
    font-size: 12px;
    line-height: 20px;
}

.modern-theme .sidebar .nano-content > ul > li > ul > li > a:hover,
.modern-theme .sidebar .nano-content > ul > li > ul > li.active > a {
    background: #303d5c;
    color: #ffffff;
}

.modern-theme .sidebar .nano-content > ul > li > a .sidebar-collapse-icon {
    color: #aab8cf;
}

.modern-theme .sidebar .nano-content > ul > li > a .badge {
    top: 8px;
    right: 12px;
}

.modern-theme .header {
    margin-left: 190px;
}

.modern-theme .sidebar.sidebar-shrink ~ .content-wrap {
    margin-left: 190px;
}

.modern-theme.sidebar-hide .sidebar {
    left: -190px;
}

.modern-theme.sidebar-hide .sidebar.sidebar-hide-to-small {
    left: 0;
    width: 60px;
}

.modern-theme.sidebar-hide .sidebar.sidebar-hide-to-small .logo {
    width: 60px;
    min-width: 60px;
    min-height: 58px;
    padding: 9px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-theme.sidebar-hide .sidebar.sidebar-hide-to-small .logo span {
    display: none;
}

.modern-theme.sidebar-hide .sidebar.sidebar-shrink ~ .header {
    margin-left: 0;
}

.modern-theme.sidebar-hide .sidebar.sidebar-shrink.sidebar-hide-to-small ~ .header {
    margin-left: 60px;
}

.modern-theme.sidebar-hide .sidebar.sidebar-shrink ~ .content-wrap {
    margin-left: 0;
}

.modern-theme.sidebar-hide .sidebar.sidebar-shrink.sidebar-hide-to-small ~ .content-wrap {
    margin-left: 60px;
}

.modern-theme.sidebar-hide .header .float-left {
    width: 60px;
}

.modern-theme .header .hamburger.sidebar-toggle {
    box-sizing: border-box;
    width: 37px;
    min-width: 37px;
    max-width: 37px;
}

.modern-theme .content-wrap,
.modern-theme .main {
    background: transparent;
}

.modern-theme .main .page-header {
    margin-top: 20px;
}

.modern-theme .main .page-header h1 {
    color: #1d2b43;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.modern-theme .main .page-header .breadcrumb {
    color: #718096;
}

.modern-theme .card {
    background: #ffffff;
    border: 1px solid #e4eaf3;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(27, 44, 75, 0.06);
}

.modern-theme .card h2,
.modern-theme .card h3,
.modern-theme .card h4 {
    color: #1d2b43;
}

.modern-theme .form-control,
.modern-theme select.form-control {
    background-color: #ffffff;
    border: 1px solid #d6deea;
    border-radius: 8px;
    color: #263248;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.modern-theme .form-control:focus,
.modern-theme .form-control.active {
    border-color: #4f83f1;
    box-shadow: 0 0 0 3px rgba(79, 131, 241, 0.15);
    outline: 0;
}

.modern-theme .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: filter 160ms ease, transform 160ms ease;
}

.modern-theme .btn:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.modern-theme .btn-flat {
    border-radius: 8px;
}

.modern-theme .table,
.modern-theme table {
    color: #334155;
}

.modern-theme .table th,
.modern-theme .table td,
.modern-theme table th,
.modern-theme table td {
    border-color: #e7edf5;
}

.modern-theme .devices-data-table tbody tr:hover {
    background: #f5f8ff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.modern-theme .dropdown-menu {
    border: 1px solid #e4eaf3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(27, 44, 75, 0.12);
}

.modern-theme input.apple-switch:checked {
    border-color: #2563eb;
    box-shadow: inset 20px 0 0 0 #2563eb;
}

.modern-theme .modern-login-page {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 48px 16px;
}

.modern-theme .modern-login-panel {
    width: min(440px, 100%);
    min-height: 0 !important;
    margin: 0;
    padding: 36px 32px;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(27, 44, 75, 0.1);
}

.modern-theme .modern-login-card {
    width: 100%;
    max-width: 360px;
}

.modern-theme .modern-login-card .feature-icon {
    display: none;
}

.modern-theme .modern-login-card img {
    width: 76px;
    height: 76px;
    border: 3px solid #eaf0fb;
    border-radius: 50%;
    object-fit: cover;
}

.modern-theme .modern-login-card h4 {
    margin: 20px 0 10px !important;
    color: #1d2b43;
    font-size: 22px;
    font-weight: 650;
}

.modern-theme .modern-login-card p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.modern-theme .modern-login-card .subscribe .form-control {
    height: 48px;
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 8px;
}

.modern-theme .modern-login-card .btn {
    width: 100%;
    margin-top: 12px !important;
    border-radius: 8px;
    font-size: 14px;
    text-transform: none;
}

@media (max-width: 575px) {
    .modern-theme .modern-login-page {
        padding: 28px 12px;
    }

    .modern-theme .modern-login-panel {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modern-theme *,
    .modern-theme *::before,
    .modern-theme *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
