/* NeuroAlerta - Wizard Styles Mobile-First */

/* Reset y Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #F9FAFB;
}



/* Estilo especial para mensaje de rostro no detectado */
.score-numeric {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}




/* Header */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 12px;
    font-weight: 700;
    color: #3B82F6;
    line-height: 1.2;
}

.title-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-indicator {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-top: 2px;
}

.avatar {
    width: 36px;
    height: 36px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #E5E7EB;
}

/* Progress Bar */
.progress-wrapper {
    height: 10px;
    background: #E5E7EB;
    width: 100%;
    position: sticky;
    top: 68px;
    z-index: 99;
}

.progress-bar {
    height: 100%;
    background: #3B82F6;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wizard Screens */
.wizard-screen {
    display: none;
    min-height: calc(100vh - 240px);
    max-height: calc(100vh - 240px);
    padding: 4px 16px 8px;
    overflow-y: auto;
}

.wizard-screen.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-content {
    text-align: center;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.screen-content h2 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
}

/* Example Image */
.example-image-container {
    display: flex;
    justify-content: center;
    margin: 2px 0;
    flex-shrink: 0;
}

.example-image {
    max-width: 120px;
    width: 100%;
    height: auto;
    border: 2px solid #3B82F6;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    border-color: #2563EB;
}

.example-image:active {
    transform: scale(0.98);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #FCD34D;
    background: #FFFBEB;
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #92400E;
}

.upload-label p {
    font-size: 13px;
    font-weight: 500;
}

.upload-label svg {
    width: 40px;
    height: 40px;
}

.image-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-preview img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.btn-remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: #EF4444;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.btn-remove-image:hover {
    background: #DC2626;
}

/* Botones de camara en fila */
.camera-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    margin: 8px 0;
    padding: 0 16px;
}

.camera-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 110px;
}

.camera-btn-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #3B82F6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.camera-btn-large:hover {
    background: #2563EB;
    transform: scale(1.05);
}

.camera-btn-large:active {
    transform: scale(0.95);
}

.camera-btn-large svg {
    width: 32px;
    height: 32px;
}

.camera-status {
    text-align: center;
    color: #6B7280;
    font-size: 11px;
    margin-top: 2px;
    font-weight: 500;
}

.camera-btn-large.upload-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: 3px solid #F59E0B;
}

.camera-btn-large.upload-btn:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    border-color: #D97706;
    transform: scale(1.05);
}

.camera-btn-large.upload-btn:active {
    transform: scale(0.95);
}

/* Fallback Section */
.fallback-section {
    margin-top: 4px;
    text-align: center;
    flex-shrink: 0;
}

.fallback-title {
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 0;
    line-height: 1.3;
}

.fallback-question {
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 8px;
}

/* Binary Buttons */
.binary-buttons-container {
    display: flex;
    gap: 0;
    margin: 8px 0;
    flex: 1;
    min-height: 0;
}

.binary-buttons-main {
    margin-top: 16px;
}

.btn-binary {
    flex: 1;
    height: 120px;
    font-size: 32px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.btn-yes {
    background: #EF4444;
    color: white;
}

.btn-yes:hover {
    background: #DC2626;
}

.btn-yes:active {
    background: #B91C1C;
    transform: scale(0.98);
}

.btn-no {
    background: #10B981;
    color: white;
}

.btn-no:hover {
    background: #059669;
}

.btn-no:active {
    background: #047857;
    transform: scale(0.98);
}

.btn-binary.selected {
    outline: 4px solid white;
    outline-offset: -4px;
}

/* Modal de informacion */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.info-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: center;
}

.info-modal-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.info-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.info-modal-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.info-modal-body h2:not(:first-child) {
    margin-top: 24px;
}

.info-modal-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0 0 12px 0;
}

.info-modal-body p:last-child {
    margin-bottom: 0;
}

.info-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #E5E7EB;
}

.info-modal-close-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1F2937;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-modal-close-btn:hover {
    background: #374151;
    transform: scale(1.05);
}

