/* =======================================================
   Fiverr Style Budget Filter - Final Consolidated Style
   (BUTTON SIZE INCREASED)
   ======================================================= */

/* 1. Wrapper (Container) */
.fbf-filter-container {
    position: relative;
    display: inline-block;
    font-family: "Inter", system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    z-index: 20;
}
/* 2. Main Button (.fbf-budget-btn) - Unified Style */
.fbf-budget-btn {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e4e5e7;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Hover */
.fbf-budget-btn:hover {
  background: #f0f0f0;
  color: #111111;
}

/* Focus/Active fix (no blue highlight) */
.fbf-budget-btn:focus,
.fbf-budget-btn:active {
  background: #e9f5ff;
  border-color: #0087ff;
  color: #0087ff;
}

/* Active/Open state */
.fbf-budget-btn[aria-expanded="true"] {
  background: #e9f5ff;
  border-color: #0087ff;
  color: #0087ff;
}

/* Remove Firefox inner border */
.fbf-budget-btn::-moz-focus-inner {
  border: 0;
}

/* Active state when dropdown is open */
.fbf-dropdown.active + .fbf-budget-btn,
.fbf-budget-btn:active {
    background: #e9f5ff; /* Light Blue BG */
    border-color: #0087ff; /* Blue Border */
    color: #0087ff;
}
/* Active state fix for HTML structure */
.fbf-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fbf-filter-container .fbf-dropdown.active + .fbf-budget-btn {
    background: #e9f5ff; /* Light Blue BG */
    border-color: #0087ff; /* Blue Border */
    color: #0087ff;
}


/* 4. Dropdown Panel */
.fbf-dropdown {
    /* Position and Layout */
    position: absolute;
    top: 100%;
    left: 0; /* Left align by default */
    width: 280px;
    margin-top: 10px;
    /* Styling */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 16px;
    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.fbf-dropdown-content {
    display: flex;
    flex-direction: column;
}

/* 5. Input Fields (Min/Max) */
.fbf-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.fbf-inputs label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
    /* ensure labels don't get too small */
    min-width: 30px; 
}
.fbf-inputs input {
    width: 50%;
    padding: 8px 12px;
    border: 1px solid #e4e5e7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    text-align: center;
}
.fbf-inputs input:focus {
    outline: none;
    border-color: #0087ff;
    box-shadow: 0 0 0 2px rgba(0, 135, 255, 0.1);
}

/* 6. Action Buttons Container */
.fbf-buttons {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.fbf-buttons button {
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 50%;
    flex-shrink: 0;
}

/* 8. Apply Button (Standard Primary Green) - Uses ID */
#fbf-apply {
    background: #1dbf73;
    color: #fff;
}
#fbf-apply:hover {
    background: #14a05b;
}
#fbf-apply:focus {
    outline: none;
    box-shadow: none;
}

/* 9. Clear Button (Standard Secondary Neutral) - Uses ID */
#fbf-clear {
    background: transparent;
    color: #777;
}
#fbf-clear:hover {
    background: #f0f0f0;
    color: #111111;
}
#fbf-clear:focus {
    outline: none;
    box-shadow: none;
}

/* 10. Mobile Responsive Design (Bottom Sheet) */
@media (max-width: 768px) {
    .fbf-dropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        margin-top: 0;
        border-radius: 12px 12px 0 0;
        border: none;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(100%); /* Start off-screen */
    }
    .fbf-dropdown.active {
        transform: translateY(0); /* Slide up */
    }
}
