/* ============================================
   JustAndroid Dashboard - Premium Dark Mode
   Matches BrowserStack-style product hub
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.dashboard-body {
    background-color: #161b22;
    color: #e6edf3;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

/* ============ HEADER ============ */
.dashboard-header {
    background: #0d1117;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 24px;
    color: #10b981;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f0f6fc;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.header-nav .nav-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-nav .nav-link:hover {
    color: #e6edf3;
    background: rgba(255,255,255,0.06);
}

.header-nav .nav-link.active {
    color: #10b981;
    background: rgba(16,185,129,0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    border: 2px solid rgba(16,185,129,0.3);
    transition: border-color 0.2s ease;
}

.user-avatar:hover {
    border-color: #10b981;
}

/* ============ MAIN LAYOUT ============ */
.dashboard-main {
    min-height: calc(100vh - 60px);
}

.dashboard-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

/* ============ WELCOME SECTION ============ */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.welcome-sub {
    font-size: 0.95rem;
    color: #8b949e;
    font-weight: 400;
}

/* ============ PRODUCT SECTIONS ============ */
.product-section {
    margin-bottom: 40px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6e7681;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ============ FEATURED GRID (Top Row Cards) ============ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

/* ============ PRODUCT CARD ============ */
.product-card {
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,185,129,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    border-color: rgba(16,185,129,0.35);
    background: #2d333b;
    transform: translateY(-2px);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-body {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.875rem;
    color: #8b949e;
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #58a6ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.product-card:hover .product-link {
    color: #10b981;
    gap: 10px;
}

.product-illustration {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(88,166,255,0.25);
    font-size: 36px;
    flex-shrink: 0;
    margin-left: 16px;
    transition: color 0.2s ease;
}

.product-card:hover .product-illustration {
    color: rgba(16,185,129,0.3);
}

/* ============ SECTION DIVIDER ============ */
.section-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 40px 0;
}

/* ============ ALL PRODUCTS ============ */
.all-products-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.all-products-section {
    margin-bottom: 40px;
}

/* ============ COMPACT GRID ============ */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

/* ============ COMPACT CARD ============ */
.compact-card {
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    gap: 12px;
}

.compact-card:hover {
    border-color: rgba(16,185,129,0.35);
    background: #2d333b;
}

.compact-card-text {
    flex: 1;
    min-width: 0;
}

.compact-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-desc {
    font-size: 0.78rem;
    color: #8b949e;
    line-height: 1.4;
}

.compact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(88,166,255,0.3);
    font-size: 22px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.compact-card:hover .compact-icon {
    color: rgba(16,185,129,0.4);
}

/* ============ SKIP BAR ============ */
.skip-bar {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.skip-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b949e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.skip-link:hover {
    color: #10b981;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 28px 20px 60px;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .compact-grid {
        grid-template-columns: 1fr;
    }
    .welcome-title {
        font-size: 1.3rem;
    }
    .header-nav {
        display: none;
    }
}