body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #e5edf6 0%, #f8fafc 100%);
    color: #222;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: rgba(36, 56, 99, 0.95);
    color: #fff;
    box-shadow: 2px 0 16px rgba(36, 56, 99, 0.08);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem 1rem;
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    border: 2px solid #2563eb;
}

.sidebar h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.sidebar nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: #2563eb;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0 2rem 2rem 2rem;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0 1rem 0;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2563eb;
    cursor: pointer;
    margin-right: 1rem;
}

.welcome {
    font-size: 1.3rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notif-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2563eb;
    position: relative;
    cursor: pointer;
}

.notif-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(36, 56, 99, 0.08);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: #2563eb;
    background: #e5edf6;
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(36, 56, 99, 0.08);
}

.stat-card.clients .stat-icon {
    color: #10b981;
}

.stat-card.invoices .stat-icon {
    color: #f59e0b;
}

.stat-card.revenue .stat-icon {
    color: #2563eb;
}

.stat-card.outstanding .stat-icon {
    color: #ef4444;
}

.stat-info h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.stat-info p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 1rem;
}

.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(36, 56, 99, 0.08);
    padding: 2rem 1.5rem;
    margin-bottom: 0;
}

.chart-card h4 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.activity-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fab {
    position: fixed;
    right: 2.5rem;
    bottom: 2.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(36, 56, 99, 0.18);
    cursor: pointer;
    z-index: 200;
    transition: box-shadow 0.2s;
}

.fab:hover {
    box-shadow: 0 12px 40px rgba(36, 56, 99, 0.25);
}

.pinned-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(36, 56, 99, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #10b981;
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
    }

    .sidebar-header {
        padding: 1rem;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .fab {
        right: 1rem;
        bottom: 1rem;
    }

    .pinned-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}