﻿/* ===============================
   Rider App Global Styles
   =============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #F8F9FA; /* Light background */
    color: #333;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* prevent body scroll */
}


/* Make body a column so header + content + bottom nav stack */
body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #F8F9FA;
    color: #333;
}


/* ===============================
   Page Transition Overlay
   =============================== */
.page-transition {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .page-transition.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Loader (spinner) */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00A8FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===============================
   Orders Header
   =============================== */




.orders-header {
    display: flex;
    flex: 0 0 60px; /* fixed height */
    align-items: center;
    background: linear-gradient(90deg, #00A8FF, #0090E0);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

    .orders-header h1 {
        flex: 1;
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        text-align: center;
    }

/* Header buttons */
.back-btn, .profile-btn, .notif-btn {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

    .back-btn:hover,
    .profile-btn:hover,
    .notif-btn:hover {
        opacity: 0.8;
    }

/* Notification badge */
.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #E74C3C;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    padding: 2px 5px;
}

/* ===============================
   Tabs
   =============================== */
.order-tabs {
    display: flex;
    justify-content: space-around;
    margin: 12px 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
 
}

    .order-tabs .tab {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        text-decoration: none;
        color: #555;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background 0.2s, color 0.2s;
      

    }

        .order-tabs .tab i {
            font-size: 18px;
            margin-bottom: 3px;
        }

        .order-tabs .tab.active {
            background: #00A8FF;
            color: #fff;
        }

        .order-tabs .tab:hover {
            background: #00A8FF;
        }


/* ===============================
   App Container (scrollable body)
   =============================== */
.app-container {
    position: absolute;
    top: 60px; /* same as header height */
    bottom: 60px; /* same as bottom-nav height */
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
    box-sizing: border-box;
    overflow: hidden; /* prevent double scroll */
 
}

/* ===============================
   Order Cards
   =============================== */
.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 14px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}


.order-card h3,
.order-id {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

/* ===============================
   Order Status Tags
   =============================== */
.order-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    color: #fff;
    letter-spacing: 0.3px;
}

    /* Status color palette */
    .order-status.pending {
        background: #FF9800; /* Warm orange */
    }

    .order-status.new {
        background: #00B0FF; /* Bright blue */
    }

    .order-status.active {
        background: #28a745; /* Success green */
    }

    .order-status.completed {
        background: #2980b9; /* Calm blue */
    }

    /* Declined style */
    .order-status[data-status="declined"] {
        background: #e74c3c; /* Red */
        color: #fff;
    }



/* ===============================
   Order Type Tag
   =============================== */
.order-type {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    background: #0099FF; /* bright blue background */
    color: #ffffff; /* white text for contrast */
    box-shadow: 0 2px 4px rgba(0, 153, 255, 0.25);
    letter-spacing: 0.4px;
}

/* ===============================
   Order Timer / Time
   =============================== */
.order-timer, .order-time {
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
    background: #E6F6EA;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ===============================
   Layout Alignment
   =============================== */
.order-right {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* Order body */
.order-body {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .order-detail i {
        color: #00A8FF;
        font-size: 16px;
        margin-top: 2px;
    }

    .order-detail .label {
        font-size: 11px;
        color: #888;
        margin-top: 5px;
        margin-bottom: 1px;
    }

    .order-detail .value {
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }

    .order-detail.eta .value {
        color: #2C2C54;
    }

/* Footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;

}

.order-amount {
    font-size: 15px;
    font-weight: 700;
    color: #00A8FF;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #FFF4E1;
    border-radius: 16px;
}

.order-actions {
    display: flex;
    gap: 6px;
}

    .order-actions .btn {
        flex: 1;
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 6px;
    }





/* ===============================
   Buttons
   =============================== */
.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

    .btn i {
        margin-right: 5px;
    }

.btn-primary {
    background: #00A8FF;
    color: #fff;
    border: none;
}

.btn-outline {
    background: #fff;
    color: #00A8FF;
    border: 1px solid #00A8FF;
}

/* ===============================
   Bottom Navigation
   =============================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    flex: 0 0 60px; /* fixed height */
}

    .bottom-nav a {
        flex: 1;
        text-align: center;
        color: #555;
        font-size: 12px;
        text-decoration: none;
        padding: 8px 0;
        transition: color 0.2s;
    }

        .bottom-nav a.active {
            color: #00A8FF;
            font-weight: bold;
        }

    .bottom-nav i {
        font-size: 20px;
        display: block;
        margin-bottom: 2px;
    }
