body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #007bff;
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.header-icons {
    display: flex;
    gap: 10px;
}

main {
    padding: 20px;
}

.search-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.search-container input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.category-tabs {
    display: flex;
    gap: 10px;
}

.category-tabs button {
    padding: 10px 15px;
    border: none;
    background-color: #fff;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-tabs button.active,
.category-tabs button:hover {
    background-color: #007bff;
    color: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.tool-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.tool-card h3 {
    margin: 0;
    font-size: 16px;
}

.tool-image-fallback {
    background-color: #ddd;
    color: #333;
    border-radius: 5px;
}

.favorite-star {
    cursor: pointer;
    /* Ensure both paths are positioned correctly */
    position: relative;
    display: inline-block; /* Or flex/grid depending on parent */
    width: 24px; /* Match SVG width */
    height: 24px; /* Match SVG height */
}

.favorite-star .star-outline {
    fill: none;
    stroke: currentColor; /* Use current text color for outline */
    stroke-width: 2;
    transition: stroke 0.3s;
}

.favorite-star .star-filled {
    fill: #ffc107; /* Yellow color for filled star */
    stroke: none; /* No stroke for filled star */
    display: none; /* Hide filled star by default */
    transition: fill 0.3s;
}

.favorite-star.is-favorite .star-outline {
    display: none; /* Hide outline when favorited */
}

.favorite-star.is-favorite .star-filled {
    display: inline; /* Show filled star when favorited */
}

.favorite-star:hover .star-outline {
    stroke: #e0a800; /* Darker outline on hover */
}

.favorite-star.is-favorite:hover .star-filled {
    fill: #e0a800; /* Darker fill on hover */
}