* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background: #f4f7fc;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(180deg, #1b3a6a, #12284c);
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 34px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #1b3a6a;
    border-radius: 12px;
    background: #ffffff;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin: 15px 0 5px 12px;
    font-weight: 700;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #eef4ff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.side-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
}

.side-nav a:hover,
.side-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-email {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.logout-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.logout-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

.dashboard-main {
    padding: 28px;
}

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

.section-label {
    color: #1b3a6a;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topbar h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.notification-link {
    padding: 12px 18px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1b3a6a, #12284c);
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(27, 58, 106, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #f4f7fc;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #333333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card,
.panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(27, 58, 106, 0.08);
}

.stat-card {
    padding: 22px;
}

.stat-card p,
.empty-text,
.transaction-item p,
.activity-item p,
.notification-card p,
.panel-header span {
    color: #333333;
}

.stat-card h2 {
    margin-top: 8px;
    color: #1b3a6a;
    font-size: 30px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.quick-actions button {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1b3a6a, #12284c);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-actions button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(27, 58, 106, 0.22);
}

.content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.panel {
    padding: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-header a {
    color: #1b3a6a;
    font-weight: 800;
}

.transaction-list,
.activity-list,
.notifications-list {
    display: grid;
    gap: 14px;
}

.transaction-item,
.activity-item,
.notification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #f4f7fc;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1b3a6a;
    background: #f4f7fc;
    font-weight: 800;
}

.amount {
    font-weight: 800;
}

.amount.sent {
    color: #dc2626;
}

.amount.received,
.status {
    color: #16a34a;
}

.notifications-panel {
    max-width: 900px;
}

.notification-card {
    align-items: flex-start;
}

.status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        width: 260px;
        z-index: 20;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .menu-button {
        display: block;
    }

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

@media (max-width: 700px) {
    .dashboard-main {
        padding: 20px;
    }

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

    .notification-link,
    .quick-actions button {
        width: 100%;
        text-align: center;
    }

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

    .transaction-item,
    .activity-item,
    .notification-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
