/* CSS spécifique pour la page amis - friends.css */

/* Layout pour la page amis */
.friends-layout {
    grid-template-columns: 300px 1fr 360px;
}

/* Header de la page amis */
.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 5px;
}

.friends-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.friends-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Barre de recherche */
.search-container {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 45px 12px 20px;
    color: #f0f0f0;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
    width: 300px;
}

.search-input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Bouton ajouter ami */
.add-friend-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-friend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Grille des amis */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Carte d'ami */
.friend-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.friend-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.friend-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.friend-avatar {
    position: relative;
}

.friend-avatar .user-pic {
    width: 60px;
    height: 60px;
    font-size: 20px;
}

.friend-menu {
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.friend-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Informations de l'ami */
.friend-info {
    margin-bottom: 20px;
}

.friend-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.friend-username {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.friend-activity {
    font-size: 14px;
    color: #b0b0b0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Statistiques de l'ami */
.friend-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Actions de l'ami */
.friend-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: auto; /* Push to bottom if flex column */
}

.friend-btn {
    flex: 1 1 45%;
    max-width: 140px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.friend-btn.message-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.friend-btn.profile-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

.friend-btn.add-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(74, 222, 128, 0.25);
}

.friend-btn.pending-btn {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    cursor: not-allowed;
}

.friend-btn.friends-btn {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    cursor: default;
}

.friend-btn.blocked-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    cursor: not-allowed;
}

.friend-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.friend-btn.message-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.35);
    filter: brightness(1.1);
}

.friend-btn.profile-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.friend-btn.add-btn:hover {
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.35);
    filter: brightness(1.1);
}

.friend-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Statuts en ligne */
.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(26, 26, 46, 1);
}

