/**
 * Application CSS styles
 */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

#cesiumContainer {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hud .row {
    margin-bottom: 10px;
}

#hud .row:last-child {
    margin-bottom: 0;
}

#hud .btn {
    margin: 2px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

#hud .form-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.cooldown-active {
    color: #ff6b6b;
    font-weight: bold;
}

.cooldown-ready {
    color: #51cf66;
    font-weight: bold;
}

.login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 300px;
    color: #333;
}

.login-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.login-form .form-control {
    margin-bottom: 15px;
}

.login-form .btn {
    width: 100%;
    margin-bottom: 10px;
}

.login-form small {
    color: #666;
}

.login-form a {
    color: #007bff;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Cesium widget customization */
.cesium-widget-credits {
    display: none !important;
}

.cesium-viewer-bottom {
    display: none !important;
}

/* Button states */
.btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-group .btn.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-group .btn.active.btn-outline-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-group .btn.active.btn-outline-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-group .btn.active.btn-outline-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    #hud {
        top: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
        padding: 10px;
    }
    
    .login-form {
        left: 10px;
        right: 10px;
        transform: translateY(-50%);
        min-width: auto;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error messages */
.alert {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    min-width: 300px;
}

/* Texture picker styling */
#texturePicker {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#texturePicker option {
    background: #333;
    color: white;
}
