/*
Theme Name: App CDGP
Theme URI: https://app.golfpachuca.com.mx
Author: Club de Golf Pachuca
Author URI: https://app.golfpachuca.com.mx
Description: Theme personalizado para la aplicación de socios del Club de Golf Pachuca
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: appcdgp
*/


body {
    margin: 0px !important;
    font-family:'Inter',sans-serif;
}

/*
 Login page
 **************************************************/
.login-page{
    position:relative;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:url('https://app.golfpachuca.com.mx/wp-content/uploads/2026/03/club-de-golf-pachuca-login-bg.webp') center/cover no-repeat;
}

.login-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(60,60,60,0.55);
}

.login-box{
    position:relative;
    background:#fff;
    padding:40px;
    border-radius:16px;
    text-align:center;
    z-index:2;
    width: 100%;
    margin: 0 28px;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-logo{
    width:160px;
    margin-bottom:25px;
}

.login-form input{
    width:100%;
    box-sizing: border-box;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
}

.login-form button{
    width:100%;
    box-sizing: border-box;
    display: block;
    padding:12px;
    background:#0a5c2c;
    color:white;
    border:none;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
    transition:0.2s;
}

.login-form button:hover{
    background:#084a22;
}

.login-error {
    margin-top: 15px;
    background: #fdecea;
    color: #842029;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #f5c2c7;
}

.input-group {
    display: flex;
    align-items: stretch;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.input-icon {
    width: 45px;
    background: #f1f3f5;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ddd;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    height: 45px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.input-group:focus-within {
    border-color: #1e7e34;
    box-shadow: 0 0 0 2px rgba(30,126,52,0.15);
}

/*
 Dashboard
 **************************************************/
.dashboard{
    max-width:500px;
    margin:auto;
    padding:20px;
}

.dashboard-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.welcome-box {
    margin-bottom: 20px;
}

.welcome-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.welcome-text h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.menu-btn {
    background: #1e7e34;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.menu-btn:hover {
    background: #16652a;
}

.menu-btn.logout {
    background: #c82333;
}

.menu-btn.logout:hover {
    background: #a71d2a;
}

.btn-volver {
    display:inline-block;
    margin-bottom:20px;
    background:#6c757d;
    color:#fff;
    padding:8px 12px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
}

.tabla-responsive {
    overflow-x: auto;
}

/*
 Invitados
 **************************************************/
.tabla-invitados {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.tabla-invitados th,
.tabla-invitados td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.tabla-invitados th {
    background: #f8f9fa;
}

.status-ok {
    color: green;
    font-weight: 600;
}

.status-pendiente {
    color: #e67e22;
    font-weight: 600;
}

.status-usado {
    color: #6c757d;
    font-weight: bold;
}

.btn-wa {
    display:block;
    margin-bottom:5px;
    background:#25D366;
    color:white;
    padding:6px;
    border-radius:6px;
    text-decoration:none;
    font-size:12px;
}

.btn-delete {
    display:block;
    background:#dc3545;
    color:white;
    padding:6px;
    border-radius:6px;
    text-decoration:none;
    font-size:12px;
}

.ok-msg {
    background:#d1e7dd;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
}

.form-invitado {
    width: 100%;
}

.form-invitado input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* 🔥 CLAVE */
    display: block;

    margin-bottom: 10px;
}

.form-invitado button {
    width: 100%;
    box-sizing: border-box;
}

/*
 App Header Bar
 **************************************************/
.app-header-bar {
    display: flex;
    width: 100%;
    height: 60px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    align-items: stretch;
    background: #f1f3f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* IZQUIERDA (LOGO) */
.header-left {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;
    border-right: 1px solid #eee;

    height: 100%; /* 🔥 CLAVE */
}

/* LOGO */
.header-logo {
    height: 32px;
    display: block;
}

/* DERECHA (MENU) */
.header-right {
    flex: 1;
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;
    padding: 0 15px;

    height: 100%; /* 🔥 CLAVE */
}

/* BOTONES */
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #1e7e34;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.header-btn.logout {
    background: #c82333;
}

.header-btn.logout:hover {
    background: #a71d2a;
}

.card{
background:white;
padding:20px;
margin-bottom:20px;
border-radius:10px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
text-align:center;
}

.saldo{
font-size:36px;
font-weight:bold;
color:#0a5c2c;
}

.btn{
display:block;
background:#0a5c2c;
color:white;
padding:14px;
margin-top:10px;
border-radius:6px;
text-decoration:none;
font-size:18px;
}

.terminal-consumo
{
    display:flex;
    justify-content:center;
    padding:40px 20px;
}

.terminal-card
{
    background:#ffffff;
    border-radius:12px;
    padding:30px;
    width:100%;
    max-width:420px;
    box-shadow:0 20px 40px rgba(0,0,0,0.2);
    text-align:center;
}

.terminal-nombre
{
    font-size:24px;
    margin-bottom:5px;
}

.terminal-accion
{
    color:#666;
    margin-bottom:20px;
}

.terminal-saldo
{
    font-size:42px;
    font-weight:bold;
    color:#0a5c2c;
    margin-bottom:25px;
}

.terminal-input
{
    width:100%;
    padding:15px;
    font-size:18px;
    border:1px solid #ccc;
    border-radius:8px;
    margin-bottom:15px;
}

.terminal-boton
{
    width:100%;
    padding:16px;
    font-size:20px;
    background:#0a5c2c;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.terminal-boton:hover
{
    background:#084a22;
}

.dashboard-container
{
    max-width:500px;
    margin:auto;
    padding:20px;
}

.dashboard-card
{
    background:white;
    padding:25px;
    border-radius:12px;
    margin-bottom:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
    text-align:center;
}

.saldo-card
{
    background:#0a5c2c;
    color:white;
}

.saldo-monto
{
    font-size:40px;
    font-weight:bold;
    margin-top:10px;
}

.qr-card img
{
    margin-top:10px;
}

.historial-card ul
{
    text-align:left;
    padding-left:20px;
}

.propinas
{
    margin:15px 0;
}

.propinas p
{
    margin-bottom:8px;
    font-weight:bold;
}

.propina-btn
{
    padding:10px 15px;
    margin-right:10px;
    border:none;
    border-radius:6px;
    background:#eee;
    cursor:pointer;
}

.propina-btn:hover
{
    background:#ddd;
}

.total-box
{
    font-size:22px;
    font-weight:bold;
    margin:15px 0;
}
/* FONDO GENERAL */

body
{
    background-image:url('https://app.golfpachuca.com.mx/wp-content/uploads/2026/03/double-bubble-outline.png');
    background-color:#f5f7f6;
    font-family:'Segoe UI', sans-serif;
}

/* CONTENEDOR */

.app-container
{
    max-width:420px;
    margin:auto;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:20px;
}

/* CARD PRINCIPAL */

.app-card
{
    background:white;
    border-radius:16px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* LOGO */

.logo
{
    max-width:160px;
    margin-bottom:20px;
}

/* TITULOS */

.app-title
{
    font-size:24px;
    margin-bottom:5px;
}

.app-subtitle
{
    color:#666;
    margin-bottom:30px;
}

/* BOTON PRINCIPAL */

.btn-scan
{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:linear-gradient(135deg,#0a5c2c,#0d7a3d);
    color:white;
    text-decoration:none;
    padding:18px;
    border-radius:12px;
    font-size:20px;
    font-weight:bold;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    transition:all 0.2s ease;
}

.btn-scan:hover
{
    transform:scale(1.03);
}

/* ICONO */

.icon
{
    font-size:24px;
}

/* FOOTER */

.app-footer
{
    text-align:center;
    font-size:12px;
    color:#888;
    margin-top:20px;
}

/*
Estilos para el escaner
**************************************************/
.scanner-container
{
    max-width:420px;
    margin:auto;
    padding:20px;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.scanner-header-card
{
    background:white;
    padding:20px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
}

.scanner-logo
{
    max-width:120px;
    margin-bottom:10px;
}

.scanner-header-card h2
{
    font-size:20px;
    margin:0;
}

.scanner-box
{
    margin-top:25px;
    padding:15px;
    background:white;
    border-radius:16px;
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
}

#reader
{
    width:100%;
    border-radius:12px;
    overflow:hidden;
}