/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Toast box */
.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
    min-width: 250px;
    max-width: 100%;
    border-left: 6px solid;
}

/* Toast success */
.toast-success {
    border-color: #28a745;
}

.toast-success .toast-title {
    color: #28a745;
    font-weight: 600;
}

/* Toast error */
.toast-error {
    border-color: #dc3545;
}

.toast-error .toast-title {
    color: #dc3545;
    font-weight: 600;
}

/* Toast title & message */
.toast-title {
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #555;
}

/* Close button */
.toast-close-button {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.toast-close-button:hover {
    color: #000;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(120%); }
}
.vote-actions .btn {
    border: none;
    background: #f4f4f4;
    padding: 6px 12px;
    margin-right: 5px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    transition: all 0.2s ease-in-out;
}

.vote-actions .btn i {
    font-size: 16px;
}

/* Hover */
.vote-actions .btn:hover {
    background: #eaeaea;
    color: #222;
}

/* Active states */
.vote-actions .vote-btn.active {
    background: #28a745;
    color: #fff;
}

.vote-actions .like-btn.active {
    background: #007bff;
    color: #fff;
}

.vote-actions .dislike-btn.active {
    background: #dc3545;
    color: #fff;
}

/* Default inactive states */
.vote-actions .like-btn i { color: rgba(33, 37, 41, 0.75); }
.vote-actions .dislike-btn i { color: rgba(33, 37, 41, 0.75); }
.vote-actions .vote-btn i { color: rgba(33, 37, 41, 0.75); }
.overlay-wrapper .overlay {
    border-radius: 0.25rem;
    -ms-flex-align: center;
    align-items: center;
    background: rgba(255, 255, 255, .7);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 9999;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
}