/* Button base styles */
#invia-a-tablet-button {
    background-color: #007bff !important;
    color: white !important;
    padding: 12px 24px 12px 50px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2) !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.5 !important;
}

.wait {
  font-size: 13px!important;
  color: #303030!important;
}

/* Icon styles using :before */
#invia-a-tablet-button:before {
    content: "" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Hover state */
#invia-a-tablet-button:hover {
    background-color: #01608c !important;
    transform: translateY(-1px) !important;
}

/* Active state */
#invia-a-tablet-button:active {
    background-color: #388E3C !important;
    transform: translateY(1px) !important;
}

/* Disabled state */
#invia-a-tablet-button:disabled {
    background-color: #CCCCCC !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

#invia-a-tablet-button:disabled:before {
    opacity: 0.5 !important;
}

/* Loading state (se necessario) */
#invia-a-tablet-button.loading {
    background-color: #388E3C !important;
    cursor: wait !important;
}

/* Animazione di successo (opzionale) */
@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

#invia-a-tablet-button.success {
    animation: successPulse 1.5s infinite !important;
}