/* Mobile Account Tabs CSS */

/* Only apply these styles on mobile devices */
@media (max-width: 767px) {
    /* Mobile Breadcrumb */
    .mobile-account-breadcrumb {
        background-color: #f8f9fa;
        padding: 10px 15px;
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-account-breadcrumb .breadcrumb-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .mobile-account-breadcrumb .breadcrumb-links {
        font-size: 12px;
        color: #666;
    }

    .mobile-account-breadcrumb .breadcrumb-links a {
        color: #666;
        text-decoration: none;
    }

    .mobile-account-breadcrumb .breadcrumb-separator {
        margin: 0 5px;
        font-size: 10px;
    }

    .mobile-account-breadcrumb .current-page {
        color: #4CAF50;
    }
    /* Mobile Account Container */
    .mobile-account-container {
        background-color: #f8f9fa;
        padding-bottom: 70px; /* Space for bottom navigation */
    }

    /* Profile Header */
    .mobile-account-profile {
        background-color: #fff;
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }

    .mobile-account-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto 10px;
        border: 2px solid #f1f1f1;
    }

    .mobile-account-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-account-name {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .mobile-account-email {
        font-size: 14px;
        color: #666;
    }

    /* Tab Navigation */
    .mobile-account-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
        padding: 0;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
    }

    /* Single row tabs with horizontal scrolling */
    .mobile-account-tabs.single-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0;
        position: relative;
    }

    /* Add subtle gradient indicators for scrolling */
    .mobile-account-tabs.single-row::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
        pointer-events: none;
    }

    .mobile-account-tabs.single-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 10px;
        background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
        pointer-events: none;
        z-index: 1;
    }

    .mobile-account-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .mobile-account-tabs .nav-link {
        padding: 12px 15px;
        color: #333;
        font-weight: 500;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        flex-shrink: 0;
        text-align: center;
        font-size: 14px;
    }

    /* Make tabs more compact in single row */
    .mobile-account-tabs.single-row .nav-link {
        padding: 12px 18px;
        min-width: auto;
    }

    .mobile-account-tabs .nav-link.active {
        color: #4CAF50;
        border-bottom-color: #4CAF50;
        font-weight: 600;
    }

    /* Tab Content */
    .mobile-tab-content-container {
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .mobile-tab-content {
        display: none;
    }

    .mobile-tab-content.active {
        display: block;
    }

    /* Welcome Section */
    .welcome-section h2 {
        font-size: 20px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
    }

    .welcome-section .welcome-dot {
        width: 8px;
        height: 8px;
        background-color: #FF0000;
        border-radius: 50%;
        display: inline-block;
        margin-bottom: 15px;
    }

    .welcome-section p {
        font-size: 14px;
        color: #666;
        margin-top: 10px;
    }

    /* Address Cards */
    .address-card {
        border: 1px solid #eee;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .address-card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    /* Orders Table Container */
    .orders-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin-bottom: 15px;
        position: relative;
        padding-bottom: 5px;
        scrollbar-width: thin; /* Firefox */
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    /* Style scrollbar for Chrome, Safari and Opera */
    .orders-table-container::-webkit-scrollbar {
        height: 4px;
        background-color: #f1f1f1;
    }

    .orders-table-container::-webkit-scrollbar-thumb {
        background-color: #4CAF50;
        border-radius: 4px;
    }

    .orders-table-container::-webkit-scrollbar-track {
        background-color: #f1f1f1;
        border-radius: 4px;
    }

    /* Orders Table */
    .orders-table {
        width: 100%;
        min-width: 550px; /* Ensure table is wider than viewport to enable scrolling */
        border-collapse: collapse;
        table-layout: fixed;
        background-color: #fff;
        margin-bottom: 0;
    }

    /* Table Headers */
    .orders-table th {
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 11px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid #eee;
        font-weight: 600;
        color: #666;
        background-color: #f8f9fa;
        text-transform: uppercase;
    }

    /* Table Cells */
    .orders-table td {
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 12px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid #eee;
    }

    /* Table Row Hover */
    .orders-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    /* Column Widths */
    .orders-table th.col-sn,
    .orders-table td.col-sn {
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        text-align: center;
    }

    .orders-table th.col-order-id,
    .orders-table td.col-order-id {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }

    .orders-table th.col-product,
    .orders-table td.col-product {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }

    .orders-table th.col-price,
    .orders-table td.col-price {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        text-align: right;
    }

    .orders-table th.col-status,
    .orders-table td.col-status {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }

    .orders-table th.col-action,
    .orders-table td.col-action {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        text-align: center;
    }

    /* Product Image */
    .orders-table .product-image {
        position: relative;
        padding-left: 20px;
        display: flex;
        align-items: center;
    }

    .orders-table .product-image img {
        width: 20px;
        height: 20px;
        border-radius: 3px;
        object-fit: cover;
        vertical-align: middle;
        margin-right: 6px;
        display: inline-block;
    }

    .orders-table .product-image::before {
        content: '';
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #F44336; /* Red */
    }

    /* Different colors for different rows */
    .orders-table tr:nth-child(2) .product-image::before {
        background-color: #FF9800; /* Orange */
    }

    .orders-table tr:nth-child(3) .product-image::before {
        background-color: #FFEB3B; /* Yellow */
    }

    .orders-table tr:nth-child(4) .product-image::before {
        background-color: #4CAF50; /* Green */
    }

    /* Order Status */
    .orders-table .order-status {
        display: inline-block;
        padding: 2px 5px;
        border-radius: 3px;
        background-color: #e9f7ef;
        color: #4CAF50;
        font-size: 9px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* View Button */
    .orders-table .view-order a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 3px;
        background-color: #f8f9fa;
        color: #555;
        transition: all 0.3s ease;
    }

    .orders-table .view-order a:hover {
        background-color: #4CAF50;
        color: #fff;
    }

    /* Replace eye icon with chevron */
    .orders-table .view-order a .eye-icon {
        display: none;
    }

    .orders-table .view-order a::after {
        content: '›';
        font-size: 18px;
        font-weight: bold;
        line-height: 1;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #666;
        font-size: 11px;
        text-decoration: none;
        min-width: 0;
        flex: 1;
        padding: 0 2px;
    }

    .mobile-bottom-nav a i {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .mobile-bottom-nav a span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .mobile-bottom-nav a.active {
        color: #4CAF50;
    }
}
