:root { 
    --bg: #0b0f1a; 
    --card: #161b2a; 
    --input-bg: #1f2937; 
    --accent: #fbbf24; 
    --text: #e5e7eb; 
}

body { 
    font-family: -apple-system, sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    margin: 0; 
    padding-top: 95px; 
    transition: padding 0.3s;
}

/* --- SCROLLBAR OPTIMIZATION --- */
/* Buat scrollbar jadi halus supaya tak makan ruang skrin landscape */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* --- STICKY HEADER --- */
.sticky-header { 
    position: fixed; top: 0; left: 0; width: 100%; 
    background: #111827; z-index: 9999; border-bottom: 2px solid #374151; 
    padding: 5px 0;
}

.app-brand-header { 
    font-size: 0.6rem; color: #60a5fa; text-align: center; 
    font-weight: bold; margin-bottom: 4px; 
}

.header-grid { 
    display: grid; grid-template-columns: repeat(4, 1fr); 
    gap: 8px; padding: 0 15px; 
}

.header-item label { 
    font-size: 0.55rem; color: #9ca3af; display: block; text-align: center; 
}

.price-box { 
    background: #000; border: 1px solid var(--accent); 
    border-radius: 4px; padding: 4px 0; text-align: center; cursor: pointer;
}

.price-box span { 
    font-family: monospace; font-size: 1.1rem; 
    color: var(--accent); font-weight: bold; 
}

.header-footer { 
    display: flex; justify-content: space-between; 
    align-items: center; padding: 5px 15px; 
}

.green { color: #10b981; font-weight: bold; font-size: 0.85rem; }

/* --- BUTTONS --- */
.btn-fullscreen { 
    background: #4b5563; color: white; border: none; 
    font-size: 0.6rem; padding: 4px 10px; border-radius: 4px; 
    font-weight: bold; cursor: pointer;
}

.btn-reset { 
    background: #7f1d1d; color: #f87171; border: none; 
    font-size: 0.6rem; padding: 4px 10px; border-radius: 4px; 
    font-weight: bold; cursor: pointer;
}

/* --- LAYOUT UTAMA --- */
.content-container { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    padding: 10px; 
    align-items: center;
}

.side-panel { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.card { 
    background: var(--card); 
    padding: 12px; 
    border-radius: 12px; 
    border: 1px solid #2d3748;
    width: 100%; 
    box-sizing: border-box;
}

/* --- LANDSCAPE LOGIC --- */
@media (orientation: landscape) {
    body { padding-top: 85px; }
    .content-container { 
        flex-direction: row; 
        align-items: flex-start;
        justify-content: center;
        max-width: 100%;
    }
    .side-panel { flex: 1; max-width: 380px; }
    .fleet-card { flex: 1.8; max-width: 750px; }
}

/* --- INPUTS & FOCUS EFFECTS --- */
.input-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.m-input { 
    width: 100%; padding: 10px 2px; background: var(--input-bg); 
    border: 1px solid #374151; border-radius: 8px; color: white; 
    text-align: center; font-size: 0.95rem; 
    transition: all 0.2s;
}

/* Kesan Glow bila petak ditekan (Focus) */
.m-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    background: #111827;
}

.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.info-item { 
    background: #1f2937; padding: 6px 2px; border-radius: 6px; 
    font-size: 0.65rem; text-align: center; color: #9ca3af;
}

.info-item span { color: #f87171; font-weight: bold; }
.blue-text { color: #60a5fa !important; }

.toast { 
    position: fixed; bottom: 20px; left: 50%; 
    transform: translateX(-50%); background: #10b981; 
    color: white; padding: 8px 20px; border-radius: 20px; 
    display: none; z-index: 10000; font-size: 0.8rem;
}

.app-footer { 
    width: 100%; text-align: center; font-size: 0.55rem; 
    color: #4b5563; padding: 20px 0; 
}
