/* TappersCustomer/www/customer.css (Final Corrected Version) */

/* --- General Body & Theming --- */
body {
    background-color: #003b79;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Login Page Styles --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}
.login-logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 20px auto;
}

/* --- App Header (Used on all pages) --- */
.app-header {
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
}
.header-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* --- Hamburger Menu Button --- */
.nav-toggle-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: #003b79;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* --- Offcanvas Menu Styles --- */
.offcanvas-header {
    text-align: center;
    display: block;
    border-bottom: 1px solid #dee2e6;
}
.offcanvas-header .menu-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}
.offcanvas-header .user-name {
    font-weight: bold;
}
.offcanvas-body .list-group-item {
    border: none;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
}
.offcanvas-body .list-group-item i {
    color: #6c757d;
    width: 25px;
}
.offcanvas-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #f8f9fa;
}
.offcanvas-footer .btn-logout {
    width: 100%;
}


/* --- Dashboard/Orders Page Specific Styles --- */
.welcome-header {
    text-align: left;
    color: #ffffff;
}
.welcome-header h2 {
    font-weight: bold;
}
.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    color: #fff;
    border-radius: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none !important;
}
.dashboard-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.dashboard-card i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.dashboard-card h4 {
    font-weight: bold;
    font-size: 1.1rem;
}
.card-place-order { background: linear-gradient(45deg, #dc3545, #a71d2a); }
.card-track-order { background: linear-gradient(45deg, #198754, #146c43); }
.card-view-current { background: linear-gradient(45deg, #0d6efd, #0a58ca); }
.card-view-past { background: linear-gradient(45deg, #6c757d, #565e64); }
.card-view-trucks { background: linear-gradient(45deg, #fd7e14, #d35400); } /* Orange */
.card-help { background: linear-gradient(45deg, #6f42c1, #563d7c); } /* Purple */


/* --- Tracking Page Styles --- */
.track-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
}
.track-header {
    position: relative;
    flex-shrink: 0;
    padding-bottom: 0px;
}
.track-header .header-back-button, .track-header .header-logout-button {
    display: none; /* Hiding these as requested, but keeping for potential testing */
}
.track-header-logo {
    display: block;
    max-width: 200px;
    margin: 10px auto;
}
.track-title {
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: bold;    
    color: #fff;
    background-color: #003b79;
}
#map {
    width: 100%;
    flex-grow: 1;
    height: auto;
}
.tracking-info-container {
    margin-top: 0;
    position: static;
    z-index: auto;
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

/* --- Custom "T" Pin Map Marker --- */
.custom-pin-marker {
    width: 32px;
    height: 32px;
    position: relative;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0b459b;
    font-size: 20px;
    font-weight: bold;
    font-family: sans-serif;
    line-height: 1;
    padding-top: 2px;
    padding-right: 2px;
    margin-bottom: 10px;
}
.custom-pin-marker::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 14px solid #dc3545;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
}