/* wwwroot/css/app.css */

/* Add these styles to your existing CSS file */

/* Onboarding Styles */
.onboarding-container {
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    max-width: 414px;
    margin: 0 auto;
}

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 24px 24px;
    text-align: center;
}

.character-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.character-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-figure {
    position: relative;
    z-index: 2;
}

.person-head {
    width: 60px;
    height: 60px;
    background: #8b5a3c;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.person-body {
    width: 80px;
    height: 100px;
    background: #e5e5e5;
    border-radius: 40px 40px 20px 20px;
    margin: 0 auto;
    position: relative;
}

.person-phone {
    width: 20px;
    height: 35px;
    background: #4caf50;
    border-radius: 4px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.price-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.price-bubble {
    position: absolute;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

    .price-bubble.green {
        background: #4caf50;
        top: 40px;
        left: -40px;
    }

    .price-bubble.purple {
        background: #9c27b0;
        top: 30px;
        right: -40px;
    }

    .price-bubble.blue {
        background: #2196f3;
        bottom: 80px;
        left: -30px;
    }

    .price-bubble.yellow {
        background: #ffc107;
        bottom: 60px;
        right: -30px;
        color: #333;
    }

.onboarding-text {
    margin: 40px 0;
}

    .onboarding-text h2 {
        font-size: 24px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

    .onboarding-text p {
        font-size: 16px;
        color: #666;
        line-height: 1.4;
    }

.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
}

    .dot.active {
        background: #FFD700;
    }

.next-btn {
    width: 100%;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.2s ease;
}

    .next-btn:hover {
        background: #ffed4e;
        transform: translateY(-1px);
    }

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === APP CONTAINER === */
/*.app-container {
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
*/
/* Full width on larger screens */
/*@media (min-width: 768px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
}*/

/* === STATUS BAR === */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: end;
}

.signal-bar {
    width: 3px;
    height: 8px;
    background: #999;
    border-radius: 1px;
}

    .signal-bar.full {
        height: 12px;
        background: #333;
    }

/* === HEADER === */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: #FFD700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.logo-text {
    color: #333;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: #333;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.notification-badge,
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    display: flex;
    background: white;
    border-top: 1px solid #f0f0f0;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .nav-item.active {
        color: #FFD700;
    }

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    position: relative;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* === PAGE CONTENT === */
.page-content {
    padding-bottom: 0; /* Remove default padding */
}

/* Add padding only to pages that need it */
.needs-bottom-padding {
    padding-bottom: 80px;
}

/* Add this to your wwwroot/css/app.css */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFD700;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    max-width: 414px;
    margin: 0 auto;
}

.splash-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bid-logo {
    text-align: center;
}

