﻿html, body, #app, .page-container {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /*    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;*/
    min-height: var(--app-height) !important;
    height: var(--app-height) !important;
    max-height: var(--app-height) !important;
    overflow: hidden !important; /* Evita scroll global */
    display: flex;
    flex-direction: column;
}

/* Clase para deshabilitar eventos de puntero en la capa de iframe */
.pointer-events-none {
    pointer-events: none !important;
}

/* Capa overlay para iframes */
.iframe-overlay {
    pointer-events: auto;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/************************************************************************** LOADING SPINNER */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/************************************************************************** FOOTER */

main {
    flex: 1 1 auto;
    overflow-y: auto !important; /* Solo el main hace scroll */
}

.footer {
    background-color: #f2f2f2;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer .left,
.footer .center,
.footer .right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/************************************************************************** THEME */

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    transition: transform 0.2s;
}

    .theme-toggle:hover {
        transform: scale(1.1);
    }

/************************************************************************** LINKS */

.links {
    color: goldenrod;
    cursor: pointer;
    text-decoration: underline;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/************************************************************************** CHECKBOX */

.checkbox-container {
    display: flex;
    align-items: start;
    flex-direction: row;
}

    .checkbox-container input {
        flex: 0;
        margin-top: 4px;
        margin-right: 8px;
    }

    .checkbox-container label {
        flex: 1;
        display: inline;
    }

/*.checkbox-container.small {
        font-size: 14px;*/ /* Ajuste opcional si quieres que sea más pequeño */
/*}*/

/************************************************************************** LOGIN */

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0px;
}

    .login-btn i {
        margin-right: 10px;
        font-size: 20px;
    }

.google {
    background-color: #db4437;
}

.microsoft {
    background-color: #2b579a;
}

.apple {
    background-color: #000000;
}

.facebook {
    background-color: #1877f2;
}

.google:hover {
    background-color: #c1351d;
}

.microsoft:hover {
    background-color: #1e3c72;
}

.apple:hover {
    background-color: #333333;
}

.facebook:hover {
    background-color: #0e5a99;
}

.eye-button {
    /*position: absolute;*/
    /*    right: 10px;
    top: 50%;*/
    /*transform: translateY(-50%);*/
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}

/************************************************************************** PLACEHOLDER */

.placeholder-small::placeholder {
    /*font-size: 0.8rem;*/ /* o el tamaño que desees */
}

@media (max-width: 300px) {
    .placeholder-small::placeholder {
        font-size: 0.9rem;
    }
}

/************************************************************************** TEXT */

.x-small {
    font-size: 0.8rem; /* o el tamaño que necesites */
    /*display: inline-block;*/
}

.small {
}

/************************************************************************** INPUT TEXT COUNTER */

.small-counter {
    position: absolute;
    opacity: 0;
    /*    transition: opacity 0.3s;*/
    right: 0.75rem;
    bottom: 0.1rem;
    font-size: 0.75rem;
    pointer-events: none;
}

/* Mostrar el contador si el input está enfocado */
input:focus + label + .small-counter {
    opacity: 1;
}

/* Mostrar el contador si el input NO tiene placeholder visible (es decir, tiene valor) */
input:not(:placeholder-shown) + label + .small-counter {
    opacity: 1;
}

/************************************************************************** HELP TEXT */

.help-text {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
    display: block;
}

    .help-text.visible {
        opacity: 1;
        max-height: 50px;
    }



.custom-list {
    margin-left: 20px;
    padding-left: 0;
}

.container {
    padding-left: 0px;
    padding-right: 0px;
}








.input-status {
    position: absolute;
    /*opacity: 0;*/
    /*    transition: opacity 0.3s;*/
    right: 0.5rem;
    bottom: 1.5rem;
    font-size: 1rem;
    /*pointer-events: none;*/
}

/*.valid-icon {
    color: green;
}

.invalid-icon {
    color: red;*/
/*cursor: pointer;*/
/*}*/


.password-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Espacio entre íconos */
    /*pointer-events: none;*/ /* evita interferencia con clicks */
}







.page-container-2 {
    display: flex;
    flex-direction: column;
    /*height: 100vh;*/
    overflow: hidden; /* No scroll */
    min-height: var(--app-height);
    height: var(--app-height);
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.camera-grid {
    flex: 1;
    display: grid;
    gap: 5px;
    background: #111;
    padding: 5px;
}

.camera-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: white;
    font-size: 2rem;
    border-radius: 5px;
}
/*
.bottom-bar {
    background: #222;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}*/

.bottom-bar-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(30,30,30,0.95);
    color: #fff;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

    .bottom-bar-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }


.add-camera-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: white;
    border: 1px dashed #aaa;
    cursor: pointer;
}


.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.7em;
    color: #fff;
    margin: 0 0.3em;
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    flex: 0 0 auto; /* Los iconos no se encogen ni crecen */
}

    .icon-action:hover {
        background: rgba(255,255,255,0.15);
        color: #ffd700;
    }

