/* ==========================================================
   DWI ASK WEDDING - UNIFIED BUTTON THEME SYSTEM
   Semua styling button untuk seluruh website (admin & customer)
   Konsisten dengan tema gold wedding ( #d4af37 / #b8941f )
   ========================================================== */

:root {
    --wo-btn-radius: 12px;
    --wo-btn-radius-lg: 16px;
    --wo-btn-radius-pill: 999px;
    --wo-btn-shadow: 0 6px 16px rgba(184, 148, 31, 0.18);
    --wo-btn-shadow-hover: 0 10px 24px rgba(184, 148, 31, 0.26);
}

/* Base Button Reset (overrides Bootstrap default to match theme) */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1.4;
    --bs-btn-border-radius: var(--wo-btn-radius);
    --bs-btn-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.005em;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10) inset !important;
}

.btn i + span,
.btn i + .label {
    margin-left: 0.45rem;
}

/* ==========================================================
   1. PRIMARY BUTTON (GOLD GRADIENT - Tombol utama/aksi)
   ========================================================== */
.wo-btn-primary,
.btn-wo-primary,
.btn-gold-theme {
    background: linear-gradient(135deg, var(--wo-primary, #d4af37) 0%, var(--wo-primary-dark, #b8941f) 100%);
    border: none;
    color: #fff;
    box-shadow: var(--wo-btn-shadow);
}

.wo-btn-primary:hover,
.btn-wo-primary:hover,
.btn-gold-theme:hover {
    background: linear-gradient(135deg, var(--wo-primary-dark, #b8941f) 0%, var(--wo-primary-darker, #8b7215) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--wo-btn-shadow-hover);
}

.wo-btn-primary:disabled,
.btn-wo-primary:disabled,
.btn-gold-theme:disabled {
    background: linear-gradient(135deg, #d5c9a0 0%, #bfa976 100%);
    box-shadow: none;
    transform: none !important;
}

/* Outline Primary Button (Gold Outline) */
.wo-btn-outline-primary,
.btn-outline-wo-gold {
    background-color: #fff;
    border: 2px solid var(--wo-primary, #d4af37);
    color: var(--wo-primary-dark, #b8941f);
}

.wo-btn-outline-primary:hover,
.btn-outline-wo-gold:hover {
    background: linear-gradient(135deg, var(--wo-primary, #d4af37) 0%, var(--wo-primary-dark, #b8941f) 100%);
    border-color: var(--wo-primary-dark, #b8941f);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--wo-btn-shadow);
}

/* ==========================================================
   2. SECONDARY / SOFT BUTTON (Krem - tombol sekunder)
   ========================================================== */
.wo-btn-secondary,
.btn-wo-soft {
    background: linear-gradient(135deg, var(--wo-secondary, #f8f0e3) 0%, var(--wo-secondary-dark, #f0e0c8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--wo-text-dark, #2d2418);
}

.wo-btn-secondary:hover,
.btn-wo-soft:hover {
    background: linear-gradient(135deg, var(--wo-secondary-dark, #f0e0c8) 0%, #e6d3b0 100%);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--wo-text-dark, #2d2418);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(184, 148, 31, 0.10);
}

/* ==========================================================
   3. SUCCESS BUTTON (Hijau - Lunas / Selesai / Verifikasi)
   ========================================================== */
.wo-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.20);
}

.wo-btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.wo-btn-outline-success {
    background-color: #fff;
    border: 2px solid #22c55e;
    color: #16a34a;
}

.wo-btn-outline-success:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================
   4. WARNING BUTTON (Kuning Orange - DP / Proses)
   ========================================================== */
.wo-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.20);
}

.wo-btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

/* ==========================================================
   5. DANGER BUTTON (Merah - Hapus / Batal / Tolak)
   ========================================================== */
.wo-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.20);
}

.wo-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.wo-btn-outline-danger {
    background-color: #fff;
    border: 2px solid #ef4444;
    color: #dc2626;
}

.wo-btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================
   6. INFO BUTTON (Biru - Detail / Lihat / Invoice)
   ========================================================== */
.wo-btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20);
}

.wo-btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.wo-btn-outline-info {
    background-color: #fff;
    border: 2px solid #3b82f6;
    color: #2563eb;
}

.wo-btn-outline-info:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================
   8. LIGHT / NEUTRAL BUTTON
   ========================================================== */
.wo-btn-light {
    background-color: #fff;
    border: 1px solid rgba(45, 36, 24, 0.12);
    color: var(--wo-text-dark, #2d2418);
}

.wo-btn-light:hover {
    background: linear-gradient(135deg, var(--wo-secondary, #f8f0e3) 0%, #fff 100%);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--wo-text-dark, #2d2418);
    transform: translateY(-1px);
}

/* ==========================================================
   BUTTON SIZES
   ========================================================== */
.wo-btn-sm,
.btn-sm.wo-btn-primary,
.btn-sm.wo-btn-secondary,
.btn-sm.wo-btn-success,
.btn-sm.wo-btn-danger,
.btn-sm.wo-btn-info {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    --bs-btn-border-radius: 10px;
}

.wo-btn-lg,
.btn-lg.wo-btn-primary,
.btn-lg.wo-btn-secondary,
.btn-lg.wo-btn-success,
.btn-lg.wo-btn-danger,
.btn-lg.wo-btn-info {
    padding: 0.85rem 1.5rem;
    font-size: 1.02rem;
    --bs-btn-border-radius: var(--wo-btn-radius-lg);
}

.wo-btn-xl {
    padding: 1rem 1.75rem;
    font-size: 1.1rem;
    --bs-btn-border-radius: var(--wo-btn-radius-lg);
}

/* Pill / Rounded Full Button Variants */
.wo-btn-pill {
    --bs-btn-border-radius: var(--wo-btn-radius-pill);
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

/* Card Action Button - untuk tombol di card kecil */
.wo-btn-card-action {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
}

/* ==========================================================
   BADGE THEME CONSISTENCY (Opsional tapi sering bareng button)
   ========================================================== */
.badge-wo-primary { background: linear-gradient(135deg, var(--wo-primary, #d4af37), var(--wo-primary-dark, #b8941f)); }
.badge-wo-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.badge-wo-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-wo-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.badge-wo-info { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.badge-wo-secondary { background: linear-gradient(135deg, var(--wo-secondary-dark, #f0e0c8), #e6d3b0); color: var(--wo-text-dark, #2d2418); }

/* ==========================================================
   ADMIN SIDEBAR BUTTONS (Sidebar menu items)
   ========================================================== */
.admin-sidebar-nav .nav-link {
    border-radius: var(--wo-btn-radius);
    margin: 0.25rem 0.5rem;
    padding: 0.75rem 0.95rem;
    color: var(--wo-text-muted, #6b5b47);
    font-weight: 600;
    transition: all 0.22s ease;
}

.admin-sidebar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--wo-accent-soft, rgba(212, 175, 55, 0.12)), var(--wo-secondary, #f8f0e3));
    color: var(--wo-primary-dark, #b8941f);
    transform: translateX(2px);
}

.admin-sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--wo-primary, #d4af37) 0%, var(--wo-primary-dark, #b8941f) 100%);
    color: #fff !important;
    box-shadow: var(--wo-btn-shadow);
}

.admin-sidebar-nav .nav-link i {
    width: 24px;
    text-align: center;
}

/* ==========================================================
   CUSTOMER DASHBOARD QUICK NAV BUTTONS
   ========================================================== */
.wo-quick-nav-btn {
    text-align: center;
    width: 100%;
    padding: 1.25rem 0.75rem;
    border-radius: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.wo-quick-nav-btn i {
    font-size: 1.85rem;
}

.wo-quick-nav-btn:hover {
    transform: translateY(-3px);
}

/* ==========================================================
   RESPONSIVE TWEAKS
   ========================================================== */
@media (max-width: 575.98px) {
    .wo-btn-lg, .wo-btn-xl {
        padding: 0.85rem 1.1rem;
        font-size: 0.98rem;
    }

    .wo-quick-nav-btn i {
        font-size: 1.65rem;
    }
}
