/**
 * LoadRide Core PWA Styles
 */

:root {
    --lr-primary: #2563eb;
    --lr-secondary: #10b981;
    --lr-danger: #ef4444;
    --lr-bg: #f3f4f6;
    --lr-text: #1f2937;
    --lr-radius: 8px;
}

/* Base PWA Container */
.loadride-pwa-container {
    max-width: 600px; /* Limits width on desktop, full width on mobile */
    margin: 0 auto;
    background-color: var(--lr-bg);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--lr-text);
}

/* Map Container */
#loadride-map {
    width: 100%;
    height: 40vh; /* Takes up 40% of the screen */
    border-radius: var(--lr-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    z-index: 1; /* Keep below fixed headers if any */
}

/* Touch-Friendly Forms */
.loadride-form-group {
    margin-bottom: 15px;
}

.loadride-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.loadride-form-group input,
.loadride-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--lr-radius);
    font-size: 16px; /* Prevents iOS auto-zoom */
}

/* Native-App Style Buttons */
.loadride-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background-color: var(--lr-primary);
    color: #fff;
    border: none;
    border-radius: var(--lr-radius);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.loadride-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.loadride-btn.success {
    background-color: var(--lr-secondary);
}