/* Modern Button Styling for Settings Page */

/* Save Button */
.upvimeo-settings-save.button-primary {
    background-color: #00adef !important;
    /* Vimeo Blue */
    border-color: #00adef !important;
    color: #fff !important;
    padding: 8px 25px !important;
    /* Larger touch target */
    height: auto !important;
    /* Allow padding to define height */
    line-height: 1.5 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 6px rgba(0, 173, 239, 0.2) !important;
    transition: all 0.2s ease !important;
}

.upvimeo-settings-save.button-primary:hover,
.upvimeo-settings-save.button-primary:focus {
    background-color: #009bd6 !important;
    /* Slightly darker */
    border-color: #009bd6 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(0, 173, 239, 0.3) !important;
}

.upvimeo-settings-save.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 173, 239, 0.2) !important;
}

/* Purge Cache Button */
.upvimeo-purge-cache.button-secondary {
    background-color: #ffffff !important;
    border: 1px solid #dcdcde !important;
    color: #50575e !important;
    padding: 8px 20px !important;
    height: auto !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

.upvimeo-purge-cache.button-secondary:hover {
    border-color: #c3c4c7 !important;
    color: #1d2327 !important;
    background-color: #f6f7f7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.upvimeo-purge-cache.button-secondary:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Disabled state */
.upvimeo-purge-cache:disabled,
.upvimeo-settings-save:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Spinner adjustment in button */
.upvimeo-spin {
    margin-right: 5px !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: -2px !important;
    animation: upvimeo-spin 2s infinite linear;
}

@keyframes upvimeo-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}