/**
 * Ajanta ERP - Ultra-Premium Gradient Buttons
 * Inspired by modern premium SaaS design systems (Linear, Stripe, Tailwind UI)
 */

/* ==========================================================================
   Base Button Micro-Refinements
   ========================================================================== */
.btn {
    letter-spacing: 0.015em;
    font-size: 13.5px;
    border-radius: 12px !important;
    padding: 7px 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:focus, .btn:active:focus {
    box-shadow: none !important;
}

/* ==========================================================================
   1. Primary / Accent Button (Rich Emerald-Teal Luxury Gradient)
   ========================================================================== */
.btn-accent {
    color: #ffffff !important;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bs-accent, #0f766e) 70%, white) 0%, var(--bs-accent, #0f766e) 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 1px 2px rgba(15, 118, 110, 0.12),
        0 3px 8px rgba(15, 118, 110, 0.22) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.btn-accent:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bs-accent, #0f766e) 82%, white) 0%, var(--bs-accent, #0f766e) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 12px rgba(15, 118, 110, 0.30) !important;
    color: #ffffff !important;
}

.btn-accent:active {
    transform: translateY(1px) !important;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(15, 118, 110, 0.15) !important;
}

/* ==========================================================================
   2. Cancel / Back / Neutral Button (Sleek Metallic Pearl Finish)
   ========================================================================== */
.btn-cancel {
    color: #334155 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(15, 23, 42, 0.05) !important;
    font-weight: 500 !important;
}

.btn-cancel:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

.btn-cancel:active {
    transform: translateY(1px) !important;
    background: #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   3. Info Button (Deep Royal Sapphire Gradient) - Print / View / Export
   ========================================================================== */
.btn-gradient-info {
    color: #ffffff !important;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
    border: 1px solid #0369a1 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 2px rgba(2, 132, 199, 0.12),
        0 3px 8px rgba(2, 132, 199, 0.22) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.btn-gradient-info:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, #60a5fa 0%, #0284c7 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 14px rgba(2, 132, 199, 0.32) !important;
    color: #ffffff !important;
}

.btn-gradient-info:active {
    transform: translateY(1px) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   4. Warning Button (Warm Honey Amber Gradient) - Edit / Change Status
   ========================================================================== */
.btn-gradient-warning {
    color: #ffffff !important;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #b45309 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 1px 2px rgba(217, 119, 6, 0.15),
        0 3px 8px rgba(217, 119, 6, 0.24) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.btn-gradient-warning:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 14px rgba(217, 119, 6, 0.32) !important;
    color: #ffffff !important;
}

.btn-gradient-warning:active {
    transform: translateY(1px) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   5. Danger Button (Crimson Rose Gradient) - Delete / Rejection
   ========================================================================== */
.btn-gradient-danger {
    color: #ffffff !important;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid #b91c1c !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 1px 2px rgba(220, 38, 38, 0.15),
        0 3px 8px rgba(220, 38, 38, 0.24) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.btn-gradient-danger:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 4px 14px rgba(220, 38, 38, 0.32) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   6. Subtle Pill Variation for Compact Actions (e.g. Change Status)
   ========================================================================== */
.btn-pill-subtle {
    border-radius: 20px !important;
    padding: 3px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Icons inside buttons */
.btn svg {
    flex-shrink: 0;
}