.info-modal-close-btn:active {
    transform: scale(0.95);
}

.info-modal-close-text {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* Tarjeta de hospital */
.hospital-info-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.hospital-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.hospital-details p {
    font-size: 14px;
    color: #6B7280;
    margin: 4px 0;
}

.open-maps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 12px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.open-maps-btn:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.open-maps-btn:active {
    transform: translateY(0);
}

.open-maps-btn svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .hospital-details h4 {
        font-size: 16px;
    }

    .hospital-details p {
        font-size: 13px;
    }

    .open-maps-btn {
        font-size: 15px;
        padding: 12px 16px;
    }

    .info-modal-overlay {
        padding: 12px;
    }

    .info-modal-content {
        max-height: 90vh;
        border-radius: 20px;
    }

    .info-modal-header {
        padding: 20px 20px 12px;
    }

    .info-modal-logo {
        height: 32px;
    }

    .info-modal-body {
        padding: 20px;
    }

    .info-modal-body h2 {
        font-size: 18px;
    }

    .info-modal-body p {
        font-size: 14px;
    }

    .info-modal-close-btn {
        width: 48px;
        height: 48px;
    }

    .camera-buttons-row {
        gap: 10px;
    }

    .camera-button-container {
        max-width: 100px;
    }
}

/* Scroll suave */
.info-modal-body::-webkit-scrollbar {
    width: 6px;
}

.info-modal-body::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Logo clickeable */
.logo-image,
.logo-fallback {
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-image:hover,
.logo-fallback:hover {
    opacity: 0.8;
}

/* Speech Prompt */
.phrase-box {
    background: #F3F4F6;
    padding: 20px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin: 16px auto;
    text-align: center;
    flex-shrink: 0;
}

/* Audio Recorder */
.audio-recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.record-btn-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #F59E0B;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1F2937;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.record-btn-large:hover {
    background: #D97706;
    transform: scale(1.05);
}

.record-btn-large:active {
    transform: scale(0.95);
}

.record-btn-large.recording {
    background: #EF4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.8); }
}

.record-status {
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
    margin-top: 12px;
}

.help-text {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    margin-top: 24px;
    font-weight: 500;
    max-width: 280px;
}

.recording-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
}

.recording-indicator p {
    color: #EF4444;
    font-weight: 600;
    margin-top: 8px;
    font-size: 14px;
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Results */
.results-container {
    padding: 20px 0;
}

.results-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
    font-size: 16px;
}

/* Emergency Link */
.emergency-link-container {
    text-align: center;
    margin: 20px 0;
}

.emergency-link {
    color: #DC2626;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
}

/* Navigation Buttons */
.nav-buttons-container {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    z-index: 98;
}

.btn-nav {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.btn-cancel {
    color: #6B7280;
}

.btn-back {
    background: white;
    color: #3B82F6;
    border-color: #3B82F6;
}

.btn-back:hover {
    background: #F9FAFB;
}

.btn-continue {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.btn-continue:hover {
    background: #2563EB;
}

.btn-continue:active {
    background: #1D4ED8;
}

.btn-continue:disabled {
    background: #9CA3AF;
    border-color: #9CA3AF;
    cursor: not-allowed;
}

/* Loading state */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Screen */
.results-header {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 20px;
}

#risk-level-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

#risk-level-title.low {
    color: #10B981;
}

#risk-level-title.medium {
    color: #F59E0B;
}

#risk-level-title.high {
    color: #EF4444;
}

#risk-level-title.bajo {
    color: #10B981;
}

#risk-level-title.medio {
    color: #F59E0B;
}

#risk-level-title.alto {
    color: #EF4444;
}

/* Avatar con icono de usuario */
.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.avatar-placeholder:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.avatar-placeholder:active {
    transform: scale(0.95);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 16px;
}

.results-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.score-label {
    color: #1F2937;
    font-weight: 500;
}

.score-value {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}

