/* Tip Button Styles - Wine & Whiskey Design */
.tip-button {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d4a574; /* Golden whiskey */
    color: white;
    font-size: 22px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.tip-button:hover {
    background-color: #b8814a; /* Deep amber */
    transform: scale(1.05);
    color: white;
}

.tip-button:focus {
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(212, 165, 116, 0.3);
    color: white;
}

/* Modal customizations for tip modal */
#globalTipModal .modal-header {
    background-color: #d4a574; /* Golden whiskey */
    color: white;
    border-bottom: none;
}

#globalTipModal .modal-header .btn-close {
    filter: invert(1);
}

#globalTipModal .modal-title {
    color: white;
}

/* Dynamic help text styling */
#tip-help-text {
    transition: all 0.3s ease;
}

/* Form validation styling */
#globalTipForm .form-control:invalid {
    border-color: #dc3545;
}

#globalTipForm .form-control:valid {
    border-color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .tip-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        left: 15px;
    }
    
    /* Ensure tip button doesn't overlap with mobile navigation */
    .tip-button {
        bottom: 80px;
    }
}

/* Ensure tip button is visible above other content */
@media (max-width: 768px) {
    .tip-button {
        z-index: 1001;
    }
}

/* Animation for when button first appears */
@keyframes tipButtonAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tip-button {
    animation: tipButtonAppear 0.5s ease-out;
}