/* Base styles */
html, body {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Debug Panel */
#debugPanel {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    z-index: 1000;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
}

.debug-item {
    margin: 5px 0;
    font-size: 12px;
}

.debug-error {
    color: #ff4444;
}

.debug-success {
    color: #44ff44;
}

.debug-info {
    color: #4444ff;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

#copyButton {
    background: #444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 12px;
}

#copyButton:hover {
    background: #555;
}

#copyButton:active {
    background: #333;
}

#copyButton.copied {
    background: #44ff44;
    color: black;
}

#logCollection {
    display: none;
}

/* Loading indicator */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease-in-out;
    animation: pulse 1.5s infinite;
}

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

.hidden {
    display: none !important;
}

/* Control container */
.control-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    transition: opacity 0.3s ease-in-out;
}

.control-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    align-items: center;
}

/* Buttons */
button {
    transition: all 0.2s ease-in-out;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button:active {
    transform: scale(0.95);
}

.btn-blue {
    background-color: rgba(59, 130, 246, 0.8);
}

.btn-green {
    background-color: rgba(34, 197, 94, 0.8);
}

/* Scale controls */
.btn-scale {
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.8);
}

.scale-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 25px;
}

#scale-value {
    color: white;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    font-size: 1rem;
}

/* AR container */
#ar-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Ensure AR elements don't block interactions */
.mindar-ui-overlay,
canvas,
video {
    z-index: 1;
} 