html, body, #cesiumContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(42, 42, 42, 0.9);
    padding: 20px;
    border-radius: 5px;
    color: white;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#controls h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #48b;
    padding-bottom: 10px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.control-group a {
    color: #48b;
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
    transition: color 0.3s;
}

.control-group a:hover {
    color: #6cf;
    text-decoration: underline;
}

.control-group select,
.control-group button {
    width: 100%;
    padding: 8px;
    border: 1px solid #555;
    background: #333;
    color: white;
    border-radius: 3px;
    font-size: 14px;
}

.control-group button {
    cursor: pointer;
    background: #48b;
    border-color: #48b;
    transition: background 0.3s;
}

.control-group button:hover {
    background: #5ac;
}

#flightInfo {
    margin-top: 20px;
    border-top: 1px solid #555;
    padding-top: 15px;
}

#flightInfo h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

#flightList {
    max-height: 400px;
    overflow-y: auto;
}

.flight-item {
    background: rgba(72, 136, 187, 0.2);
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.flight-item:hover {
    background: rgba(72, 136, 187, 0.4);
}

.flight-item.selected {
    background: rgba(72, 136, 187, 0.6);
    border: 1px solid #8cf;
}

.flight-item .flight-number {
    font-weight: bold;
    color: #8cf;
}

.flight-item .flight-route {
    font-size: 0.9em;
    color: #ccc;
}

.flight-item .flight-details {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 5px;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(42, 42, 42, 0.9);
    padding: 20px 40px;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    display: none;
}

#loading.show {
    display: block;
}

/* Cesium overrides */
.cesium-viewer-bottom {
    display: none;
}

.cesium-credit-logoContainer {
    display: none !important;
}

/* Chatbot Toggle Icon */
#chatbot-icon {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 48px;
    height: 48px;
    background: rgba(72, 136, 187, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
}

#chatbot-icon:hover {
    background: rgba(72, 136, 187, 1);
    transform: scale(1.1);
}

#chatbot-icon.active {
    background: rgba(136, 72, 187, 0.9);
}

/* Chatbot Styles */
#chatbot {
    position: fixed;
    top: 70px;
    left: 10px;
    width: 300px;
    height: 400px;
    background: rgba(42, 42, 42, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#chatbot.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

#chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(72, 136, 187, 0.3);
    border-bottom: 1px solid #48b;
}

#chatbot-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2em;
}

#chatbot-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

#chatbot-body {
    display: flex;
    flex-direction: column;
    height: 300px;
}

#chatbot-body.collapsed {
    height: 0;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    color: white;
}

.bot-message, .user-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 85%;
}

.bot-message {
    background: rgba(72, 136, 187, 0.2);
    margin-right: auto;
}

.bot-message ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.bot-message li {
    margin: 5px 0;
    font-size: 0.9em;
    color: #ccc;
}

.sample-questions {
    list-style: none;
    padding-left: 0;
}

.sample-questions li {
    margin: 8px 0;
}

.sample-questions a {
    color: #6cf;
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
    background: rgba(72, 136, 187, 0.1);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9em;
}

.sample-questions a:hover {
    background: rgba(72, 136, 187, 0.3);
    color: white;
    transform: translateX(5px);
}

.user-message {
    background: rgba(136, 72, 187, 0.2);
    margin-left: auto;
    text-align: right;
}

#chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #555;
}

#chatbot-query {
    flex: 1;
    padding: 10px;
    background: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

#chatbot-query:focus {
    outline: none;
    border-color: #48b;
}

#chatbot-send {
    padding: 10px 20px;
    background: #48b;
    border: none;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#chatbot-send:hover {
    background: #5ac;
}

.loading-message {
    font-style: italic;
    color: #aaa;
}