/* ===== Favorites Feature ===== */

/* Favorite Button */
.fav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fav-btn:hover {
    background: #fff3e0;
}

.fav-btn .star-icon {
    width: 18px;
    height: 18px;
    stroke: #ccc;
    fill: none;
    transition: all 0.15s;
}

.fav-btn:hover .star-icon {
    stroke: #f39c12;
}

.fav-btn.active .star-icon {
    stroke: #f39c12;
    fill: #f39c12;
}

/* Favorites Section */
.favorites-section {
    margin-bottom: 1.5rem;
    background: white;
    border: 2px solid #f39c12;
    border-radius: 6px;
    overflow: hidden;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #fff8e1;
    border-bottom: 1px solid #f39c12;
}

.favorites-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorites-header .star-icon {
    width: 18px;
    height: 18px;
    fill: #f39c12;
}

.favorites-count {
    font-size: 0.85rem;
    color: #888;
}

.favorites-empty {
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.favorites-section .command-table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Hidden state */
.favorites-section.hidden {
    display: none;
}

/* Clear favorites button */
.clear-favorites-btn {
    background: transparent;
    border: 1px solid #e65100;
    color: #e65100;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.clear-favorites-btn:hover {
    background: #e65100;
    color: white;
}

/* Favorites toggle in sidebar */
.nav-favorites-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-favorites-toggle .star-icon {
    width: 14px;
    height: 14px;
    fill: #f39c12;
}
