/* Estilos generales y hereados   *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-**/

  /* Import Font Awesome for icons */
  @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
    background-color: #F2F2F5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding-top: 100px; /* Space for the fixed header */
    overflow-x: hidden;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    height: 50px;
}

.container {
    width: 90%;
    max-width: 380px;
    background-color: white;
    border-radius: 24px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 40px 20px;
    margin: 20px auto;
    z-index: 999; /* Content will appear behind the sticky header */
}

h1 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.info {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.info span {
    display: block;
    margin-bottom: 8px;
}


/* Estilos del Módulo INDEX   *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-**/

  /* Estilos del QR SCANNER*/
  #video {
    width: 80%;
    height: 80%;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #000;
}


/* Estilos del boton "Consultar" */
#button_qr_consult {
    background-color: #2c463d;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

#button_qr_consult:hover {
    background-color: #0056b3;
}


/* Estilos del textbox que recibe el resultado del escaneo */
   /* Input text field */
   input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}


/* Results and error message area */
#result {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
    text-align: left;
}

/* Tìtulos "Dirección de Finanzas arriba  del scanner QR */
h3 {
    margin-top: 0;
    color: #2c463d

    ;
}

p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.5;
}





/* Estilos del Módulo results.html   *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-**/


/* Estilos del titulo Direccion de finanzas  -**/

#result h3 {
    color: #007bff;
    margin-bottom: 10px;
}
/* Estilos del párrafo de resultados del escaneo   */

#result p {
    margin: 5px 0;
    color: #333;
}
/* Marcadors en negritas para los conceptos   */

#result p strong {
    color: #007bff;
}


    /* Mismo formato para botones de Realizar pago, Imprimir Recibo, Salir y Consultar */
    #PayBtn, #ReceiptBtn, #CloseBtn, #StatusBtn ,#button_qr_consult,#btn_login {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-radius: 12px;
        border: none;
        margin-bottom: 15px;
        font-size: 1rem;
        font-weight: bold;
        transition: all 0.3s ease;
        cursor: pointer;
    }


/* letra color blanco para el boton status de pago */

    #StatusBtn {
        color: white;

    }


/* Realizar Pago button */
#PayBtn {
    content: '\f155'; /* Dollar sign icon */
    background-color: #28a745;
    color: white;
}


/* Salir button */
#CloseBtn {
    content: '\f2f5'; /* Sign out icon */
    background: linear-gradient(135deg, #FF5722, #F44336);
    color: white;
}


/* Imprimir Recibo button */
#ReceiptBtn {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
}







/* Estilos del Módulo payments.html   *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-**/


/* sección donde se detallan los datos de pago y el boton de pago */

payment-section {
    font-family: Arial, sans-serif;
    display: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

/* container donde se refleja la cantidad a pagar o tarifa */

.price-container {
    display: column;
    align-items: center;
}

/* estilo de letra y tamaño del dato de tarifa o pago */

.price-text {
    font-size: 4rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Estilos del boton pagar */

.payment-button {
    
    background-color: #28a745;
    color: white;
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
   
}



/* Se agregan características responsivas a los botones */


    /* Responsive styles */
    @media screen and (max-width: 600px) {
        #PayBtn, #ReceiptBtn, #CloseBtn{
            width: 100%;
            padding: 15px;
            font-size: 14px;
        }
    }

    #toggle-container {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    #toggle-btn {
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        padding: 10px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    #toggle-btn.active {
        background-color: #007bff;
        color: white;
    }
    #manualInputSection {
        display: none;
    }
