.friends-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.add-friend-section {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea30;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.add-friend-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.friend-form .form-group {
    display: flex;
    flex-direction: column;
}

.friend-form label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.friend-form input[type="email"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.friend-form input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-add-friend {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-add-friend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.message-box {
    padding: 14px 18px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #2ecc71;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.friends-list-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.friends-list-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 25px;
}

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

.friend-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.friend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.friend-card .friend-name {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.friend-card .friend-email {
    color: #7f8c8d;
    font-size: 14px;
}

.btn-unfriend {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.btn-unfriend:hover {
    background-color: #c0392b;
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

@media(max-width: 768px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .add-friend-section {
        padding: 20px;
    }
    
    .friend-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-unfriend {
        width: 100%;
        text-align: center;
    }
}