/*
 * Desenvolvido por RuthesDev
 * https://ruthes.dev
 */

/* =========================================
   BUTTONS (YM BUTTONS)
   ========================================= */

.ym-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: normal;
    text-decoration: none;
}

.ym-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ym-primary, #2196F3), transparent 75%);
}

/* Button Sizes */
.ym-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.ym-btn-large {
    padding: 12px 24px;
    font-size: 15px;
}

.ym-btn .dashicons {
    font-size: 18px;
    /* Aumentado para melhor alinhamento */
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    top: -1px;
    /* Ajuste fino visual para centralizar com o texto */
}

/* Primary Button (Uses Brand Color) */
.ym-btn-primary,
.yesmonetize-admin #submit,
.yesmonetize-admin .button-primary {
    background: var(--ym-primary, #2196F3) !important;
    color: #fff !important;
    border: none !important;
}

.ym-btn-primary:hover,
.yesmonetize-admin #submit:hover,
.yesmonetize-admin .button-primary:hover {
    background: var(--ym-primary, #2196F3) !important;
    background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)) !important;
    color: #fff !important;
}

.ym-btn:focus,
.yesmonetize-admin #submit:focus,
.yesmonetize-admin .button-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ym-primary, #2196F3), transparent 70%) !important;
}

.yesmonetize-admin #submit,
.yesmonetize-admin .button-primary {
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    line-height: normal !important;
}

/* Secondary/Default Button */
.ym-btn-secondary {
    background: #fff;
    border: 1px solid #E2E8F0;
    color: #64748B !important;
}

.ym-btn-secondary:hover {
    background: #F8FAFC;
    color: #334155 !important;
    border-color: #CBD5E1;
}

/* Icon-only buttons */
.ym-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
}

.ym-btn-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Ensure icons are white in primary button */
.ym-btn-primary .dashicons {
    color: #fff;
}

/* Success Button (Solid Green) */
.ym-btn-success {
    background: #10B981 !important;
    color: #fff !important;
    border: none !important;
}

.ym-btn-success:hover {
    background: #059669 !important;
}

.ym-btn-success .dashicons {
    color: #fff;
}

/* =========================================
   SOFT BUTTON VARIANTS (Reutilizáveis)
   Uso: class="ym-btn ym-btn-{variant}-soft"
   ========================================= */

/* Danger Soft (Red) */
.ym-btn-danger-soft {
    border: 1px solid #FEE2E2 !important;
    background: #FEF2F2 !important;
    color: #DC2626 !important;
}

.ym-btn-danger-soft:hover {
    background: #FEE2E2 !important;
    border-color: #FECACA !important;
    color: #B91C1C !important;
}

.ym-btn-danger-soft .dashicons {
    color: #DC2626;
}

.ym-btn-danger-soft:hover .dashicons {
    color: #B91C1C;
}

/* Info Soft (Blue) */
.ym-btn-info-soft {
    border: 1px solid #DBEAFE !important;
    background: #EFF6FF !important;
    color: #2563EB !important;
}

.ym-btn-info-soft:hover {
    background: #DBEAFE !important;
    border-color: #BFDBFE !important;
    color: #1D4ED8 !important;
}

.ym-btn-info-soft .dashicons {
    color: #2563EB;
}

.ym-btn-info-soft:hover .dashicons {
    color: #1D4ED8;
}

/* Success Soft (Green) */
.ym-btn-success-soft {
    border: 1px solid #D1FAE5 !important;
    background: #ECFDF5 !important;
    color: #059669 !important;
}

.ym-btn-success-soft:hover {
    background: #D1FAE5 !important;
    border-color: #A7F3D0 !important;
    color: #047857 !important;
}

.ym-btn-success-soft .dashicons {
    color: #059669;
}

.ym-btn-success-soft:hover .dashicons {
    color: #047857;
}

/* Warning Soft (Amber/Yellow) */
.ym-btn-warning-soft {
    border: 1px solid #FEF3C7 !important;
    background: #FFFBEB !important;
    color: #D97706 !important;
}

.ym-btn-warning-soft:hover {
    background: #FEF3C7 !important;
    border-color: #FDE68A !important;
    color: #B45309 !important;
}

.ym-btn-warning-soft .dashicons {
    color: #D97706;
}

.ym-btn-warning-soft:hover .dashicons {
    color: #B45309;
}

/* =========================================
   OUTLINE BUTTON (Dashed Border)
   Uso: class="ym-btn ym-btn-outline"
   ========================================= */

.ym-btn-outline {
    background: #fff !important;
    border: 1px dashed #D1D5DB !important;
    color: #4B5563 !important;
}

.ym-btn-outline:hover {
    border-color: var(--ym-primary, #2196F3) !important;
    color: var(--ym-primary, #2196F3) !important;
    background: color-mix(in srgb, var(--ym-primary, #2196F3), transparent 95%) !important;
}

.ym-btn-outline .dashicons {
    color: #6B7280;
}

.ym-btn-outline:hover .dashicons {
    color: var(--ym-primary, #2196F3);
}

/* Full width variant */
.ym-btn-full {
    width: 100%;
    justify-content: center;
}