/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Follow Button Styles */
.act-follow-button,
.follow-list-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-align: center;
    white-space: nowrap;
}

.act-follow-button.follow {
    background-color: #0095f6;
    color: white;
    border: 1px solid transparent;
}

.act-follow-button.follow:hover {
    background-color: #1877f2;
}

.act-follow-button.unfollow {
    background-color: #ffffff;
    color: #262626;
    border: 1px solid #dbdbdb;
}

.act-follow-button.unfollow:hover {
    background-color: #fafafa;
    border-color: #999;
}

.follow-list-button {
    background-color: transparent;
    color: #262626;
    border: none;
    padding: 0;
    font-weight: normal;
    text-decoration: none;
}

.follow-list-button:hover {
    color: #0095f6;
}

/* Follower Count */
.act-follow-count {
    font-weight: 600;
    font-size: 16px;
    color: #262626;
    margin-right: 5px;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-content h2 {
    color: #262626;
    margin: 0;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

#close-popup {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: opacity 0.2s;
}

#close-popup:hover {
    opacity: 0.7;
}

/* Followers List */
.followers-list {
    overflow-y: auto;
    padding: 8px 0;
    max-height: calc(70vh - 54px);
}

.follower-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #efefef;
    transition: background-color 0.2s;
}

.follower-item:hover {
    background-color: #fafafa;
}

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

.follower-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.follower-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.follower-link img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.follower-name-username {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.follower-name {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.follower-username {
    font-size: 14px;
    color: #8e8e8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.follower-action {
    margin-left: 16px;
    flex-shrink: 0;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    min-width: 200px;
    max-width: 350px;
    background-color: #333333;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999999;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background-color: rgba(46, 125, 50, 0.9);
    border-left: 4px solid #1b5e20;
}

.toast.error {
    background-color: rgba(211, 47, 47, 0.9);
    border-left: 4px solid #b71c1c;
}

/* Prevent multiple toasts from stacking */
.toast + .toast {
    margin-bottom: 16px;
}

/* Scrollbar Styles */
.followers-list::-webkit-scrollbar {
    width: 8px;
}

.followers-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.followers-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.followers-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
.follower-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Empty State */
.followers-empty {
    padding: 32px 16px;
    text-align: center;
    color: #8e8e8e;
}

/* Media Queries */
@media screen and (max-width: 480px) {
    .popup-content {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .popup-content h2 {
        border-radius: 0;
    }

    .followers-list {
        max-height: calc(100vh - 54px);
    }

    .act-follow-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .toast {
        min-width: auto;
        max-width: 90%;
        margin: 0 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Body Lock for Popup */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}