.ldppp-fav-heart {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.ldppp-fav-inactive { color: #aaa; }
.ldppp-fav-active { color: red; }
.fav-post-list { list-style: none; padding: 0; }
.fav-post-list li { margin: 5px 0; }
.fav-post-list a { text-decoration: none; color: #0073aa; }
.fav-post-list a:hover { text-decoration: underline; }

.ldppp-fav-heart svg path {
    fill: #aaa; /* Inactive gray */
    transition: fill 0.3s ease;
}
.ldppp-fav-heart.fav-active svg path {
    fill: red; /* Active red */
}

/*Tooltip css*/
.ldppp-fav-heart {
    position: relative;
    cursor: pointer;
}

/* Tooltip base */
.ldppp-fav-heart::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; /* show above the icon */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Tooltip arrow */
.ldppp-fav-heart::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Show tooltip on hover */
.ldppp-fav-heart:hover::after,
.ldppp-fav-heart:hover::before {
    opacity: 1;
}

.ldppp-remove-fav {
    cursor: pointer;
    color: #d33;
    font-weight: bold;
    margin-left: 8px;
    transition: color 0.2s ease-in-out;
}

.ldppp-remove-fav:hover {
    color: #a00;
}

.ldppp-fav-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    font-family: Arial, sans-serif;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.ldppp-fav-table thead {
    background: #f5f5f5;
}

.ldppp-fav-table th,
.ldppp-fav-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.ldppp-fav-table th {
    font-weight: 600;
    color: #333;
}

.ldppp-fav-table tbody tr:hover {
    background: #fafafa;
}

.ldppp-fav-table a:hover {
    text-decoration: underline;
}

.ldppp-remove-fav {
    color: #d63638;
    font-size: 18px;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease;
}

.ldppp-remove-fav:hover {
    color: #a00;
}

/* ===== User History Tables ===== */
.ldppp-user-history {
    margin: 30px 0;
}

.ldppp-user-history h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    font-weight: 600;
    color: #222;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 6px;
}

.ldppp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.ldppp-table thead {
    background: #f7f7f7;
}

.ldppp-table th,
.ldppp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.ldppp-table th {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ldppp-table tbody tr:last-child td {
    border-bottom: none;
}

.ldppp-table tbody tr:hover {
    background: #fafafa;
}

.ldppp-table a:hover {
    text-decoration: underline;
    color: #005177;
}

.ldppp-table td {
    vertical-align: top;
    line-height: 1.5;
}

/* Comment votes special styling */
.ldppp-table td:first-child {
    max-width: 320px;
    word-break: break-word;
}