/************************************************************ MODAL*/

.modal-backdrop {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-config {
    background: #232323;
    color: #fff;
    border-radius: 10px;
    padding: 2em 2em 1.5em 2em;
    min-width: 320px;
    min-height: 180px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.modal-fields label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    font-size: 1em;
}

.modal-fields input[type="number"] {
    margin-top: 0.3em;
    padding: 0.3em;
    border-radius: 4px;
    border: 1px solid #444;
    background: #181818;
    color: #fff;
    width: 100%;
}

.modal-accept {
    background: #ffd700;
    color: #232323;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1.5em;
    font-size: 1.1em;
    cursor: pointer;
    align-self: flex-end;
}

    .modal-accept:hover {
        background: #ffe066;
    }

.modal-cancel {
    background: #eee;
    color: #333;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5em 1.5em;
    cursor: pointer;
    transition: background 0.2s;
}

    .modal-cancel:hover {
        background: #ccc;
    }

.modal-edit-positions {
    background: #eee;
    color: #333;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5em 1.5em;
    cursor: pointer;
    transition: background 0.2s;
}

    .modal-edit-positions:hover {
        background: #ccc;
    }

    .modal-edit-positions:active {
        background: #ccc;
    }

    .modal-edit-positions i {
        font-size: 1.1em;
    }

.modal-close {
    position: absolute;
    top: 0.7em;
    right: 1em;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: #ffd700;
    }

/************************************************************ INDEX LABEL*/

.camera-box-relative {
    position: relative;
}

.camera-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.5em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 0.5em;
    z-index: 10;
    pointer-events: none;
    user-select: none;
}

/************************************************************ + - BUTTONS */

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.3em;
}

    .input-group input[type="number"] {
        width: 60px;
        text-align: center;
        font-size: 1em;
        padding: 0.3em;
        border-radius: 4px;
        border: 1px solid #444;
        background: #181818;
        color: #fff;
    }

.input-btn {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 2em;
    height: 2em;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .input-btn:hover {
        background: #ffd700;
        color: #232323;
    }







.bottom-bar-overlay {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* ...el resto de tus estilos existentes... */
    overflow-x: auto;
    white-space: nowrap;
    /* Opcional: para que no se vea la barra de scroll en móviles */
    -webkit-overflow-scrolling: touch;
}

/*    .bottom-bar-overlay::-webkit-scrollbar {
        display: none;
    }*/


.bar-left, .bar-right {
    display: flex;
    align-items: center;
    gap: 0.7em;
    flex-wrap: nowrap; /* Importante: evita que los iconos bajen de línea */
}



/*************************************************** PLAY/PAUSE/RESUME/STOP */

.camera-controls-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.2em;
    z-index: 20;
    /*background: rgba(0,0,0,0.3);*/
    /*border-radius: 0.5em;*/
    /*padding: 0.5em 1em;*/
}

    .camera-controls-overlay button {
        background: #222;
        color: #fff;
        border: none;
        border-radius: 0.3em;
        font-size: 0.7em;
        cursor: pointer;
        padding: 0.3em 0.7em;
        transition: background 0.2s;
        opacity: 0.3;
    }

        .camera-controls-overlay button:hover {
            background: rgba(255,255,255,0.15);
            color: #ffd700;
        }

/*************************************************** ERRORS */

.overlay-center {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*    width: 100%;
    height: 100%;*/
    /*z-index: 20;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*pointer-events: none;*/
}

/*    .overlay-center select {
        pointer-events: auto;
        z-index: 21;
    }*/

#errores {
    /*background: rgba(0,0,0,0.7);*/
    color: red;
    font-family: monospace;
    font-size: 1.1em;
    /*padding: 0.7em 1.5em;*/
    border-radius: 0.5em;
    /*margin-top: 1em;*/
    text-align: center;
    /*min-width: 220px;*/
    /*z-index: 21;*/
    /*pointer-events: auto;*/
    /*max-width: 90vw;*/
    word-break: break-word;
    /* El display lo controla JS según si hay error o no */
}

/*************************************************** PHOTO CAPTURE */

.capture-btn-group {
    position: absolute;
    top: 15px;
    right: 8px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.capture-btn, .record-btn, .mirror-btn, .settings-btn, .flash-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s;
    background: rgba(30,30,30,0.85);
    color: white;
    touch-action: none;
    user-select: none;
}

/* Contenedor overlay para iconos de cámara */
.camera-icons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

/* Los iconos de cámara dentro del overlay */
.camera-icons-overlay .camera-icon {
    pointer-events: auto;
}

/* Modo de edición activo */
.camera-icons-overlay.editing-mode {
    z-index: 1000;
}

