.tools-header-card {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 24px;
    color: #ffffff;
    padding: 3.5rem 2rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    margin-bottom: 2rem;
    border: none;
}
.tools-search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.tools-search-input {
    height: 56px;
    border-radius: 28px !important;
    padding-left: 25px;
    padding-right: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.tools-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.tools-search-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15) !important;
}
.tools-search-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 5;
}
.filter-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.filter-tab-pill {
    padding: 10px 22px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.filter-tab-pill:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}
.filter-tab-pill.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.tool-card-wrapper {
    transition: all 0.3s ease;
}
.tool-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}
.tool-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* RTL Support */
[dir="rtl"] .tool-card-badge,
body.rtl .tool-card-badge,
html[dir="rtl"] .tool-card-badge {
    right: auto !important;
    left: 20px !important;
}

[dir="rtl"] .tools-search-input,
body.rtl .tools-search-input,
html[dir="rtl"] .tools-search-input {
    padding-left: 60px !important;
    padding-right: 25px !important;
}

[dir="rtl"] .tools-search-icon,
body.rtl .tools-search-icon,
html[dir="rtl"] .tools-search-icon {
    right: auto !important;
    left: 22px !important;
}

[dir="rtl"] .tool-action-btn i.fa-arrow-right,
body.rtl .tool-action-btn i.fa-arrow-right,
html[dir="rtl"] .tool-action-btn i.fa-arrow-right {
    transform: rotate(180deg);
}
.badge-best {
    background-color: #fef08a;
    color: #854d0e;
    border: 1px solid #fef08a;
}
.badge-popular {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.tool-card-icon-container {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.tool-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}
.tool-description {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.tool-action-btn {
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 13.5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.tool-quick-form {
    margin-top: 15px;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
}
.tool-quick-input-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.tool-quick-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 12.5px;
    flex-grow: 1;
    color: #374151;
}
.tool-quick-input::placeholder {
    color: #9ca3af;
}
.tool-quick-btn {
    border: none;
    background: #3b82f6;
    color: white;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tool-quick-btn:hover {
    background: #2563eb;
}

@media (max-width: 768px) {
    .filter-tabs-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 2rem !important;
    }
    .filter-tab-pill {
        text-align: center !important;
        padding: 10px 5px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
