* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    background: #111827;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    border-bottom: 1px solid #273244;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.logo-name {
    font-size: 18px;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.navigation {
    padding: 20px 12px;
}

.nav-item {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 14px;
}

.nav-item:hover {
    background: #1f2937;
    color: white;
}

.nav-item.active {
    background: #2563eb;
    color: white;
}

.nav-divider {
    height: 1px;
    background: #273244;
    margin: 18px 5px;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid #273244;
}

.paper-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.paper-status small {
    display: block;
    color: #9ca3af;
    margin-top: 3px;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
}

/* MAIN */

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 85px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
}

.topbar p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mode-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.bot-button {
    border: 1px solid #e5e7eb;
    background: white;
    padding: 8px 13px;
    border-radius: 7px;
    color: #6b7280;
}

/* CONTENT */

.content {
    padding: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.card-label {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 26px;
    font-weight: bold;
}

.card-sub {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.dashboard-section {
    margin-top: 22px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.empty-state {
    text-align: center;
    padding: 45px 20px;
    color: #6b7280;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 8px;
}

.footer {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .sidebar {
        width: 210px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .sidebar {
        display: none;
    }

    .topbar {
        height: auto;
        padding: 18px;
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .content {
        padding: 18px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}