/* Watchlist Styles */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.watchlist-stats .card {
    border-radius: 10px;
    overflow: hidden;
}

.watchlist-stats i {
    opacity: 0.7;
}

.add-to-watchlist {
    transition: all 0.3s ease;
}

.add-to-watchlist.active i {
    color: #FFD700;
}

.add-to-watchlist:hover {
    background-color: #FFF8E1;
}

.empty-watchlist {
    padding: 3rem 0;
}

.empty-watchlist i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

/* Fund Table Styles */
.watchlist-table th {
    font-weight: 600;
    color: #6c757d;
}

.watchlist-table tr {
    transition: background-color 0.3s;
}

.watchlist-table tr:hover {
    background-color: rgba(0,0,0,0.03);
}

.watchlist-table td {
    vertical-align: middle;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Animation for the toast notifications */
.toast {
    animation: slide-in 0.3s ease-out forwards;
}

@keyframes slide-in {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

/* Animations for the star icon */
.add-to-watchlist i.bi-star-fill {
    animation: star-pulse 0.5s ease;
}

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: #FFC107;
    border-color: #FFC107;
}

/* Animation for adding to watchlist */
.watchlist-added {
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}