/* DEVELOPER COMMENT: Global Touch Action Lock [cite: 2026-02-13] */
html, body {
    touch-action: pan-x pan-y; /* Allows scrolling but kills the pinch-zoom gesture */
    -webkit-text-size-adjust: none; /* Prevents font-size changes if someone tries to zoom */
}

/* DEVELOPER COMMENT: Play Store Ready Scroll Fix [cite: 2026-02-12] 
   We removed 'position: fixed' and 'overflow: hidden' to let content breathe. */
html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    width: 100%;
    /* Allow scrolling on the body so all pages work by default */
    overflow-y: auto; 
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}


/* DEVELOPER COMMENT: Freed the container so the header can stick to the screen [cite: 2026-02-13] */
#main-app-container {
    height: auto; 
    overflow: visible; 
    -webkit-overflow-scrolling: touch;
    width: 100%;
}


/* DEVELOPER COMMENT: 
  Trostat Global Stylesheet.
  This file centralizes the Ghanaian transport brand colors 
  and ensures a consistent card-based UI across all pages.
*/

:root {
    --brand-yellow: #FFD800;
    --brand-blue: #0000FF;
    --danger-red: #ff4444;
    --bg-gray: #f5f7fa;
    --text-dark: #000000;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-gray);
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    padding-bottom: 70px; /* Space for bottom nav if used */
}

/* DEVELOPER COMMENT:
  Navigation Header.
  Sticky positioning ensures the back button and title stay visible.
*/
.app-header {
    background-color: var(--brand-yellow);
    padding: 20px;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-btn {
    position: absolute;
    left: 10px;
    text-decoration: none;
    color: black;
    font-size: 1.8rem;
    padding: 15px;
    font-weight: bold;
}

/* DEVELOPER COMMENT:
  Layout Containers.
  Max-width 600px ensures a "mobile-app" feel on desktop.
*/
.main-container, .app-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* DEVELOPER COMMENT:
  Card Component.
  Features the signature blue border-left used in Stations and Partners pages.
*/
.card, .fare-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border-left: 6px solid var(--brand-blue);
}

/* DEVELOPER COMMENT:
  Form Elements.
  Styled for "Thumb-Friendly" mobile interaction.
*/
.app-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.btn-primary:active {
    opacity: 0.8;
}

/* DEVELOPER COMMENT:
  Fare Finder Specific Styles.
  Handles the 2-column grid for transport mode selection.
*/
.transport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 5px;
}

.fare-display {
    background: var(--brand-blue);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

/* DEVELOPER COMMENT:
  Admin Login UI.
  Centers the login box vertically for a secure feel.
*/
#loginArea {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 20vh;
}




/* DEVELOPER COMMENT: 
  Prevents mobile browsers from auto-zooming on inputs, 
  keeping the UI stable [cite: 2026-01-19].
*/
input[type="text"] {
    font-size: 16px !important;
}



/* This targets every image with the class "product-img" */
.product-img {
    display: block;       /* Allows centering with margin */
    margin: 0 auto;       /* Centers the image horizontally */
    
    /* Control your size here "anytime you see fit" */
    width: 230px;         /* Change this value to make them all bigger or smaller */
    height: 230px;        /* Keep this the same as width for a square look */
    
    object-fit: cover;    /* Prevents the image from looking stretched */
    border-radius: 8px;   /* Optional: adds a nice rounded corner */
}

/* Optional: Centers the titles and prices too */
.product-card {
    text-align: center;
    padding: 15px;
}


/* DEVELOPER COMMENT: Bottom Nav Styling for Trostat */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #555;
    font-size: 0.7rem;
    flex: 1;
}

.nav-item i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #0000FF; /* Trostat Blue */
    font-weight: bold;
}


/* DEVELOPER COMMENT: 
   Trostat Navigation v1.0 
   Ensures the nav bar stays fixed at the bottom for easy thumb access.
*/
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888; /* Inactive color */
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
    font-style: normal;
}

/* The active state for the page the user is currently on */
.nav-item.active {
    color: #0000FF; /* Trostat Blue for active state */
}

/* DEVELOPER COMMENT: 
   Smooth Nav Transition for Trostat v1.5
*/
.nav-item {
    transition: all 0.3s ease-in-out;
}

