/* TradeIntel Dealer Dashboard Styles - M3 */

/* ===== Mobile top bar ===== */
.mobile-topbar {
    background-color: #16213e;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ===== Mobile bottom nav ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #16213e;
    z-index: 1030;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.65rem;
    padding: 2px 12px;
    transition: color 0.15s;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 1px;
}

.mobile-nav-item.active {
    color: #198754;
}

.mobile-nav-item:hover {
    color: #198754;
}

/* Bottom padding for mobile to account for fixed bottom nav */
.pb-mobile {
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    .pb-mobile {
        padding-bottom: 0;
    }
}

/* ===== Cards and results ===== */
.result-card:hover,
.mover-card:hover {
    border-color: #198754 !important;
    transition: border-color 0.15s;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    background-color: rgba(25, 135, 84, 0.08) !important;
}

/* ===== Search input ===== */
.input-group-lg .form-control {
    font-size: 1rem;
}

/* ===== Freshness indicators ===== */
.badge i {
    vertical-align: middle;
}

/* ===== Desktop nav active state ===== */
.navbar .nav-link.active {
    color: #198754 !important;
    font-weight: 600;
}

/* ===== Mobile responsive tables ===== */
@media (max-width: 768px) {
    .table-responsive .table {
        font-size: 0.75rem;
    }

    .card-header h6 {
        font-size: 0.8rem;
    }

    .fs-4 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }
}

/* ===== PWA standalone mode ===== */
@media (display-mode: standalone) {
    .mobile-topbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* ===== Smooth transitions ===== */
.card {
    transition: border-color 0.15s ease;
}

/* ===== Search filter panel ===== */
.form-select-sm,
.form-control-sm {
    font-size: 0.8rem;
}

/* ===== Trade type badges ===== */
.badge {
    font-weight: 500;
}

/* ===== Tabular numbers for prices ===== */
.fw-bold {
    font-variant-numeric: tabular-nums;
}

/* ===== User select for invite codes ===== */
.user-select-all {
    user-select: all;
}

/* ===== Touch-friendly tap targets ===== */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .list-group-item {
        padding: 12px 16px;
    }
}