.score-value.low {
    color: #10B981;
    background: #D1FAE5;
}

.score-value.medium {
    color: #F59E0B;
    background: #FEF3C7;
}

.score-value.high {
    color: #EF4444;
    background: #FEE2E2;
}

.recommendation-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1F2937;
    margin: 0;
}

.recommendation-text strong {
    color: #DC2626;
    font-weight: 700;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 14px;
}

.emergency-link-container {
    padding: 0 16px 16px;
    text-align: center;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contenedor fijo inferior para emergencias + navegacion */
.bottom-fixed-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 12px 16px 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-link {
    display: block;
    background: #DC2626;
    color: white;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.emergency-link:hover {
    background: #B91C1C;
}

.emergency-link:active {
    background: #991B1B;
}

.nav-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.wizard-screen {
    padding-bottom: 160px;
}

/* Estilos para botones de navegacion en pantalla 1 */
#screen-1.active ~ .nav-buttons-container .btn-cancel {
    background: #EF4444;
    color: white;
    border-color: #EF4444;
}

#screen-1.active ~ .nav-buttons-container .btn-cancel::before {
    content: "Hay asimetria";
}

#screen-1.active ~ .nav-buttons-container .btn-continue {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

#screen-1.active ~ .nav-buttons-container .btn-continue::before {
    content: "No hay asimetria";
}

/* Estilos para botones de navegacion en pantalla 1 */
#screen-1.active ~ .bottom-fixed-container .btn-cancel {
    background: #EF4444;
    color: white;
    border-color: #EF4444;
}

#screen-1.active ~ .bottom-fixed-container .btn-cancel::before {
    content: "Hay asimetria";
}

#screen-1.active ~ .bottom-fixed-container .btn-continue {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

#screen-1.active ~ .bottom-fixed-container .btn-continue::before {
    content: "No hay asimetria";
}

/* Ocultar texto original cuando estamos en pantalla 1 */
#screen-1.active ~ .bottom-fixed-container .btn-cancel {
    font-size: 0;
}

#screen-1.active ~ .bottom-fixed-container .btn-cancel::before {
    font-size: 16px;
}

#screen-1.active ~ .bottom-fixed-container .btn-continue {
    font-size: 0;
}

#screen-1.active ~ .bottom-fixed-container .btn-continue::before {
    font-size: 16px;
}

.fallback-help {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 8px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-numeric {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.brain-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-spinner {
    animation: rotate-spinner 1s linear infinite;
    transform-origin: center;
}

@keyframes rotate-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #4B5563;
    animation: fade-text 1.5s ease-in-out infinite;
}

@keyframes fade-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.results-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.loading-overlay.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.example-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.camera-overlay-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.9);
    border: 2
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.camera-overlay-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateX(-50%) scale(1.05);
}

.camera-overlay-btn span {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.camera-overlay-btn svg {
    flex-shrink: 0;
}

.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-modal-content {
    position: relative;
    width: 90%;
    max-width: 640px;
    background: #1F2937;
    border-radius: 12px;
    padding: 20px;
}

.camera-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
}

#camera-video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

.camera-controls {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.btn-capture {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-camera {
    background: #6B7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-header {
        padding: 20px 40px;
    }

    .wizard-screen {
        padding: 30px 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .binary-buttons-container {
        max-width: 600px;
        margin: 40px auto;
    }

    .screen-content h2 {
        font-size: 24px;
    }

    .phrase-box {
        font-size: 36px;
    }

    .nav-buttons-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .binary-buttons-vertical {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
        margin: 40px 0;
    }

    .binary-buttons-vertical .btn-binary {
        height: 80px;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .wizard-screen {
        max-width: 900px;
    }

    .nav-buttons-container {
        max-width: 900px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .btn-binary {
        border: 3px solid currentColor;
    }

    .progress-bar {
        background: #1D4ED8;
    }
}

/* Touch-friendly targets */
button,
a,
label {
    min-height: 44px;
    min-width: 44px;
}