:root{
    --pendiente: #fb8c00 !important;
    --activo: #4caf50  !important;
    --vendido:  #5d4037 !important;
}

.button {
    z-index: 1;
    color: #2a343c;
    font-size: 30px;
    font-weight: bold;
    line-height: 75px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 20px 20px -15px rgba(42,51,59,0.7), inset 0 -5px rgba(42,51,59,0.4);
    transition: all 0.3s cubic-bezier(0, 0.35, 0.5, 1);
    border: none !important;
    position: relative;
    float: left;
}

.btn-pendiente{
    background: var(--pendiente) !important;
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-vendido{
    background: var(--vendido) !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.85;
}

.button:hover {
    color: #000;
    transform: scale(1.03);
    box-shadow: 0 22px 22px -15px rgba(42,51,59,0.7), inset 0 -5px rgba(42,51,59,0.4);
}
.button:focus,
.button:active {
    transform: scale(1);
    box-shadow: 0 17px 17px -15px rgba(42,51,59,0.7), inset 0 -3px rgba(42,51,59,0.4);
}
.rectangle {
    display: block;
    width: 300px;
    height: 75px;
    margin: 50px auto;
    border-radius: 4px;
    background-color: #00ff98;
}
.circle {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    margin: 0.5rem;
    background-color: #00ff98;
}

/* ========================================
   Theme-aware boleto styles for AI templates
   Applied only when data-appearance="dark" is set (template pages)
   ======================================== */
[data-appearance="dark"] .button.circle {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 -3px rgba(0,0,0,0.2);
}
[data-appearance="dark"] .button.circle:not(.btn-pendiente):not(.btn-vendido):hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 -3px rgba(0,0,0,0.2);
    transform: scale(1.05);
}
[data-appearance="dark"] .btn-pendiente {
    box-shadow: 0 4px 12px rgba(251,140,0,0.25);
}
[data-appearance="dark"] .btn-vendido {
    box-shadow: none;
    opacity: 0.5;
}

/* Light theme overrides for AI templates */
[data-appearance="light"] .button.circle {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 -3px rgba(0,0,0,0.1);
}
[data-appearance="light"] .button.circle:not(.btn-pendiente):not(.btn-vendido):hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.15), inset 0 -3px rgba(0,0,0,0.1);
    transform: scale(1.05);
}
[data-appearance="light"] .btn-vendido {
    background: rgba(0,0,0,0.08) !important;
    color: rgba(0,0,0,0.25) !important;
    box-shadow: none;
    opacity: 0.5;
}
