/* Luxy Bus General Styles */
.luxy-container {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    max-width: 860px;
    font-family: sans-serif;
    background: #fff;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.luxy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.luxy-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.luxy-status {
    font-size: 14px;
    color: #555;
}

#luxy-map {
    height: 420px !important;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f7f7f7;
}

.luxy-info-grid {
    display: grid;
    gap: 6px;
}

.luxy-info-label {
    color: #555;
}

/* Status Card (Driver) */
.luxy-status-card {
    display: block;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Driver Area Styles */
.luxy-driver-container {
    max-width: 620px;
    margin: 0 auto;
}

.luxy-check-mode {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.luxy-stop-grid {
    display: grid;
    gap: 12px;
}

.luxy-stop-btn {
    padding: 22px;
    font-size: 20px;
    border-radius: 14px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
}

.luxy-stop-btn:active {
    transform: scale(0.99);
}

.luxy-stop-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.luxy-stop-btn.active {
    background-color: #2E4033 !important;
    /* Green Charcoal */
    color: #fff !important;
    border: 2px solid #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    transform: scale(1.02);
}

.luxy-dark-mode .luxy-stop-btn.active {
    background-color: #1b5e20 !important;
    /* Lighter Green for Dark Mode contrast */
    border-color: #66bb6a;
}

/* Dark Mode / Open Screen Mode */
/* Apply to body when active to cover full screen */
body.luxy-dark-mode {
    background: #121212 !important;
    color: #e0e0e0 !important;
    min-height: 100vh;
}

.luxy-dark-mode .luxy-container {
    background: #121212 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

.luxy-dark-mode .luxy-stop-btn {
    background: #1e1e1e;
    color: #fff;
    border-color: #444;
}

.luxy-dark-mode .luxy-stop-btn:hover {
    background: #2c2c2c;
}

.luxy-dark-mode .luxy-check-mode {
    background: #1e1e1e;
    color: #fff;
}

.luxy-dark-mode #luxy-driver-msg,
.luxy-dark-mode #luxy-driver-hint {
    color: #fff !important;
}

.luxy-dark-mode .luxy-status-card {
    background: #2c2c2c;
    border-color: #444;
    color: #ccc;
}

.luxy-dark-mode .luxy-status-card small {
    color: #aaa !important;
    /* Ensure small text is readable */
}

/* Toggle Switch Styles */
.luxy-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.luxy-toggle input {
    display: none;
}

.luxy-toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    margin-right: 10px;
    transition: .4s;
}

.luxy-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked+.luxy-toggle-slider {
    background-color: #2196F3;
}

input:checked+.luxy-toggle-slider:before {
    transform: translateX(20px);
}