
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b0e14;
    --panel: #121721;
    --panel-light: #171e2a;
    --border: #252e3d;
    --text: #edf1f8;
    --muted: #8c98aa;
    --accent: #a3e635;
    --accent-dark: #85bd27;
    --warning: #f4bd55;
    --radius: 15px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, p {
    margin-top: 0;
}

h1, h2, .brand {
    font-family: "Space Grotesk", Arial, sans-serif;
}

h1 {
    margin-bottom: 0;
    font-size: 29px;
    letter-spacing: -1px;
}

h2 {
    margin-bottom: 6px;
    font-size: 19px;
    letter-spacing: -0.4px;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.muted, .section-header p, .stat-card p {
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: var(--accent);
    color: #10150b;
    font-family: "Space Grotesk", sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -2px;
}

.brand-mark span {
    color: #fff;
}

.brand-mark.small {
    width: 39px;
    height: 39px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 11px;
    font-size: 17px;
}

/* Login */

.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, #202d1a 0%, transparent 48%),
        var(--bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(18, 23, 33, 0.96);
    box-shadow: 0 25px 90px #0005;
}

.login-card > .brand-mark {
    margin-bottom: 25px;
}

.login-card .eyebrow,
.login-card h1,
.login-card > .muted {
    text-align: center;
}

.login-card h1 {
    margin-bottom: 7px;
    font-size: 31px;
}

.login-card > .muted {
    margin-bottom: 30px;
}

label {
    display: block;
    margin: 18px 0 8px;
    color: #d9dfeb;
    font-size: 12px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 13px 14px;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #0c1017;
    color: var(--text);
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--accent);
}

input::placeholder {
    color: #667184;
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #11160a;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.primary-button:hover {
    background: #b8f65b;
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

.alert {
    padding: 11px 13px;
    border: 1px solid #7e3838;
    border-radius: 8px;
    background: #321d22;
    color: #ffb4b4;
    font-size: 12px;
}

.login-footer {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

/* Dashboard layout */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 245px;
    padding: 27px 18px 20px;
    border-right: 1px solid var(--border);
    background: #0e121a;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 7px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand > span:last-child {
    line-height: 1.3;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.nav-heading {
    margin: 48px 10px 13px;
    color: #69758a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #9aa5b7;
    transition: 0.2s;
}

.nav-link > span {
    width: 20px;
    font-size: 17px;
    text-align: center;
}

.nav-link:hover {
    background: var(--panel);
    color: var(--text);
}

.nav-link.active {
    border-color: #35442b;
    background: #1d2919;
    color: var(--accent);
}

.sidebar-bottom {
    margin-top: auto;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 5px;
    border-top: 1px solid var(--border);
}

.avatar {
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #263321;
    color: var(--accent);
    font-weight: 700;
}

.admin-profile strong,
.admin-profile small {
    display: block;
}

.admin-profile strong {
    font-size: 12px;
}

.admin-profile small {
    color: var(--muted);
    font-size: 11px;
}

.logout-button {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: #b7c0cf;
    text-align: left;
}

.logout-button:hover {
    background: var(--panel-light);
    color: #fff;
}

.main-content {
    width: calc(100% - 245px);
    max-width: 1550px;
    margin-left: 245px;
    padding: 35px 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 29px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--panel);
    color: #c6cfdd;
    font-size: 11px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px #a3e63566;
}

/* Welcome panel */

.welcome-panel {
    position: relative;
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 32px 36px;
    border: 1px solid #34422c;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 80% 40%, #344727 0%, transparent 48%),
        linear-gradient(110deg, #192419, #151c19 70%, #20291b);
}

.eyebrow.light {
    color: var(--accent);
}

.welcome-panel h2 {
    margin: 9px 0 12px;
    font-size: clamp(24px, 3vw, 35px);
    line-height: 1.22;
    letter-spacing: -1.2px;
}

.welcome-panel p:last-child {
    margin-bottom: 0;
    color: #aab5a8;
    font-size: 12px;
}

.welcome-symbol {
    padding-right: 30px;
    color: #a3e63516;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(60px, 10vw, 130px);
    font-weight: 700;
    letter-spacing: -12px;
    user-select: none;
}

.welcome-symbol span {
    color: #a3e63565;
}

/* Stat cards */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.stat-card,
.content-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.stat-card {
    padding: 20px;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: #a8b3c5;
    font-size: 12px;
}

.stat-icon {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #35402c;
    border-radius: 9px;
    background: #202b1c;
    color: var(--accent);
    font-size: 17px;
}

.stat-card > strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    letter-spacing: -0.7px;
}

.stat-card > strong.text-warning {
    font-size: 18px;
}

.stat-card p {
    margin: 7px 0 0;
    font-size: 11px;
}

/* Content and follower table */

.content-card {
    margin-top: 22px;
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 17px;
}

.section-header p {
    margin: 0;
    font-size: 12px;
}

.coming-soon {
    padding: 6px 9px;
    border: 1px solid #54462c;
    border-radius: 6px;
    background: #302819;
    color: var(--warning);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.notice {
    display: flex;
    gap: 12px;
    margin-bottom: 23px;
    padding: 15px;
    border: 1px solid #35432b;
    border-radius: 9px;
    background: #1b2419;
}

.notice-icon {
    display: flex;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #34472a;
    color: var(--accent);
    font-weight: 700;
}

.notice strong {
    font-size: 12px;
}

.notice p {
    margin: 3px 0 0;
    color: #a8b6a3;
    font-size: 11px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: #78869a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

td {
    padding: 16px 14px;
    border-bottom: 1px solid #202735;
    color: #cbd3df;
    font-size: 12px;
}

.empty-state {
    padding: 40px 12px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-top: 10px;
    color: #d9e0eb;
    font-size: 13px;
}

.empty-state p {
    margin: 4px 0 0;
    font-size: 11px;
}

.empty-icon {
    color: #627044;
    font-size: 27px;
}

.badge {
    padding: 4px 8px;
    border-radius: 5px;
    background: #202c1b;
    color: var(--accent);
    font-size: 10px;
}

/* System status */

.system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.system-row:last-child {
    border-bottom: 0;
}

.system-row > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.system-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
}

.text-warning {
    color: var(--warning);
}

.page-footer {
    margin: 27px 0 4px;
    color: #69758a;
    font-size: 11px;
    text-align: center;
}

.page-footer span {
    margin: 0 5px;
    color: var(--accent);
}

/* Mobile layout */

@media (max-width: 1050px) {
    .main-content {
        padding: 28px 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-symbol {
        padding-right: 5px;
        font-size: 70px;
    }
}

@media (max-width: 700px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-heading,
    .sidebar-bottom {
        display: none;
    }

    .sidebar > .nav-link {
        display: inline-flex;
        margin-top: 14px;
        padding: 9px;
        font-size: 11px;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 23px 15px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        font-size: 25px;
    }

    .welcome-panel {
        min-height: 190px;
        padding: 23px 20px;
    }

    .welcome-symbol {
        display: none;
    }

    .content-card {
        padding: 17px;
    }

    .section-header {
        flex-direction: column;
    }

    .login-card {
        padding: 30px 23px;
    }
}
