#followersModal,
#followingModal {
    z-index: 10000;
}

#followersModal .modal-content,
#followingModal .modal-content {
    border-color: #eee;
    border-radius: 10px;
}

#followersModal .lsm-follows-search-input,
#followingModal .lsm-follows-search-input {
    border: 2px solid #eee;
    border-radius: 3px;
}

.lsm-follows-search-btn {
    color: #fff !important;
    background: #000 !important;
}

.lsm-follows-search-btn:hover {
    color: #000 !important;
    background: #fff !important;
}

.lsm-follows-search-btn:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.view-followers-button,
.view-following-button {
    border-color: #eee !important;
}

/* Follow Button Styles */
.follow-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.follow-button:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.follow-button.followed {
    background-color: #e8f4fd;
    border-color: #a8d4f8;
    color: #1877f2;
}

.follow-button.followed:hover {
    background-color: #d1e7fc;
}

/* Animation for follow/unfollow action feedback */
.pulse-animation {
    animation: pulse-follow 0.5s ease-out;
}

@keyframes pulse-follow {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(24, 119, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
    }
}

.follow-icon {
    margin-right: 5px;
    margin-top: 5px;
    /* display: inline-flex;
    align-items: center;
    justify-content: center; */
}

.follow-count {
    margin-left: 5px;
    font-weight: bold;
}

/* Toast Notification System */
.lsm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 12px 20px;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.lsm-notification-show {
    opacity: 1;
    transform: translateY(0);
}

.lsm-notification-success {
    border-left: 4px solid #28a745;
}

.lsm-notification-error {
    border-left: 4px solid #dc3545;
}

.lsm-notification-info {
    border-left: 4px solid #17a2b8;
}

.lsm-notification-warning {
    border-left: 4px solid #ffc107;
}

.lsm-notification-content {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
}

.lsm-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* Custom Followers Modal (when Bootstrap is not available) */
.followers-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.followers-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease forwards;
    transform: translateY(20px);
}

@keyframes slideIn {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

.followers-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.followers-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.close-custom-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #6c757d;
}

.followers-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

/* Followers List Styling */
.followers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.follower-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.follower-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.follower-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
    width: 100%;
}

.follower-link:hover {
    color: #1877f2;
    text-decoration: none;
}

.follower-link img {
    border-radius: 50%;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.follower-info {
    flex: 1;
}

.follower-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 3px;
    display: block;
}

.follower-meta {
    font-size: 12px;
    color: #6c757d;
}

.follower-action {
    margin-left: auto;
}

.no-followers,
.permission-denied {
    padding: 30px 15px;
    text-align: center;
}

.no-followers p,
.permission-denied p {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* View Followers Button */

/*
.view-followers-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-followers-button:hover {
    background-color: #e9ecef;
    text-decoration: none;
}
*/

.followers-icon {
    margin-right: 5px;
}

/* Follower Count Display */
.followers-count,
.following-count,
.followers-count-display,
.following-count-display {
    color: #000;
    display: inline-block;
    /* font-size: 14px;
    font-weight: bold;
    background: rgb(255, 241, 246); 
    padding: 5px 10px;
    border-radius: 5px; */
}

/* Follow Item */
.follow-item:hover,
.follower-link:hover,
.follower-info:hover,
.follower-name:hover {
    color: #ff3258;
}

/* Login Prompt */
.login-to-follow {
    display: inline-block;
    padding: 6px 12px;
    background-color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.login-to-follow:hover {
    color: #fff;
    font-size: 14px;
    font-weight: 500 !important;
    border-color: #ff3258;
    background-color: #ff3258;
    text-decoration: none;
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.followers-pagination {
    display: flex;
    align-items: center;
    justify-content: center; 
    font-family: sans-serif; 
    padding: 20px 0; 
}
  
/* Styles for ALL buttons, links, and spans within .followers-pagination */
.followers-pagination button,
.followers-pagination a,
.followers-pagination span {
    background-color: transparent; 
    border: none; 
    padding: 8px 12px; 
    margin: 0 5px; 
    color: #000; 
    cursor: pointer; 
    text-decoration: none; 
    font-size: 14px; 
}

/* Apply to all buttons */
.followers-pagination button { 
    font-weight: 600; 
    border-radius: 5px; 
}

/* Hover effect for ALL buttons and links */
.followers-pagination button:hover,
.followers-pagination a:hover {
    background-color: #f0f0f0; 
}

/* Specific styles for the "Next" button */
.followers-pagination button.pagination-next {
    background-color: #000; 
    color: #fff; 
}

.followers-pagination button.pagination-next:hover {
background-color: #333; 
}

/* Specific styles for the "Prev" button */
.followers-pagination button.pagination-prev,
.followers-pagination button.pagination-prev:hover {
    color: #000 !important;
    background-color: #f0f0f0; 
}
  
.followers-pagination span.pagination-info {
    margin: 0 10px; 
}

.followers-pagination a.active {
    background-color: #000;
    color: #fff;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

#followersModal .modal-dialog,
#followingModal .modal-dialog {
  max-width: 1200px;
  max-height: 800px;
  margin: auto;
}

@media (max-width: 1439px) {
  #followersModal .modal-dialog,
  #followingModal .modal-dialog {
    width: 75vw;
    max-height: 600px;
  }
}

@media (max-width: 767px) {
  #followersModal .modal-dialog,
  #followingModal .modal-dialog {
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
  }
}

#followersModal .followers-list,
#followingModal .followers-list {
  overflow-y: auto;
  max-height: 100vh;
}

@media (max-width: 767px) {
  #followersModal .followers-list,
  #followingModal .followers-list {
    max-height: 90vh;
  }
}
s

/* Responsive Adjustments */
@media (max-width: 576px) {
    .followers-modal-content {
        width: 95%;
    }
    
    .followers-modal-body {
        padding: 15px;
    }
    
    .follower-name {
        font-size: 14px;
    }
    
    .lsm-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}