.online-status.online {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.online-status.away {
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.online-status.offline {
    background: #6b7280;
}

/* Indicateurs dans la sidebar */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
}

.status-indicator.online {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: pulse 2s infinite;
}

.message-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

/* Badge ami */
.friend-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

/* Widget amis en ligne */
.friend-online {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.friend-online:hover {
    background: rgba(255, 255, 255, 0.05);
}

.friend-online .friend-avatar {
    position: relative;
}

.friend-online .user-pic.small {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.friend-online .online-status {
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(26, 26, 46, 1);
}

.friend-info {
    flex: 1;
}

.friend-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.friend-info p {
    font-size: 12px;
    color: #888;
}

.friend-online .message-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.friend-online .message-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

/* Lien voir tous */
.see-all-link {
    display: block;
    text-align: center;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.see-all-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

.notification-container {
    position: relative;
}

/* Messages récents */
.message-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    cursor: pointer;
}

.message-preview:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-preview.read {
    opacity: 0.7;
}

.message-avatar {
    position: relative;
}

.unread-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 2px solid rgba(26, 26, 46, 1);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.message-content p {
    font-size: 12px;
    color: #b0b0b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.message-time {
    font-size: 11px;
    color: #666;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Écoute partagée */
.listening-session {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-participants {
    display: flex;
    align-items: center;
    gap: -8px;
}

.session-participants .user-pic.tiny {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin-left: -8px;
    border: 2px solid rgba(26, 26, 46, 1);
}

.session-participants .user-pic.tiny:first-child {
    margin-left: 0;
}

.participant-count {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

.session-info {
    flex: 1;
}

.session-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.session-info p {
    font-size: 11px;
    color: #888;
}

.join-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.join-btn:hover {
    transform: scale(1.05);
}

/* Modal de messagerie */
.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.message-modal.active {
    display: flex;
}

.message-modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-user-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.modal-status {
    font-size: 12px;
    color: #4ade80;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Historique des messages */
.message-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    position: relative;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 18px;
    color: #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}

.message.sent .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.message-timestamp {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Input de message */
.message-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    color: #f0f0f0;
    font-size: 14px;
}

.message-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Filtres */
.filter-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* Responsive */
@media (max-width: 1200px) {
    .friends-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .friends-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .friends-actions {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .friends-layout {
        grid-template-columns: 1fr;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .friends-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .message-modal-content {
        width: 95%;
        height: 80vh;
        margin: 10vh auto;
    }
}
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-dark: radial-gradient(circle at 20% 50%, #1a1a2e 0%, #16213e 25%, #0f0f0f 100%);
    --surface-bg: rgba(255, 255, 255, 0.02);
    --surface-border: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-active: rgba(102, 126, 234, 0.15);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --accent-success: #4ade80;
    --accent-warning: #facc15;
    --accent-error: #ff6b6b;
}
* {
    max-width: 100%;
}

/* Assurer la cohérence des polices */
body, input, textarea, select, button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Améliorer l'accessibilité */
:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Éviter les problèmes de z-index */
.header { z-index: 100; }
.rythm-notification { z-index: 10000; }
.page-loader { z-index: 10000; }

/* Assurer que tous les liens sont cliquables */
a {
    cursor: pointer;
}

/* Transitions fluides pour tous les éléments interactifs */
.header-btn,
.nav-item,
.page-card,
.widget,
.see-all-link,
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Éviter les problèmes de mise en page */
.main-layout,
.friends-layout,
.discover-layout,
.messages-layout {
    min-height: 0;
    overflow: hidden;
}

/* Assurer que le contenu ne déborde pas */
.content-area,
.discover-content,
.profile-content {
    min-width: 0;
    overflow-x: hidden;
}

/* ========================================
   ONGLETS DE NAVIGATION (AMIS/DEMANDES)
======================================== */

.friends-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #3a3f4f;
    padding-bottom: 0;
}

.friends-tab {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 25px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friends-tab:hover {
    color: #e2e8f0;
    background: rgba(102, 126, 234, 0.1);
}

.friends-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-count {
    background: #3a3f4f;
    color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.tab-count.pending {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   SECTIONS DEMANDES D'AMIS
======================================== */

.friends-section {
    animation: fadeInSlide 0.5s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.friends-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.request-card {
    background: linear-gradient(135deg, #2a2d3a 0%, #252836 100%);
    border: 1px solid #3a3f4f;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.request-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.request-avatar {
    position: relative;
}

.request-avatar .user-pic {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.request-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.request-info {
    flex: 1;
}

.request-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 5px 0;
}

.request-info p {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.request-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.request-btn.accept {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.request-btn.accept:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

.request-btn.reject {
    background: #3a3f4f;
    color: #e2e8f0;
}

.request-btn.reject:hover {
    background: #4a5568;
}

.request-btn.cancel {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.request-btn.cancel:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.request-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* État de chargement */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
}

.loading-state p {
    font-size: 16px;
    animation: pulse 2s infinite;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .friends-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .friends-tab {
        border-bottom: 1px solid #3a3f4f;
        border-left: 3px solid transparent;
        justify-content: space-between;
    }
    
    .friends-tab.active {
        border-bottom-color: #3a3f4f;
        border-left-color: #667eea;
    }
    
    .requests-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SUGGESTIONS D'AMIS SIDEBAR
======================================== */

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-avatar {
    flex-shrink: 0;
}

.suggestion-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-info small {
    display: block;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
}

.suggestion-add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.suggestion-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.suggestion-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.suggestion-add-btn.sent {
    background: #4ade80;
}

/* ========================================
   ÉTATS VIDES PETITS (SIDEBAR)
======================================== */

.empty-state-small,
.loading-state-small {
    text-align: center;
    padding: 20px 10px;
    color: #a0aec0;
    font-size: 13px;
}

.loading-state-small p {
    animation: pulse 2s infinite;
}

/* ========================================
   ÉTATS "NO FRIENDS" AMÉLIORÉ
======================================== */

.no-friends,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.no-friends h3,
.no-results h3 {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.no-friends p,
.no-results p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   CARTE DE RECHERCHE AMÉLIORÉE
======================================== */

.friend-card.search-result {
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

.friend-card.search-result:hover {
    border-color: #667eea;
}

.mutual-friends {
    font-size: 12px;
    color: #667eea;
    margin-top: 5px;
}

.friend-btn.add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.friend-btn.pending-btn {
    background: #facc15;
    color: #1a1a2e;
}

.friend-btn.friends-btn {
    background: #4ade80;
    color: white;
}

.friend-btn.blocked-btn {
    background: #ff6b6b;
    color: white;
}

/* ========================================
   BOUTONS D'ACTION ÉTATS
======================================== */

.auth-link-btn,
.retry-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.auth-link-btn:hover,
.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.retry-btn {
    background: #3a3f4f;
}

.retry-btn:hover {
    background: #4a5568;
}