/**
 * @file: Trostar style.css (The Visual DNA)
 * @author: [Kelvin Dodzi Amewu (CEO Doji)] - DNA-SIG: 1642019782026
 * @copyright: © Kelvin Dodzi Amewu | MC Multimedia.
 * @license: Proprietary. Unauthorized copying is strictly prohibited. 
 * DEVELOPER COMMENT: Trostar Master Control, Universal UI/UX Design System.
 * Features: Global CSS Variables, Responsive Typography, and Security-Branded Component Styles.
 * This file is part of the Trostar App ecosystem.
 * Any modification without authorization will break it as well as cause serious Legal Issues for the copyright Infringer.
 * Please respect my hardwork and do not touch any part of my vision and baby. You do so at your own risk.
*/

/* 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%; 
    /* We change fixed height to aspect-ratio to honor your 1920x880 dimensions */
    aspect-ratio: 1920 / 880; 
    object-fit: cover; 
    background: #333; 
    border-bottom: 3px solid #FFD800; 
    display: block;
}

.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; }
    
    
    
    /* Splash Screen Styles [cite: 2026-02-27] */
#trostat-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFD800; /* Trostat Signature Yellow */
    z-index: 9999; /* Stays above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.splash-content {
    width: 100%;
    height: 100%;
    background-image: url('images/tsplash.webp');
    background-size: contain; /* Shows the WHOLE image without cropping */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FFD800; /* Blends the top/bottom bars with your theme */
}

/* Class to trigger the fade out */
.splash-hidden {
    opacity: 0;
    visibility: hidden;
}





/* Trostat Offline Header Styling */
.offline-header {
    width: 100%;
    background-color: #FFD800; /* Signature Yellow */
    border-bottom: 3px solid #000; /* Separation line */
}

.driver-banner {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintains your perfect orientation */
    background-image: url('images/tsplash.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Styling Here Affects Notify 233 html page only */
/* --- Notify 233 Content Styles (Scoped to prevent conflicts) --- */

#nt233-specific-page {
    background: #000;
    color: #fff;
    min-height: 100vh; /* Makes the black background fill the screen */
    padding: 20px;
}

#nt233-specific-page .notify-container { max-width: 600px; margin: 0 auto; }

/* Internal Page Header */
#nt233-specific-page .notify-header { border-bottom: 1px solid #222; padding-bottom: 15px; margin-bottom: 25px; }
#nt233-specific-page .notify-logo { color: #00ffcc; font-size: 1.6rem; font-weight: bold; margin: 0; }
#nt233-specific-page .notify-logo span { color: #fff; font-weight: 300; }

/* Alert Feed & JSON Card Styles */
#nt233-specific-page #notify-feed { display: flex; flex-direction: column; gap: 15px; }

#nt233-specific-page .alert-card { 
    background: #111; 
    border: 1px solid #222; 
    border-radius: 12px; 
    padding: 18px; 
    border-left: 4px solid #00ffcc;
    position: relative;
}

#nt233-specific-page .alert-time { float: right; color: #949494; font-size: 0.75rem; }
#nt233-specific-page .alert-title { margin: 10px 0 5px 0; font-size: 0.9rem; color: #fff; font-weight: normal; text-align: left; }
#nt233-specific-page .alert-msg { color: #FFD800; font-size: 0.85rem; line-height: 1.5; margin: 0; text-align: left; }

#nt233-specific-page .status-msg { text-align: center; color: #333; margin-top: 50px; font-size: 0.9rem; }