/**
 * Camera Adjustment Dialog Styles
 * Developer tool for real-time camera configuration testing
 */

/* Main overlay */
#camera-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 99999;
    pointer-events: none;
    overflow-y: auto;
    padding: 20px 10px;
    box-sizing: border-box;
}

#camera-dialog.visible {
    display: flex;
    pointer-events: auto;
}

/* Dialog content container */
.camera-dialog-content {
    width: 100%;
    max-width: 400px;
    background: rgba(30, 30, 30, 0.98);
    border: 2px solid #00ff88;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: cameraDialogFadeIn 0.3s ease-out;
}

@keyframes cameraDialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
.camera-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.camera-dialog-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.camera-dialog-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid #ff5555;
    border-radius: 50%;
    color: #ff5555;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-dialog-close:hover,
.camera-dialog-close:active {
    background: rgba(255, 50, 50, 0.4);
    transform: scale(1.1);
}

/* Device info section */
.camera-device-info {
    background: rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.camera-device-info-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #6699ff;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.camera-device-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.camera-info-item {
    display: flex;
    flex-direction: column;
}

.camera-info-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.camera-info-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    word-break: break-word;
}

/* Sliders section */
.camera-sliders-section {
    margin-bottom: 20px;
}

.camera-sliders-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #00ff88;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.camera-slider-group {
    margin-bottom: 15px;
}

.camera-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.camera-slider-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
}

.camera-slider-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #00ff88;
    min-width: 60px;
    text-align: right;
}

/* Custom slider styling */
.camera-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.camera-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: transform 0.1s ease;
}

.camera-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.camera-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Action buttons */
.camera-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.3);
}

.camera-btn {
    padding: 12px 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.camera-btn-reset {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #ffa500;
    color: #ffa500;
}

.camera-btn-reset:hover,
.camera-btn-reset:active {
    background: rgba(255, 165, 0, 0.4);
}

.camera-btn-copy {
    background: rgba(100, 100, 255, 0.2);
    border: 1px solid #6666ff;
    color: #6666ff;
}

.camera-btn-copy:hover,
.camera-btn-copy:active {
    background: rgba(100, 100, 255, 0.4);
}

.camera-btn-close {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.camera-btn-close:hover,
.camera-btn-close:active {
    background: rgba(0, 255, 136, 0.4);
}

/* Copied feedback */
.camera-copied-feedback {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100000;
    pointer-events: none;
}

.camera-copied-feedback.show {
    opacity: 1;
}

/* Triple tap hint indicator */
.camera-tap-indicator {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 136, 0.8);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 99998;
    pointer-events: none;
}

.camera-tap-indicator.show {
    opacity: 1;
}

/* Code output section */
.camera-code-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.camera-code-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.camera-code-output {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #00ff88;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-height: 600px) {
    .camera-dialog-content {
        padding: 15px;
    }

    .camera-slider-group {
        margin-bottom: 10px;
    }

    .camera-device-info {
        padding: 10px;
        margin-bottom: 15px;
    }

    .camera-device-info-grid {
        gap: 5px;
    }
}
