/* Friends Tab Styling with Unique Class Names */
.fr-search-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--theme-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(var(--rgb-theme-color), 0.2);
    position: relative;
    overflow: hidden;
}

.fr-search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
    opacity: 0.8;
}

.fr-search-container h2 {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-color);
    text-shadow: 0 0 10px rgba(var(--rgb-theme-color), 0.5);
}

.fr-search-bar {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    width: 100%; /* Make sure the container takes full width */
}

.fr-input-wrapper {
    position: relative;
    flex-grow: 1;
    flex-basis: 80%; /* This ensures the input wrapper takes up most of the space */
}

.search-input {
    width: 100%; /* Ensure input fills its container */
    padding-left: 35px; /* Increase left padding to make room for the icon */
}

/* Make the button more compact */
.small-btn {
    flex-shrink: 1;
    white-space: nowrap;
}

.fr-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-color);
    opacity: 0.7;
}

/* Section Header Styling */
.fr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(var(--rgb-theme-color), 0.2);
    padding-bottom: 0.8rem;
}

.fr-section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--theme-color);
    text-shadow: 0 0 8px rgba(var(--rgb-theme-color), 0.4);
}

/* Section Styling */
.fr-request-section {
    border-left: 3px solid var(--theme-color);
}

.fr-suggested-section, .fr-friends-section, .fr-request-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.fr-suggested-section::after, .fr-friends-section::after, .fr-request-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
    opacity: 0.5;
}

/* Empty state styling */
#noRequestsMessage, #noSuggestedFriendsMessage, #noFriendsMessage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(var(--rgb-theme-color), 0.3);
    border-radius: 8px;
    color: var(--theme-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fr-search-bar {
        flex-direction: column;
    }
    
    .fr-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* Enhanced empty state styling */
.fr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(var(--rgb-theme-color), 0.3);
    border-radius: 8px;
    color: var(--theme-color);
    margin: 1rem 0;
}

.fr-empty-icon {
    font-size: 2.5rem;
    color: var(--theme-color);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.fr-empty-state p {
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

/* Load More / Show Less Button Styling */
#loadMoreContainer {
    text-align: center;
    margin-top: 20px;
    padding: 1rem 0;
}

#loadMoreContainer .btn {
    background: rgba(var(--rgb-theme-color), 0.1);
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(var(--rgb-theme-color), 0.2);
}

#loadMoreContainer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--rgb-theme-color), 0.3), transparent);
    transition: left 0.5s ease;
}

#loadMoreContainer .btn:hover {
    background: rgba(var(--rgb-theme-color), 0.2);
    box-shadow: 0 4px 20px rgba(var(--rgb-theme-color), 0.4);
    transform: translateY(-2px);
    border-color: var(--theme-color);
}

#loadMoreContainer .btn:hover::before {
    left: 100%;
}

#loadMoreContainer .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(var(--rgb-theme-color), 0.3);
}

/* Show Less variant styling */
#loadMoreContainer .btn.collapse-btn {
    background: rgba(102, 102, 102, 0.1);
    color: #999;
    border-color: #666;
    box-shadow: 0 2px 10px rgba(102, 102, 102, 0.2);
}

#loadMoreContainer .btn.collapse-btn:hover {
    background: rgba(102, 102, 102, 0.2);
    color: #ccc;
    border-color: #888;
    box-shadow: 0 4px 20px rgba(102, 102, 102, 0.3);
}

/* Online Status Indicator */
.online-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.online-status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    animation: pulse-online 2s ease-in-out infinite;
}

.online-status-indicator.idle {
    background: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
    animation: pulse-idle 2s ease-in-out infinite;
}

.online-status-indicator.offline {
    background: #666;
    box-shadow: none;
}

/* ─── LIGHT THEME ──────────────────────────────────────────── */
body.light-theme .fr-search-container,
body.light-theme .fr-suggested-section,
body.light-theme .fr-friends-section,
body.light-theme .fr-request-section {
    background: #ffffff;
    border: 1.5px solid rgba(var(--rgb-theme-color), 0.62);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.09);
    color: #1a1a2e;
}

body.light-theme .fr-section-title,
body.light-theme .fr-search-label,
body.light-theme .fr-friend-name,
body.light-theme .fr-user-name,
body.light-theme .fr-display-name {
    color: #1a1a2e;
}

body.light-theme .fr-friend-meta,
body.light-theme .fr-user-meta,
body.light-theme .fr-mutual-count {
    color: #6666aa;
}

body.light-theme .fr-search-input,
body.light-theme .fr-search-bar input {
    background: #f5f5ff;
    color: #1a1a2e;
    border-color: rgba(var(--rgb-theme-color), 0.3);
}

body.light-theme .fr-search-input::placeholder {
    color: #8888a8;
}

body.light-theme .fr-empty-state,
body.light-theme .fr-no-results {
    background: rgba(var(--rgb-theme-color), 0.04);
    border-color: rgba(var(--rgb-theme-color), 0.15);
    color: #4a4a6a;
}

body.light-theme .fr-friend-card,
body.light-theme .fr-user-card {
    background: #ffffff;
    border: 1.5px solid rgba(var(--rgb-theme-color), 0.58);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14), 0 2px 5px rgba(0, 0, 0, 0.09);
}

body.light-theme .fr-friend-card:hover,
body.light-theme .fr-user-card:hover {
    box-shadow: 0 8px 28px rgba(var(--rgb-theme-color), 0.30), 0 3px 8px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--rgb-theme-color), 0.78);
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
    }
}

@keyframes pulse-idle {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.9);
    }
}

/* Friend Status Text */
.friend-status.online-status-text {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

.friend-status.online-status-text.online {
    color: #00ff00;
}

.friend-status.online-status-text.idle {
    color: #ffcc00;
}

.friend-status.online-status-text.offline {
    color: #888;
}

