/* Elle Button Styles - Version 2.1.0 */

/* Base button styles with !important to override theme conflicts */
.elle-button {
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 1000 !important;
    margin: 10px auto !important;
}

/* Hover effect */
.elle-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Active/Click effect */
.elle-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Focus accessibility */
.elle-button:focus {
    outline: 2px solid #3498db !important;
    outline-offset: 2px !important;
}

/* Embossing effects - Light shade (white emboss) */
.elle-emboss-light {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3), 
                 -1px -1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Embossing effects - Dark shade (black emboss) */
.elle-emboss-dark {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3), 
                 -1px -1px 2px rgba(255, 255, 255, 0.1) !important;
}

/* Accessibility - ensure minimum contrast */
.elle-button[style*="color:#ffffff"] {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .elle-button {
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1) !important;
    }
}

/* Animation for initial load */
@keyframes elleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elle-button {
    animation: elleFadeIn 0.3s ease-out !important;
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .elle-button {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .elle-button {
        border: 2px solid CanvasText !important;
    }
}

/* Admin styles */
#elle_button_settings {
    padding: 15px;
}

/* Form table improvements */
.form-table th {
    padding: 8px 10px;
    font-weight: 600;
}

.form-table td {
    padding: 8px 10px;
}

.form-table .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Color input improvements */
input[type="color"] {
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

input[type="color"]:hover {
    border-color: #bbb;
}

/* Select improvements */
select {
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
