﻿:root {
    --bg: #f5f7fb;
    --panel: #fff;
    --ink: #202e42;
    --muted: #79869a;
    --line: #e5eaf1;
    --brand: #2865df;
    --brand-dark: #194cbb;
    --nav: #14253b;
    --good: #13885b;
    --bad: #d24a4a;
    --warn: #b77c21;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter,Segoe UI,Arial,sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    font-size: 29px;
    letter-spacing: -.7px;
    margin-bottom: 7px;
    font-weight: 700;
}

h2 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 0;
}

.fc-shell {
    display: flex;
    min-height: 100vh;
}

.fc-sidebar {
    flex: 0 0 242px;
    background: var(--nav);
    color: #eaf0ff;
    padding: 31px 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 37px;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.55px;
}

    .fc-brand em {
        font-style: normal;
        color: #88b4ff;
    }

.fc-brand-icon {
    background: #2865df;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.fc-nav-label {
    color: #7f91aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    padding: 0 14px 12px;
}

.fc-nav {
    display: grid;
    gap: 7px;
}

    .fc-nav a {
        display: block;
        padding: 13px 14px;
        border-radius: 9px;
        color: #d1dcf0;
        font-weight: 550;
    }

        .fc-nav a:hover, .fc-nav a:focus {
            background: #243b58;
            color: white;
        }

.fc-sidebar-bottom {
    color: #8ea2bd;
    margin-top: auto;
    padding: 30px 12px 0;
    font-size: 12px;
}

.fc-main {
    min-width: 0;
    flex: 1;
}

.fc-topbar {
    background: #fff;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    color: #66758b;
    font-size: 13px;
}

.fc-topbar-name {
    font-weight: 700;
    color: var(--ink);
}

.fc-content {
    max-width: 1530px;
    margin: 0 auto;
    padding: 36px 34px 70px;
}

.fc-pagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

    .fc-pagehead p {
        color: var(--muted);
        margin: 0;
        line-height: 1.5;
    }

    .fc-pagehead .fc-link {
        display: inline-block;
        margin-bottom: 16px;
    }

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.fc-btn-primary {
    background: var(--brand);
    color: #fff;
}

    .fc-btn-primary:hover {
        background: var(--brand-dark);
    }

.fc-btn-secondary {
    color: #344761;
    background: #fff;
    border-color: #d8e0eb;
}

    .fc-btn-secondary:hover {
        background: #f7f9fc;
    }

.fc-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.fc-stat {
    background: #fff;
    border: 1px solid var(--line);
    padding: 23px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 9px #19284804;
}

    .fc-stat small {
        display: block;
        color: #77859a;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .fc-stat strong {
        display: block;
        font-size: 26px;
        font-weight: 750;
        letter-spacing: -.8px;
    }

.fc-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 2px 10px #19284804;
    margin-bottom: 22px;
}

.fc-panelhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--line);
}

.fc-muted {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.fc-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

    .fc-table thead {
        background: #fafbfd;
    }

    .fc-table th {
        font-size: 11px;
        font-weight: 700;
        color: #8390a4;
        text-transform: uppercase;
        letter-spacing: .5px;
        padding: 15px 20px;
        white-space: nowrap;
    }

    .fc-table td {
        border-top: 1px solid #eef1f5;
        padding: 18px 20px;
        vertical-align: middle;
        white-space: nowrap;
    }

    .fc-table tbody tr:hover {
        background: #fafcff;
    }

    .fc-table td .fc-muted {
        margin-top: 4px;
    }

.fc-empty {
    text-align: center;
    color: var(--muted);
    padding: 35px !important;
}

.fc-link {
    color: var(--brand);
    font-weight: 650;
    white-space: nowrap;
}

    .fc-link:hover {
        text-decoration: underline;
    }

.fc-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 20px;
    padding: 6px 11px;
    color: #6c7788;
    background: #eef1f4;
    font-size: 11px;
    font-weight: 700;
}

.fc-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
}

.fc-status-success {
    background: #e4f6ee;
    color: #15895c;
}

.fc-status-danger {
    background: #fcecec;
    color: #ca4343;
}

.fc-status-warning {
    background: #fff4e4;
    color: #b47726;
}

.fc-form-panel {
    padding: 27px;
    max-width: 1000px;
}

.fc-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.fc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

    .fc-field label {
        font-size: 13px;
        font-weight: 650;
        color: #3b4960;
    }

    .fc-field small {
        color: var(--muted);
        font-size: 11px;
        line-height: 1.5;
    }

.fc-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    outline: 0;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

    .fc-input:focus {
        border-color: #5b8be9;
        box-shadow: 0 0 0 3px #347af113;
    }

    .fc-input[readonly] {
        background: #f5f7fa;
        color: #6f7a8c;
    }

textarea.fc-input {
    resize: vertical;
}

.fc-check {
    margin: 4px 0 24px;
    color: #43546e;
}

    .fc-check input {
        margin-right: 8px;
    }

.fc-form-actions {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    gap: 10px;
}

.fc-validation {
    color: #bc3434;
    background: #fff0f0;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 12px 20px;
}

    .fc-validation:empty {
        display: none;
    }

.fc-device-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
}

    .fc-device-status p {
        margin-bottom: 0;
    }

.fc-key-panel {
    background: #fff7e7;
    border: 1px solid #eed39a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
}

    .fc-key-panel p {
        color: #74654c;
        margin: 9px 0;
    }

    .fc-key-panel code {
        display: block;
        background: white;
        padding: 13px;
        overflow-wrap: anywhere;
        color: #8a5313;
        border-radius: 6px;
    }

.fc-success-note {
    color: var(--good);
    padding: 12px;
    background: #e8f8f0;
    border-radius: 8px;
}

@media(max-width:1080px) {
    .fc-sidebar {
        flex-basis: 205px
    }

    .fc-content {
        padding: 25px 20px
    }

    .fc-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:740px) {
    .fc-shell {
        display: block
    }

    .fc-sidebar {
        min-height: 0;
        padding: 14px;
        display: block
    }

    .fc-brand {
        padding: 5px 0 12px
    }

    .fc-nav-label, .fc-sidebar-bottom {
        display: none
    }

    .fc-nav {
        display: flex
    }

        .fc-nav a {
            padding: 10px
        }

    .fc-topbar {
        display: none
    }

    .fc-pagehead {
        align-items: flex-start;
        flex-direction: column
    }

    .fc-form-grid {
        grid-template-columns: 1fr
    }

    .fc-metrics {
        gap: 9px
    }

    .fc-stat {
        padding: 15px
    }

        .fc-stat strong {
            font-size: 21px
        }
}