.camera-icons-overlay.editing-mode .camera-icon {
    cursor: move !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Tamaños más grandes para móviles */
/*@media (max-width: 768px) {
    .capture-btn, .record-btn, .mirror-btn, .settings-btn, .flash-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
        line-height: 48px;
    }
}*/

/*.capture-btn {
    background: rgba(30,30,30,0.85);
    color: white;
}*/

    .capture-btn:hover {
        /*background: #ffd700;*/
        color: gold;
    }

/*************************************************** GRABAR */

/*.record-btn {
    background: rgba(30,30,30,0.85);
    color: white;
}*/

    .record-btn:hover {
        /*background: rgba(30,30,30,0.85);*/
        color: gold;
    }

    .record-btn.recording, .record-btn:active {
        color: red;
    }

/*************************************************** MIRROR */

/*.mirror-btn {
    background: rgba(30,30,30,0.85);
    color: white;
}*/

    .mirror-btn:hover {
        /*background: #ffd700;*/
        color: gold;
    }

/*************************************************** FLASH */

    .flash-btn:hover {
        color: gold;
    }

    .flash-btn.flash-on {
        color: gold;
    }


/*************************************************** SETTINGS */

/*.settings-btn {
    background: rgba(30,30,30,0.85);
    color: #ffd700;
    border: none;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 0.5em;
}*/

    .settings-btn:hover {
        /*background: #ffd700;*/
        color: gold;
    }

/*.settings-menu {
    position: absolute;
    top: 0;
    right: 2.5em;
    background: #232323;
    border-radius: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    min-width: 160px;
    z-index: 100;
    padding: 0.5em 0;
}

    .settings-menu button {
        background: none;
        border: none;
        color: #ffd700;
        text-align: left;
        padding: 0.7em 1.2em;
        font-size: 1em;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

        .settings-menu button:hover {*/
            /*background: #ffd700;*/
            /*color: #232323;
        }*/





.settings-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    /*margin-top: 2em;*/
}

.settings-option-btn {
    display: flex;
    align-items: center;
    gap: 0.8em;
    background: #232323;
    color: white;
    border: 1px solid #444;
    border-radius: 0.5em;
    padding: 0.7em 1.2em;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

    .settings-option-btn i {
        font-size: 1.3em;
        color: white;
    }

    .settings-option-btn:hover, .settings-option-btn:focus {
        /*background: #ffd700;*/
        color: gold;
        border-color: gold;
    }

        .settings-option-btn:hover i, .settings-option-btn:focus i {
            color: gold;
        }











/*************************************************** TOGGLE BUTTON */

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 0;
    font-size: 1.08em;
    border-bottom: 1px solid #292929;
}

    .settings-toggle-row:last-child {
        border-bottom: none;
    }

/* Toggle Switch */
.settings-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

    .settings-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.settings-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #444;
    border-radius: 24px;
    transition: background 0.2s;
}

    .settings-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: #ffd700;
        border-radius: 50%;
        transition: transform 0.2s, background 0.2s;
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }

.settings-switch input:checked + .settings-slider {
    background: #ffd700;
}

    .settings-switch input:checked + .settings-slider:before {
        transform: translateX(20px);
        background: #232323;
    }

/************************************************************************** ICON POSITIONING EDIT MODE */

/* Contenedor en modo de edición */
.editing-mode {
    border: 2px dashed #ffd700 !important;
    position: relative;
}

.editing-mode::before {
    content: "Modo de Edición - Arrastra los iconos";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #232323;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1001;
    white-space: nowrap;
}

/* Iconos en modo de edición */
.editing-mode .camera-icon {
    border: 2px solid #ffd700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
    cursor: move !important;
    transition: all 0.2s ease;
}

.editing-mode .camera-icon:hover {
    border-color: #ffed4e !important;
    background: rgba(255, 215, 0, 0.2) !important;
    transform: scale(1.05);
}

/* Icono siendo arrastrado */
.camera-icon.dragging {
    opacity: 0.8 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    z-index: 1002 !important;
}

/* Botón de salir del modo edición */
.exit-edit-mode {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1003;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.exit-edit-mode:hover {
    background: #c82333;
}

/* Guías de posicionamiento */
.editing-mode::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 999;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .editing-mode::before {
        font-size: 10px;
        padding: 2px 8px;
        top: -25px;
    }
    
    .exit-edit-mode {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/*************************************************** CAMERA COMPONENTS */

/* Contenedor específico para componente B */
.camera-video-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    overflow: hidden;
}

.camera-video-container > * {
    width: 100% !important;
}

/*************************************************** BARCODE */

/* QR icon */
.barcode-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 8px;
    background-color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
}

    .barcode-icon i {
        font-size: 28px;
        color: #fff;
    }


/*************************************************** QR CODE */

/* QR icon */
.qr-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 8px;
    background-color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
}

    .qr-icon i {
        font-size: 28px;
        color: #fff;
    }




/*************************************************** END */