:root {
    --sidebar-w: 230px;
    --wa-green: #25D366;
    --wa-dark: #128C7E;
}

body {
    background: #f4f6f8;
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #1a1f2e;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    padding: 20px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-brand .logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--wa-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.sidebar-brand span {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.sidebar-brand small {
    color: #8892a4;
    font-size: 11px;
    display: block;
    margin-top: 1px;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.nav-label {
    color: #4e5a6e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 18px 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8892a4;
    padding: 9px 18px;
    text-decoration: none;
    border-radius: 0;
    transition: all .15s;
    font-size: 13.5px;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(37, 211, 102, .12);
    border-left: 3px solid var(--wa-green);
    padding-left: 15px;
}

.sidebar-nav a i {
    font-size: 16px;
}

/* Main */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e9ef;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h1 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #1a1f2e;
}

.content {
    padding: 24px;
}

/* Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e9ef;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.stat-card .label {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.stat-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Table card */
.table-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9ef;
    overflow: hidden;
}

.table-card .card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f5;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-card .table {
    margin: 0;
}

.table-card .table th {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #f9fafb;
    border-bottom: 1px solid #e5e9ef;
}

.table-card .table td {
    vertical-align: middle;
}

/* Form card */
.form-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9ef;
    padding: 24px;
}

.form-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Log */
.log-entry {
    font-family: monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.log-info {
    background: #f0fdf4;
    color: #166534;
}

.log-warn {
    background: #fffbeb;
    color: #92400e;
}

.log-error {
    background: #fef2f2;
    color: #991b1b;
}

.btn-wa {
    background: var(--wa-green);
    color: #fff;
    border: none;
}

.btn-wa:hover {
    background: var(--wa-dark);
    color: #fff;
}