.nav-item.active {
    border-top: 3px solid #0000FF; /* Adds a blue indicator line at the top */
    padding-top: 7px; /* Adjusts for the border height */
}







/* DEVELOPER COMMENT: trostat Emergency Pulse Effect [cite: 2026-02-02] */
@keyframes pulse-red {
    0% { background-color: #D32F2F; }
    50% { background-color: #B71C1C; }
    100% { background-color: #D32F2F; }
}

.emergency-header { 
    animation: pulse-red 2s infinite; 
}

.loc-box { 
    background: #fff; 
    border: 1px dashed #ccc; 
    padding: 10px; 
    border-radius: 8px; 
    font-family: monospace; 
    font-size: 0.85rem; 
    margin-top: 10px; 
    display: none; 
}









/* DEVELOPER COMMENT: Universal Header Height [cite: 2026-02-13] 
   Forces a consistent 40px height and prevents title squashing. */

.app-header, .emergency-header, .nav-control {
    height: 40px !important;      /* The core height you requested */
    padding: 10px 2px !important; /* Extra space to prevent squashing */
    display: flex;                /* Keeps content centered */
    align-items: center; 
    justify-content: center;
    box-sizing: content-box;      /* Ensures padding is ADDED to the height */
    overflow: visible !important;             /* Keeps everything tidy */
}

/* Specific fix for the titles inside those headers */
.app-header h2, .emergency-header h2, .nav-control h2 {
    margin: 0;
    line-height: 40px;            /* Matches the height for perfect vertical centering */
    white-space: nowrap;          /* Prevents title from jumping to a second line */
}






/* DEVELOPER COMMENT: Full Station-Details Custom Styles 
   Preserving all custom branding and layout for station-details.html */

.station-details-body { 
    background-color: #f4f4f4; 
    margin: 0; 
    font-family: -apple-system, sans-serif; 
    padding-bottom: 100px; 
    color: #333; 
}

/* Custom Header specific to Station Details */
.header { 
    background: #FFD800; 
    padding: 12px 15px; 
    position: sticky; 
    top: 0; 
    z-index: 1001; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.back-arrow { 
    text-decoration: none; 
    color: #000; 
    font-size: 1.5rem; 
    font-weight: bold; 
    padding-right: 5px; 
}

/* Page Content Components */
.station-img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    background: #333; 
    border-bottom: 3px solid #FFD800; 
    display: none; 
}

.card { 
    background: white; 
    border-radius: 16px; 
    padding: 20px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    margin-bottom: 15px; 
}

.info-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.label { 
    color: #888; 
    font-weight: bold; 
    font-size: 0.65rem; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
}

.value { 
    margin: 4px 0 0; 
    font-size: 0.95rem; 
    font-weight: bold; 
    color: #333; 
}

.coordinate-box { 
    background: #f8f8f8; 
    padding: 10px; 
    border-radius: 8px; 
    font-family: monospace; 
    font-size: 0.85rem; 
    color: #555; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 5px; 
    border: 1px dashed #ccc; 
}

.btn-directions { 
    background: #1A73E8; 
    color: #fff; 
    border: none; 
    padding: 12px 20px; 
    border-radius: 25px; 
    font-weight: bold; 
    font-size: 0.8rem; 
    cursor: pointer; 
}

.affirmative-box { 
    background: #F3E5F5; 
    padding: 12px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    border: 1px solid #E1BEE7; 
    margin-bottom: 15px; 
}

.route-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px; 
    background: white; 
    margin-bottom: 10px; 
    border-radius: 12px; 
    border-left: 5px solid #FFD800; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); 
}

/* Footer Control Bar */
.footer-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0;
    width: 100%; 
    background: white; 
    padding: 15px; 
    display: flex; 
    gap: 10px; 
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05); 
    box-sizing: border-box; 
    z-index: 1000; 
}

.btn-call { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    background: #2E7D32; 
    color: white; 
    text-decoration: none; 
    padding: 14px; 
    border-radius: 12px; 
    font-weight
}

.btn-emergency { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    background: #d32f2f; 
    color: white; 
    text-decoration: none; 
    padding: 14px; 
    border-radius: 12px; 
    font-weight: bold; }