/* Minimalist dashboard layout: sidebar + main. Use on dashboard/account/plans/admin pages only. */

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

body.dashboard-layout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f6f8;
    min-height: 100vh;
    color: #1a1a2e;
}

.dashboard-app {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 240px;
    min-width: 240px;
    background: #fff;
    border-right: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.dashboard-sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-sidebar-brand a {
    color: #1a1a2e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-sidebar-brand a:hover {
    color: #FFD700;
}

.dashboard-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.dashboard-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #5f6368;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dashboard-sidebar-nav a:hover {
    background: #f1f3f4;
    color: #1a1a2e;
}

.dashboard-sidebar-nav a.active {
    background: #fff9e6;
    color: #1a1a2e;
    font-weight: 500;
}

.dashboard-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid #e8eaed;
}

.dashboard-sidebar-footer .btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #5f6368;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
}

.dashboard-sidebar-footer .btn-logout:hover {
    background: #fce8e6;
    color: #c5221f;
}

.dashboard-main {
    flex: 1;
    padding: 24px 32px;
    overflow-x: hidden;
}

.dashboard-main h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8eaed;
}

.dashboard-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

/* Top bar inside main (e.g. status badge, page title) */
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .dashboard-app {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
    }
    .dashboard-sidebar-brand {
        width: 100%;
        border-bottom: 1px solid #e8eaed;
    }
    .dashboard-sidebar-nav {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 12px;
    }
    .dashboard-sidebar-footer {
        border-top: none;
        padding: 8px 12px;
    }
    .dashboard-main {
        padding: 16px;
    }
}
