* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.title h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.title p {
    opacity: 0.8;
    font-size: 14px;
}

.status {
    display: flex;
    gap: 15px;
    align-items: center;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.status-badge.online {
    background: #27ae60;
    animation: pulse 2s infinite;
}

.status-badge.offline {
    background: #e74c3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.share-btn {
    background: #3498db;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    background: #2980b9;
}

/* Main Content */
.main-content {
    padding: 30px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    padding-left: 12px;
}

/* Speedometer */
.speedometer {
    text-align: center;
    position: relative;
}

.speed-value {
    font-size: 72px;
    font-weight: bold;
    color: #2c3e50;
}

.speed-unit {
    font-size: 24px;
    color: #7f8c8d;
}

.speed-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}

.speed-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #f39c12, #e74c3c);
    width: 0%;
    transition: width 0.3s;
}

#rpmFill {
    background: linear-gradient(90deg, #27ae60, #e74c3c);
}

/* Info Row */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-label {
    color: #7f8c8d;
    font-weight: 500;
}

.info-value {
    font-weight: bold;
    color: #2c3e50;
}

/* Fuel Gauge */
.fuel-gauge {
    background: #ecf0f1;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.fuel-level {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    width: 0%;
    transition: width 0.3s;
}

/* Map Container */
.map-container {
    grid-column: span 2;
    background: #2c3e50;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect width="1000" height="600" fill="%2334495e"/><path d="M200,300 L800,300" stroke="%23465a6e" stroke-width="2"/><path d="M500,100 L500,500" stroke="%23465a6e" stroke-width="2"/><circle cx="500" cy="300" r="10" fill="%23e74c3c"/><circle cx="500" cy="300" r="20" fill="%23e74c3c" opacity="0.3"/></svg>');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-direction: column;
    gap: 10px;
}

#mapInfo {
    font-size: 14px;
}

/* Truck Status */
.truck-status {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.status-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 10px;
}

.status-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

/* Full width cards */
.full-width {
    grid-column: 1 / -1;
}

/* Footer */
.footer {
    background: #34495e;
    color: white;
    padding: 15px 30px;
    text-align: center;
    font-size: 12px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: none;
    animation: slideIn 0.3s;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .speed-value {
        font-size: 48px;
    }
    
    .card-title {
        font-size: 16px;
    }
}