/* Premium Button System - FIXED - BULLETPROOF */

/* Force button appearance - Override ALL Tailwind classes */
html body a.btn-premium,
html body button.btn-premium,
html body .btn-premium,
html body form button.btn-premium,
html body form a.btn-premium,
html body td a.btn-premium,
html body td button.btn-premium,
html body div a.btn-premium,
html body div button.btn-premium,
body.admin-page a.btn-premium,
body.admin-page button.btn-premium {
    /* Basic button properties */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    
    /* Sizing */
    padding: 0.75rem 1.5rem !important;
    min-height: 44px !important;
    min-width: auto !important;
    
    /* Typography */
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    
    /* Appearance */
    -webkit-appearance: none !important;
    appearance: none !important;
    border: none !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    
    /* Visual */
    position: relative !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    
    /* Transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Remove any inline Tailwind background/text classes */
html body a.btn-premium[class*="bg-"],
html body button.btn-premium[class*="bg-"] {
    background: linear-gradient(135deg, #a6ed0b 0%, #249424 100%) !important;
}

/* PRIMARY BUTTON - Brand colors */
html body a.btn-premium-primary,
html body button.btn-premium-primary,
html body .btn-premium.btn-premium-primary {
    background: linear-gradient(135deg, #a6ed0b 0%, #249424 100%) !important;
    background-image: 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;
}

html body a.btn-premium-primary:hover,
html body button.btn-premium-primary:hover {
    background: linear-gradient(135deg, #249424 0%, #a6ed0b 100%) !important;
    background-image: linear-gradient(135deg, #249424 0%, #a6ed0b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(166, 237, 11, 0.4), 0 10px 10px -5px rgba(166, 237, 11, 0.2) !important;
    color: #fff !important;
}

/* SECONDARY BUTTON - Blue */
html body a.btn-premium-secondary,
html body button.btn-premium-secondary,
html body .btn-premium.btn-premium-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    background-image: 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;
}

html body a.btn-premium-secondary:hover,
html body button.btn-premium-secondary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    background-image: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4), 0 10px 10px -5px rgba(59, 130, 246, 0.2) !important;
}

/* SUCCESS BUTTON - Green */
html body a.btn-premium-success,
html body button.btn-premium-success,
html body .btn-premium.btn-premium-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    background-image: 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;
}

html body a.btn-premium-success:hover,
html body button.btn-premium-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    background-image: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4), 0 10px 10px -5px rgba(16, 185, 129, 0.2) !important;
}

/* DANGER BUTTON - Red */
html body a.btn-premium-danger,
html body button.btn-premium-danger,
html body .btn-premium.btn-premium-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -2px rgba(239, 68, 68, 0.2) !important;
}

html body a.btn-premium-danger:hover,
html body button.btn-premium-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    background-image: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.4), 0 10px 10px -5px rgba(239, 68, 68, 0.2) !important;
}

/* OUTLINE BUTTON */
html body a.btn-premium-outline,
html body button.btn-premium-outline,
html body .btn-premium.btn-premium-outline {
    background: transparent !important;
    background-image: none !important;
    color: #a6ed0b !important;
    border: 2px solid #a6ed0b !important;
    box-shadow: none !important;
}

html body a.btn-premium-outline:hover,
html body button.btn-premium-outline:hover {
    background: #a6ed0b !important;
    background-image: none !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(166, 237, 11, 0.3) !important;
}

/* GHOST BUTTON */
html body a.btn-premium-ghost,
html body button.btn-premium-ghost,
html body .btn-premium.btn-premium-ghost {
    background: rgba(166, 237, 11, 0.1) !important;
    background-image: none !important;
    color: #a6ed0b !important;
    border: 1px solid rgba(166, 237, 11, 0.3) !important;
    box-shadow: none !important;
}

html body a.btn-premium-ghost:hover,
html body button.btn-premium-ghost:hover {
    background: rgba(166, 237, 11, 0.2) !important;
    border-color: #a6ed0b !important;
    transform: translateY(-2px) !important;
}

/* Size variants */
html body .btn-premium-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    min-height: 36px !important;
}

html body .btn-premium-lg {
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    min-height: 52px !important;
}

html body .btn-premium-xl {
    padding: 1.25rem 2.5rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    min-height: 60px !important;
}

/* Full width */
html body .btn-premium-full {
    width: 100% !important;
}

/* Shine effect */
html body .btn-premium::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
    z-index: 1 !important;
}

html body .btn-premium:hover::before {
    left: 100% !important;
}

/* Ensure text is above shine */
html body .btn-premium > * {
    position: relative !important;
    z-index: 2 !important;
}
