/* ============================================================
   DASHBOARD SHELL
   Shared across: user.html, user-products.html, orders.html,
   settings.html, notifications.html, payout.html
   ============================================================ */

.dashboard-layout {
    max-width: 1450px;
    margin: 30px auto 60px auto;
    padding: 0px 30px;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 24px;
}

/* -------------------- SIDEBAR -------------------- */

.dashboard-sidebar {
    position: sticky;
    top: 110px;
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-height: 420px;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9a9a9a;
    padding: 0px 10px;
    margin-bottom: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    padding: 9px 10px;
    border-radius: 10px;
    color: #333333;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
    background-color: #e6e6e6;
}

.sidebar-link.active {
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
}

.sidebar-support {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-color: #00432d;
    color: #ffffff !important;
    border-radius: 15px;
    padding: 14px 16px;
    font-weight: 600;
}

.sidebar-support .sidebar-label {
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
    margin-bottom: 0;
}

.sidebar-support:hover {
    background-color: #012c1e;
}

/* -------------------- CONTENT CARD -------------------- */

.dashboard-content {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 40px;
    min-height: 420px;
}

.dashboard-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.dashboard-content-header h1 {
    margin: 0;
}

.dashboard-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 10px 18px;
    min-width: 240px;
}

.dashboard-search-form input {
    border: none;
    outline: none;
    background: transparent;
    flex-grow: 1;
    font-size: 0.95em;
}

.dashboard-search-form button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
}

/* -------------------- BADGES (extensible) -------------------- */

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff;
    background: var(--badge-color, #444444);
}

.badge-chip .material-symbols-outlined {
    font-size: 18px;
}

.badges-empty {
    color: #9a9a9a;
    text-align: center;
    padding: 30px 0px;
}

/* -------------------- FEATURED PRODUCTS (story style) -------------------- */

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.featured-count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #9a9a9a;
    text-transform: uppercase;
}

.featured-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: wrap;
}

.featured-strip::-webkit-scrollbar {
    height: 6px;
}

.featured-strip::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.featured-story {
    flex-shrink: 0;
    width: 72px;
    text-align: center;
}

.featured-story-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, rgb(255, 157, 0), #d5ad5a, #217f3d);
    cursor: pointer;
}

.featured-story-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: block;
}

.featured-story-add {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px dashed #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    color: #999999;
    background-color: #ffffff;
}

.featured-story-add:hover {
    background-color: #ededed;
    border-color: #999999;
}

.featured-story-name {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #555555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------- MOBILE BOTTOM TAB BAR -------------------- */

.dashboard-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-between;
}

.dashboard-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10.5px;
    color: #9a9a9a;
    padding: 4px 2px;
    border-radius: 10px;
}

.dashboard-tabbar a .material-symbols-outlined {
    font-size: 22px;
}

.dashboard-tabbar a.active {
    color: #00432d;
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding: 0px 30px;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-tabbar {
        display: flex;
    }

    .dashboard-content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-search-form {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .dashboard-layout {
        padding: 0px 30px;
    }

    .dashboard-content {
        padding: 18px;
        border-radius: 16px;
    }
}