:root {
    --sidebar-width: 250px;
    --brand: #4f46e5;
    --brand-dark: #3730a3;
}

body {
    background-color: #f4f5f9;
}

#app-layout {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand) 100%);
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #fff;
    color: var(--brand-dark);
}

.main-content {
    min-width: 0;
}

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.badge-status-pending { background-color: #fef3c7; color: #92400e; }
.badge-status-sending { background-color: #dbeafe; color: #1e40af; }
.badge-status-sent,
.badge-status-completed { background-color: #d1fae5; color: #065f46; }
.badge-status-failed { background-color: #fee2e2; color: #991b1b; }
.badge-status-partial { background-color: #fef3c7; color: #92400e; }
.badge-status-delivered { background-color: #a7f3d0; color: #065f46; }

.page-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease-in-out;
        height: 100vh;
    }
    .sidebar.show {
        transform: translateX(0);
    }
}
