/* Premium Button System - Consistent Theme - MAXIMUM SPECIFICITY */

/* Base Premium Button - BULLETPROOF SPECIFICITY */
html body a.btn-premium,
html body button.btn-premium,
html body .btn-premium,
html body form .btn-premium,
body.admin-page a.btn-premium,
body.admin-page button.btn-premium,
body.admin-page .btn-premium,
html body div a.btn-premium,
html body div button.btn-premium {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    color: inherit !important;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

/* Primary Premium Button - HIGH SPECIFICITY */
.btn-premium-primary,
a.btn-premium-primary,
button.btn-premium-primary,
html body a.btn-premium-primary,
html body button.btn-premium-primary {
    background: linear-gradient(135deg, #a6ed0b 0%, #249424 100%) !important;
    color: #000 !important;
    box-shadow: 0 10px 15px -3px rgba(166, 237, 11, 0.3), 0 4px 6px -2px rgba(166, 237, 11, 0.2) !important;
}

.btn-premium-primary:hover {
    background: linear-gradient(135deg, #249424 0%, #a6ed0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(166, 237, 11, 0.4), 0 10px 10px -5px rgba(166, 237, 11, 0.2);
    color: #fff;
}

.btn-premium-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Secondary Premium Button - HIGH SPECIFICITY */
.btn-premium-secondary,
a.btn-premium-secondary,
button.btn-premium-secondary,
html body a.btn-premium-secondary,
html body button.btn-premium-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.2) !important;
}

.btn-premium-secondary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4), 0 10px 10px -5px rgba(59, 130, 246, 0.2);
}

/* Success Premium Button - HIGH SPECIFICITY */
.btn-premium-success,
a.btn-premium-success,
button.btn-premium-success,
html body a.btn-premium-success,
html body button.btn-premium-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.2) !important;
}

.btn-premium-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4), 0 10px 10px -5px rgba(16, 185, 129, 0.2);
}

/* Danger Premium Button */
.btn-premium-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -2px rgba(239, 68, 68, 0.2);
}

.btn-premium-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.4), 0 10px 10px -5px rgba(239, 68, 68, 0.2);
}

/* Warning Premium Button */
.btn-premium-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
}

.btn-premium-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.4), 0 10px 10px -5px rgba(245, 158, 11, 0.2);
}

/* Outlined Premium Button */
.btn-premium-outline {
    background: transparent;
    color: #a6ed0b;
    border: 2px solid #a6ed0b;
    box-shadow: none;
}

.btn-premium-outline:hover {
    background: #a6ed0b;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(166, 237, 11, 0.3);
}

/* Ghost Premium Button */
.btn-premium-ghost {
    background: rgba(166, 237, 11, 0.1);
    color: #a6ed0b;
    border: 1px solid rgba(166, 237, 11, 0.3);
    box-shadow: none;
}

.btn-premium-ghost:hover {
    background: rgba(166, 237, 11, 0.2);
    border-color: #a6ed0b;
    transform: translateY(-2px);
}

/* Size Variants */
.btn-premium-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-premium-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-premium-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Full Width */
.btn-premium-full {
    width: 100%;
}

/* Disabled State */
.btn-premium:disabled,
.btn-premium.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* Icon Support */
.btn-premium svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.btn-premium-sm svg {
    width: 1rem;
    height: 1rem;
}

.btn-premium-lg svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Loading State */
.btn-premium.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-premium.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