.bid-text {
    font-size: 64px;
    font-weight: 900;
    color: #000;
    letter-spacing: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* === HOME PAGE === */
.home-page {
    padding: 0 20px;
}

.delivery-section {
    padding: 40px 0;
    text-align: center;
}

.delivery-visual {
    margin-bottom: 24px;
}

.delivery-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.clock-face {
    width: 60px;
    height: 60px;
    border: 3px solid #333;
    border-radius: 50%;
    position: relative;
    background: white;
}

.clock-hand {
    position: absolute;
    background: #333;
    transform-origin: bottom center;
    left: 50%;
    bottom: 50%;
}

.hour-hand {
    width: 3px;
    height: 20px;
    margin-left: -1.5px;
    transform: rotate(30deg);
}

.minute-hand {
    width: 2px;
    height: 25px;
    margin-left: -1px;
    transform: rotate(180deg);
}

.delivery-path {
    position: absolute;
    top: 30px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dotted-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #666 50%, transparent 50%);
    background-size: 8px 2px;
    background-repeat: repeat-x;
}

.truck-icon,
.location-pin {
    font-size: 24px;
}

.delivery-info {
    margin-bottom: 20px;
}

.delivery-time {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.delivery-text {
    color: #666;
    font-size: 14px;
}

.progress-bar {
    width: 100px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #FFD700;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === AUTH SECTION === */
.auth-section {
    padding: 40px 0;
    text-align: center;
}

.google-signin-btn {
    width: 100%;
    padding: 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

    .google-signin-btn:hover {
        background: #f8f9fa;
        border-color: #bbb;
    }

.google-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.signup-text {
    color: #666;
    font-size: 14px;
}

.signup-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
}

/* === QUICK ACTIONS === */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .action-btn.primary {
        background: #FFD700;
        color: #333;
    }

    .action-btn.secondary {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #ddd;
    }

    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.action-icon {
    font-size: 20px;
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #FFD700;
    color: #333;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .btn-primary:disabled,
    .btn-secondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* === PRODUCT CARDS === */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

.product-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .product-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.product-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.product-image {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.stock-indicator {
    font-size: 12px;
    color: #4caf50;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .add-btn:hover {
        background: #FFD700;
        border-color: #FFD700;
    }

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .quantity-btn:hover {
        background: #FFD700;
        border-color: #FFD700;
    }

.quantity {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* === CART === */
.cart-items {
    padding: 0 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.item-image {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.item-price {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.item-total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-summary {
    padding: 20px;
    background: #f8f9fa;
    margin: 20px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

    .summary-row.total {
        font-weight: 600;
        font-size: 16px;
        padding-top: 12px;
        border-top: 1px solid #ddd;
        margin-bottom: 20px;
    }

.checkout-btn {
    width: 100%;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .checkout-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* === SEARCH === */
.search-section {
    padding: 20px;
}

.search-box {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

    .search-input:focus {
        border-color: #FFD700;
    }

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: #666;
    z-index: 1;
}

.clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e8;
    color: #2e7d2e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.check-icon {
    font-weight: bold;
}

/* === NOTIFICATIONS === */
.notifications-list {
    padding: 0 20px;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

    .notification-item.unread {
        background: #f8f9ff;
    }

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.notification-time {
    font-size: 12px;
    color: #666;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    margin-left: 12px;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

    .form-control:focus {
        border-color: #FFD700;
    }

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .radio-option:hover {
        background: #f8f9fa;
    }

    .radio-option input[type="radio"] {
        display: none;
    }

.radio-indicator {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

    .radio-indicator.active {
        border-color: #FFD700;
    }

        .radio-indicator.active::after {
            content: '';
            width: 8px;
            height: 8px;
            background: #FFD700;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.radio-text {
    flex: 1;
    font-size: 14px;
}

.address-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.address-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.add-address-btn {
    background: none;
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .add-address-btn:hover {
        background: #FFD700;
        color: #333;
    }

/* === ORDER DETAILS === */
.order-content {
    padding: 0 20px;
}

.summary-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

    .summary-section h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #333;
    }

.delivery-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

    .delivery-details h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #333;
    }

.action-buttons {
    padding: 20px 0;
}

/* === BULK ACTIONS === */
.bulk-actions {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 374px;
    padding: 0 20px;
    display: flex;
    gap: 12px;
}

    .bulk-actions .btn-secondary,
    .bulk-actions .btn-primary {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
    }

/* === EMPTY STATES === */
.empty-state,
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3,
.empty-cart h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.empty-state p,
.empty-cart p {
    color: #666;
    margin-bottom: 24px;
}

/* === LOADING === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner,
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-message {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === ERROR UI === */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* === RESPONSIVE DESIGN === */
/*@media (max-width: 375px) {
    .app-container {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }

    .bulk-actions {
        max-width: calc(100% - 40px);
    }
}

@media (min-width: 415px) {
    .app-container {
        border-radius: 12px;
        margin-top: 20px;
        margin-bottom: 0;
        min-height: calc(100vh - 40px);
    }
}*/

/* === PWA SPECIFIC === */
@media (display-mode: standalone) {
    .status-bar {
        padding-top: env(safe-area-inset-top, 8px);
    }

    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* === ANIMATIONS === */
.product-card,
.cart-item,
.notification-item {
    transition: all 0.2s ease;
}

    .product-card:active,
    .cart-item:active {
        transform: scale(0.98);
    }

/* === TOUCH IMPROVEMENTS === */
@media (hover: none) and (pointer: coarse) {
    .nav-item:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
    }

    .add-btn:active,
    .quantity-btn:active {
        transform: scale(0.9);
    }
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card,
    .cart-item,
    .notification-item {
        border-width: 2px;
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .loading-spinner,
    .spinner {
        animation: none;
    }
}
