@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;600;700&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #121212; 
    color: #e0e0e0; 
    line-height: 1.5;
}

.screen {
    min-height: 100vh; width: 100%; position: relative;
    padding-top: 80px; 
    animation: fadeEffect 0.4s ease-in-out;
    background-color: #121212;
}

/* --- Header Styles --- */
.header {
    background-color: #000;
    color: #fff; height: 80px; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.15);
}
.header-left, .header-right { display: flex; align-items: center; z-index: 2; flex: 0 0 80px; }
.header-right { justify-content: flex-end; }
.header-center {
    position: absolute; left: 50%; transform: translateX(-50%);
    text-align: center; font-weight: 600; font-size: 1.1rem;
    white-space: nowrap; z-index: 1; pointer-events: none;
    max-width: 40%; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.header-logo { height: 40px; width: auto; object-fit: contain; }
.btn-text {
    background: none; color: #fff; border: none; font-size: 0.9rem;
    cursor: pointer; padding: 0; font-family: 'Noto Sans Thai', sans-serif;
    transition: color 0.2s;
}
.btn-text:hover { color: #ff6600; }

/* --- Dashboard Layout --- */
.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; padding-bottom: 80px; }
.center-content { text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 80vh; }
.dashboard-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.car-section { flex: 1.5; position: relative; }
.car-image { width: 100%; display: block; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.5)) brightness(1.1); }
.stats-section {
    flex: 1; background: #1e1e1e; padding: 20px; border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); min-width: 250px; border: 1px solid #333;
}
.stats-title { font-weight: 600; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; text-align: left; color: #fff; }

/* --- Hotspots & Tooltips --- */
.car-diagram { position: relative; width: 100%; margin: 0 auto; }
.hotspot {
    position: absolute; width: 24px; height: 24px;
    border-radius: 50%; border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    cursor: pointer; z-index: 10; animation: pulse 2s infinite;
}
.hotspot:hover { transform: scale(1.3); }
.status-good { background-color: #00c300; }
.status-warning { background-color: #ffcc00; }
.status-critical { background-color: #ff0000; }

.tooltip-box {
    position: absolute; bottom: 45px; left: 50%; transform: translateX(-50%);
    background-color: #000000 !important; color: #ffffff !important; border: 1px solid #ff6600;    
    padding: 12px; border-radius: 8px; font-size: 0.85rem; width: 220px; text-align: center;
    pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 9999; visibility: hidden;
}
.tooltip-box b { color: #ff6600 !important; display: block; margin-bottom: 5px; }
.hotspot:hover .tooltip-box { opacity: 1; visibility: visible; }

/* --- NEW: Landing Page Styles --- */
.landing-bg {
    background-color: #000; display: flex; flex-direction: column; padding-top: 0;
}
.landing-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: absolute; width: 100%; top: 0; z-index: 10;
}
.nav-logo { height: 30px; }
.nav-links a {
    color: #fff; text-decoration: none; margin-left: 30px; font-size: 0.8rem;
    font-weight: 600; opacity: 0.7; transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: #fff; }
.nav-links a.active { border-bottom: 2px solid #ff6600; padding-bottom: 5px; }

.landing-content { flex: 1; display: flex; align-items: center; justify-content: center; height: 100vh; padding-bottom: 0; }
.hero-layout { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 40px; }

.hero-image { flex: 1.2; }
.hero-image img { width: 110%; transform: translateX(-5%); filter: brightness(0.9); }

.hero-text { flex: 1; text-align: right; }
.highlight-tag { color: #ff6600; font-weight: bold; letter-spacing: 1px; display: block; margin-bottom: 10px; font-size: 0.9rem; }
.hero-text h1 {
    font-size: 4rem; line-height: 0.9; margin: 0 0 20px 0; font-weight: 800;
    text-transform: uppercase; letter-spacing: -1px;
}
.hero-text p { color: #888; margin-bottom: 30px; font-size: 1rem; }

.hero-buttons { display: flex; justify-content: flex-end; gap: 15px; }
.btn-red {
    background: #ff6600; color: #fff; padding: 12px 30px; border: none;
    font-weight: bold; font-size: 1rem; border-radius: 4px; cursor: pointer; transition: 0.2s;
}
.btn-red:hover { transform: scale(1.05); background: #ff6600; }
.btn-outline {
    background: transparent; color: #fff; padding: 12px 30px; border: 1px solid #fff;
    font-weight: bold; font-size: 1rem; border-radius: 4px; cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }


/* --- Animations & Utilities --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@keyframes fadeEffect { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

@media (max-width: 768px) {
    .dashboard-layout { flex-direction: column; }
    .stats-section { width: 100%; }
    .header-center { font-size: 1rem; }
    
    /* Landing Responsive */
    .hero-layout { flex-direction: column; text-align: center; }
    .hero-text { text-align: center; margin-top: -30px; }
    .hero-buttons { justify-content: center; }
    .hero-image img { width: 100%; transform: none; }
    .hero-text h1 { font-size: 3rem; }
    .nav-links { display: none; }
}